For the output of ''xm top'', are the %mem and %cpu fields the percentages for the totals or the amount that they have been allocated? For example:- acid:~# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 256 1 r----- 3825.9 bxvm 1 128 1 ------ 355.4 cxvm 3 128 1 -b---- 76.1 cxvm0 8 64 1 -b---- 383.5 exvm 9 98 1 ------ 198.4 If xm top showed NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) SSID Domain-0 -----r 3847 6.5 262148 25.2 no limit n/a 1 8 31428 456290 0 bxvm --b--- 356 0.6 68376 6.6 73728 7.1 1 1 30490 19836 0 cxvm0 --b--- 383 0.0 65348 6.3 65536 6.3 1 1 4065 168943 0 exvm --b--- 199 0.9 64328 6.2 65536 6.3 1 1 1095 718 0 cxvm --b--- 76 0.0 64320 6.2 65536 6.3 1 1 994 4902 0 Are the CPU(%) and MAXMEM(%) a percentage of the total cpu and mem for the whole box or just what they have been allocated, as shown by `xm list`? Thanks Chaps. -- John Maclean - 07739 171 531 MSc (DIC) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
These values are for the "whole box" meaning: whatever you start dom0 with, whatever you start a domU with, xm top will show. They will not change even after doing vcpu-sets or mem-sets, and so they do always match with xm list. On 11/11/06, john maclean <jayeola@gmail.com> wrote:> > For the output of ''xm top'', are the %mem and %cpu fields the > percentages for the totals or the amount that they have been > allocated? For example:- > > acid:~# xm list > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 256 1 r----- 3825.9 > bxvm 1 128 1 ------ 355.4 > cxvm 3 128 1 -b---- 76.1 > cxvm0 8 64 1 -b---- 383.5 > exvm 9 98 1 ------ 198.4 > > If xm top showed > NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) > MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) SSID > Domain-0 -----r 3847 6.5 262148 25.2 no limit > n/a 1 8 31428 456290 0 > bxvm --b--- 356 0.6 68376 6.6 73728 > 7.1 1 1 30490 19836 0 > cxvm0 --b--- 383 0.0 65348 6.3 65536 > 6.3 1 1 4065 168943 0 > exvm --b--- 199 0.9 64328 6.2 65536 > 6.3 1 1 1095 718 0 > cxvm --b--- 76 0.0 64320 6.2 65536 > 6.3 1 1 994 4902 0 > > Are the CPU(%) and MAXMEM(%) a percentage of the total cpu and mem > for the whole box or just what they have been allocated, as shown by > `xm list`? > > Thanks Chaps. > > -- > John Maclean - 07739 171 531 > MSc (DIC) > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- a.out _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
So the "whole box" means the CPU utilization for each domain is the percentage by all available CPUs? For example, suppose I have four CPUs and domain0/domainU each has one VCPU (mapped to a fixed physial CPU). If xm top shows 10% CPU utilization for domain0, it means the CPU utilization in domain0 is 10% of FOUR physcial CPUs. Is this right? Thanks, Liang ----- Original Message ----- From: Tommie McAfee To: john maclean Cc: Xen Users Sent: Wednesday, November 15, 2006 8:28 AM Subject: Re: [Xen-users] understanding xm top These values are for the "whole box" meaning: whatever you start dom0 with, whatever you start a domU with, xm top will show. They will not change even after doing vcpu-sets or mem-sets, and so they do always match with xm list. On 11/11/06, john maclean <jayeola@gmail.com> wrote: For the output of ''xm top'', are the %mem and %cpu fields the percentages for the totals or the amount that they have been allocated? For example:- acid:~# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 256 1 r----- 3825.9 bxvm 1 128 1 ------ 355.4 cxvm 3 128 1 -b---- 76.1 cxvm0 8 64 1 -b---- 383.5 exvm 9 98 1 ------ 198.4 If xm top showed NAME STATE CPU(sec) CPU(%) MEM(k) MEM(%) MAXMEM(k) MAXMEM(%) VCPUS NETS NETTX(k) NETRX(k) SSID Domain-0 -----r 3847 6.5 262148 25.2 no limit n/a 1 8 31428 456290 0 bxvm --b--- 356 0.6 68376 6.6 73728 7.1 1 1 30490 19836 0 cxvm0 --b--- 383 0.0 65348 6.3 65536 6.3 1 1 4065 168943 0 exvm --b--- 199 0.9 64328 6.2 65536 6.3 1 1 1095 718 0 cxvm --b--- 76 0.0 64320 6.2 65536 6.3 1 1 994 4902 0 Are the CPU(%) and MAXMEM(%) a percentage of the total cpu and mem for the whole box or just what they have been allocated, as shown by `xm list`? Thanks Chaps. -- John Maclean - 07739 171 531 MSc (DIC) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users -- a.out ------------------------------------------------------------------------------ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> If xm top shows 10% CPU utilization for domain0, it means the CPU > utilization in domain0 is 10% of FOUR physcial CPUs. Is this right? >I don''t think the values scale that way percentage wise, because with 4 physical cpu''s, xm-top can show CPU(%) to be as high as 400%. Unlike the native Linux top command where the scale is 0-100%, if you have 4 cpu''s and xm top shows 100% it doesn''t mean that your using 100% of 4 physical cpu''s (all your processing power), but perhaps 1/4 of your 4 CPU''s. try doing a ''xm top'', and type ''v'' on the console window, this should give you a per-cpu break down of each domain, hope that helps, -- a.out _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 15 Nov 2006 at 14:53, Tommie McAfee wrote:> > If xm top shows 10% CPU utilization for domain0, it means the CPU > > utilization in domain0 is 10% of FOUR physcial CPUs. Is this right? > > > > > I don''t think the values scale that way percentage wise, because with 4 > physical cpu''s, xm-top can show CPU(%) to be as high as 400%. Unlike theIMHO that''s about as stupid as this output from procinfo: idle : 3d 16:05:53.82 99.8% uptime: 22:03:12.95 How can the idle time be longer than the uptime? How can the CPU usage be more than 100%?> native Linux top command where the scale is 0-100%, if you have 4 cpu''s and > xm top shows 100% it doesn''t mean that your using 100% of 4 physical cpu''s > (all your processing power), but perhaps 1/4 of your 4 CPU''s. > > try doing a ''xm top'', and type ''v'' on the console window, this should give > you a per-cpu break down of each domain,[...] Ulrich _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ulrich Windl wrote:> On 15 Nov 2006 at 14:53, Tommie McAfee wrote: > >>> If xm top shows 10% CPU utilization for domain0, it means the CPU >>> utilization in domain0 is 10% of FOUR physcial CPUs. Is this right? >>> >> >> I don''t think the values scale that way percentage wise, because with 4 >> physical cpu''s, xm-top can show CPU(%) to be as high as 400%. Unlike the > > IMHO that''s about as stupid as this output from procinfo: > > idle : 3d 16:05:53.82 99.8% > uptime: 22:03:12.95 > > How can the idle time be longer than the uptime? How can the CPU usage be more > than 100%?Because it''s idle time for all the processors. In any given day, with a dual-processor machine, you get two days worth of CPU to use (1 day for each processor). It''s curious that people are more interested in how much aggregated idle time their CPU(s) have, but only how long the entire box has been powered up. -- Julian Davison Note: 1) This may have come from an address @cbhs.school.nz but isn''t necessarily the (or even an) official view of Christchurch Boys'' High School 2) While replying to this address may get into my mailbox it will almost certainly be filtered into a mailing list folder. To actually reach actual me, strip off the bit after the ''-'' in the name. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 20 Nov 2006 at 13:10, Julian Davison wrote:> Ulrich Windl wrote: > > On 15 Nov 2006 at 14:53, Tommie McAfee wrote: > > > >>> If xm top shows 10% CPU utilization for domain0, it means the CPU > >>> utilization in domain0 is 10% of FOUR physcial CPUs. Is this right? > >>> > >> > >> I don''t think the values scale that way percentage wise, because with 4 > >> physical cpu''s, xm-top can show CPU(%) to be as high as 400%. Unlike the > > > > IMHO that''s about as stupid as this output from procinfo: > > > > idle : 3d 16:05:53.82 99.8% > > uptime: 22:03:12.95 > > > > How can the idle time be longer than the uptime? How can the CPU usage be more > > than 100%? > > Because it''s idle time for all the processors. In any given > day, with a dual-processor machine, you get two days worth > of CPU to use (1 day for each processor). > It''s curious that people are more interested in how much > aggregated idle time their CPU(s) have, but only how long > the entire box has been powered up.It''s still stupid, because when four CPUs are up, the uptime could also be multiplied by four. I still believe, CPU usage, cumulated or not cannot be higher than 100%, just as the idle time proportion cannot exceed 100%. Ulrich _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Ulrich Windl > Sent: 20 November 2006 09:14 > To: xen-users@lists.xensource.com > Subject: Re: [Xen-users] understanding xm top > > On 20 Nov 2006 at 13:10, Julian Davison wrote: > > > Ulrich Windl wrote: > > > On 15 Nov 2006 at 14:53, Tommie McAfee wrote: > > > > > >>> If xm top shows 10% CPU utilization for domain0, it > means the CPU > > >>> utilization in domain0 is 10% of FOUR physcial CPUs. Is > this right? > > >>> > > >> > > >> I don''t think the values scale that way percentage > wise, because with 4 > > >> physical cpu''s, xm-top can show CPU(%) to be as high as > 400%. Unlike the > > > > > > IMHO that''s about as stupid as this output from procinfo: > > > > > > idle : 3d 16:05:53.82 99.8% > > > uptime: 22:03:12.95 > > > > > > How can the idle time be longer than the uptime? How can > the CPU usage be more > > > than 100%? > > > > Because it''s idle time for all the processors. In any given > > day, with a dual-processor machine, you get two days worth > > of CPU to use (1 day for each processor). > > It''s curious that people are more interested in how much > > aggregated idle time their CPU(s) have, but only how long > > the entire box has been powered up. > > It''s still stupid, because when four CPUs are up, the uptime > could also be > multiplied by four. I still believe, CPU usage, cumulated or > not cannot be higher > than 100%, just as the idle time proportion cannot exceed 100%.No, and it says that it''s 99.8%, so what''s wrong? It''s just that the total CPU-time spent in idle is four times 99.8% of 22:03:12.95, which I presume makes 3d 16:05:53.82 (I haven''t calculated it myself, but 22 * 4 = 88 hours, 3 * 24 = 72 + 16 -> 88 hours, so we''re not far off... Uptime is simply the time that the machine has been running from the time it started until now - which should not be multiplied by 4, as the machine is only one machine. The amount of time that is idle for the system is the amount of CPU-seconds (or whatever unit you prefer to use) that the CPU is not doing something useful. Since you have 4 CPU''s, it will be four seconds of idle for evey second the entire system is idle. It''s still not higher than 100% of the available CPU-time, as that''s always going to be one second per CPU per second, if you see what I mean... Did this explain better, or are you still confused? -- Mats> > Ulrich > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users