[mythtv] HDTV CPU utilization
Brad Templeton
brad+mydev at templetons.com
Wed Jan 19 22:39:34 EST 2005
On Wed, Jan 19, 2005 at 08:31:21PM -0600, Chris Mumford wrote:
>
> > While top is running hit "1". That will cause top to show individual
> > tallies for each CPU.
>
> Yes, I have done that, but then it just prints out numbers like this:
>
> top - 19:58:47 up 9 min, 3 users, load average: 1.11, 0.80, 0.38
> Tasks: 95 total, 3 running, 92 sleeping, 0 stopped, 0 zombie
> Cpu0 : 56.1% us, 4.1% sy, 0.0% ni, 39.6% id, 0.1% wa, 0.1% hi, 0.0% si
> Cpu1 : 38.2% us, 2.1% sy, 0.0% ni, 59.6% id, 0.0% wa, 0.1% hi, 0.0% si
> Mem: 513924k total, 361384k used, 152540k free, 34876k buffers
> Swap: 522104k total, 0k used, 522104k free, 212904k cached
>
> I still have to add up the columns 56.1% + 38.2% + 4.1% + 2.1% = 100.5%
> which makes sense since the best synthetic hyperthreading improvement was
> 7%.
>
> I'm wondering how the people that have posted their CPU utilization have
> measured this. I wonder if maybe they are also being fooled into thinking
> that top is reporting the CPU utilization correctly???
Try mpstat instead, or "mpstat -P ALL 2" or something like that.
Mine reports both "CPUs" about 50% utilized and total average thus also
around that figure. P4-prescott, 512k cache.
More information about the mythtv-dev
mailing list