This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
CPULoad on i386
- From: Jim Bradleigh <jim dot bradleigh1 at btinternet dot com>
- To: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 4 Sep 2009 10:11:15 +0000 (GMT)
- Subject: [ECOS] CPULoad on i386
- References: <4AA0E0BF.4010405@meduna.org>
Hi,
I`ve been trying to get an idea of my applications performance (was < 10% on windows machine) and have been running into problems with the cpuload feature.
cyg_cpuload_get returns zero for all the fields and I`ve debugged into the code and fouind the calibration value is (around) 0x64.
Shouldn`t the high priroty idle thread run more than ~100 times during 100ms? I would expect a massive figure here..(also 100 times in 100 ms sounds a bit like I executed per ms)
I`ve tried this with both my custom repository and a default "i386 with 8139" repository and the results are the same. I`ve removed network cards, ensured a single process CPU (AMD Sempron 2800+) without power managament is used and call the functions at the very start of main()
Anyone got any ideas?
James
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss