WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

AW: AW: [Xen-users] CPU monitoring

To: "Xuehai Zhang" <hai@xxxxxxxxxxxxxxx>
Subject: AW: AW: [Xen-users] CPU monitoring
From: "Christian Keil" <c.keil@xxxxxxxxxx>
Date: Thu, 14 Jul 2005 23:02:28 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, David_Wolinsky@xxxxxxxx
Delivery-date: Thu, 14 Jul 2005 21:03:46 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWItVMa/+JyheVsS5KYKwie7g62PAAAf/Eg
Thread-topic: AW: [Xen-users] CPU monitoring
Thanks very much :)



-----Ursprüngliche Nachricht-----
Von: Xuehai Zhang [mailto:hai@xxxxxxxxxxxxxxx] 
Gesendet: Donnerstag, 14. Juli 2005 22:47
An: Christian Keil
Cc: David_Wolinsky@xxxxxxxx; xen-users@xxxxxxxxxxxxxxxxxxx
Betreff: Re: AW: [Xen-users] CPU monitoring

The reason is, the comment part of line 16 (see below) is too long and it
gets truncated to a new line when you copy and paste.

"$uptime =~ s/ .*$//g; # trim from first space, should leave us uptime in
secs"

So, you just need to move "secs" at the end of the 1st line.

Xuehai



On Thu, 14 Jul 2005, Christian Keil wrote:

> I have tried the perl Script on a standard Installation, however i got this 
> error :
>
> ./cpu.pl
> syntax error at ./cpu.pl line 16, near "secs
>
> my "
> Global symbol "$XM" requires explicit package name at ./cpu.pl line 16.
> Global symbol "$XM" requires explicit package name at ./cpu.pl line 25.
> Global symbol "$XM" requires explicit package name at ./cpu.pl line 26.
> Execution of ./cpu.pl aborted due to compilation errors.
> xen-ha02:~# perl -v
>
> This is perl, v5.8.4 built for i386-linux-thread-multi
> Strict is installed -> /usr/share/perl/5.8.4/strict.pm
>
>
> Is there anything im missing ?
>
>
> thanks
>
> -----Ursprüngliche Nachricht-----
> Von: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] Im Auftrag von xuehai zhang
> Gesendet: Donnerstag, 14. Juli 2005 16:16
> An: David_Wolinsky@xxxxxxxx
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Betreff: Re: [Xen-users] CPU monitoring
>
> David,
> Check with an earlier post at 
> http://lists.xensource.com/archives/html/xen-users/2005-06/msg00139.html.
> A perl script is provided to output all domains' cpu usage periodically. 
> However, sometimes the
> output values are not very accurate, for example, the total cpu usage (adding 
> all domains' up) goes
> beyond 100%.
> Xuehai
>
> David_Wolinsky@xxxxxxxx wrote:
> > While xm list would sort of work, I was hoping for something more like
> > top.
> >
> > Thanks,
> > David
> >
> > -----Original Message-----
> > From: Ian Pratt [mailto:m+Ian.Pratt@xxxxxxxxxxxx]
> > Sent: Tuesday, July 12, 2005 10:26 AM
> > To: Wolinsky, David; xen-users@xxxxxxxxxxxxxxxxxxx
> > Cc: ian.pratt@xxxxxxxxxxxx
> > Subject: RE: [Xen-users] CPU monitoring
> >
> >
> >
> >>How do I monitor total CPU usage of all domains?  (Ie, outside of a
> >>specific DomU).
> >
> >
> > Do you mean 'xm list'?
> >
> > Ian
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> >
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
> 
>
>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
>

!DSPAM:42d6cf6e203001893219685!






_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • AW: AW: [Xen-users] CPU monitoring, Christian Keil <=