From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12597 invoked by alias); 4 Sep 2009 15:09:08 -0000 Received: (qmail 12582 invoked by uid 22791); 4 Sep 2009 15:09:07 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from n22.bullet.mail.ukl.yahoo.com (HELO n22.bullet.mail.ukl.yahoo.com) (87.248.110.139) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 04 Sep 2009 15:09:01 +0000 Received: from [217.146.182.178] by n22.bullet.mail.ukl.yahoo.com with NNFMP; 04 Sep 2009 15:08:58 -0000 Received: from [87.248.110.114] by t4.bullet.ukl.yahoo.com with NNFMP; 04 Sep 2009 15:08:58 -0000 Received: from [127.0.0.1] by omp219.mail.ukl.yahoo.com with NNFMP; 04 Sep 2009 15:08:58 -0000 Received: (qmail 54652 invoked by uid 60001); 4 Sep 2009 15:08:54 -0000 Message-ID: <150989.54606.qm@web87010.mail.ird.yahoo.com> Received: from [217.33.179.85] by web87010.mail.ird.yahoo.com via HTTP; Fri, 04 Sep 2009 15:08:48 GMT References: <4AA0E0BF.4010405@meduna.org> <915838.75812.qm@web87009.mail.ird.yahoo.com> Date: Fri, 04 Sep 2009 15:09:00 -0000 From: Jim Bradleigh To: Jim Bradleigh , eCos Discussion In-Reply-To: <915838.75812.qm@web87009.mail.ird.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] CPULoad on i386 X-SW-Source: 2009-09/txt/msg00058.txt.bz2 Hi, I found out that by replacing the asm("hlt") command in hal_idle_thread_act= ion with a "nop" causes the ticks reported to jump from 1 per millisecond t= o about ~160,000 ticks per ms.. Obviously the hlt command is causing the CPU to wait til the next maskable = interrupt occurs, in my case this (normally) will be the timer as it is set= to tick at 1ms (rather than the eCos default 10ms) Quick questions: Is there any harm in letting the Idle run as fast as it can?=20 How did the cpu load package ever work on an i386 platform? Thanks, Jim ----- Original Message ---- From: Jim Bradleigh To: eCos Discussion Sent: Friday, 4 September, 2009 11:11:15 AM Subject: [ECOS] CPULoad on i386 Hi, I`ve been trying to get an idea of my applications performance (was < 10% o= n windows machine) and have been running into problems with the cpuload fea= ture. 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 100m= s? 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 813= 9" repository and the results are the same. I`ve removed network cards, ens= ured a single process CPU (AMD Sempron 2800+) without power managament is u= sed and call the functions at the very start of main()=20 Anyone got any ideas?=20 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 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss