System CPU, Mem, Disk and Net perf stats

System CPU, Mem, Disk and Net perf stats

Post by Brendan Greg » Mon, 14 Mar 2005 08:16:40



G'Day Folks,

I just wrote the following freeware Perl/Kstat script that you may find
useful,

   $ sysperfstat 1
               ------ Utilisation ------     ------ Saturation ------
       Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
   23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
   23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
   23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00
   23:41:04   63.00  80.42  22.02  82.53    0.00   0.00   0.01   0.00
   23:41:05   82.00  80.64  44.74  84.22    0.00   0.00   0.07   0.00
   23:41:06   88.00  80.85  41.31  86.41    2.00   0.00   0.05   0.00
   23:41:07   74.00  81.04  48.37  86.16    0.00   0.00   0.05   0.00
   23:41:08   75.00  81.06  74.18  84.34    3.00   0.00   0.24   0.00
   23:41:09   47.00  80.78  18.59  82.96    0.00   0.00   0.00   0.00
   23:41:10   13.00  80.64   0.00  18.79    1.00   0.00   0.00   0.00
   [...]

As it uses Sun::Solaris::Kstat it runs as non-root, and is not a heavy
burden on the system. It can help identify performance problems quickly.

It's on,

   http://www.brendangregg.com/k9toolkit.html

... it's likely I'll tune the saturation values and add features in the
weeks to come (like checking $ENV{TZ} and printing "Utilization" when
appropriate :) Keep an eye on the version number that you download.

Enjoy,

Brendan Gregg

[Sydney, Australia]

 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Shiva MahaDe » Tue, 15 Mar 2005 04:34:34


I wanna use it, but I didn't find sysperfstat in your homepage...

> G'Day Folks,

> I just wrote the following freeware Perl/Kstat script that you may find
> useful,

>    $ sysperfstat 1
>                ------ Utilisation ------     ------ Saturation ------
>        Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
>    23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
>    23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
>    23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00
>    23:41:04   63.00  80.42  22.02  82.53    0.00   0.00   0.01   0.00
>    23:41:05   82.00  80.64  44.74  84.22    0.00   0.00   0.07   0.00
>    23:41:06   88.00  80.85  41.31  86.41    2.00   0.00   0.05   0.00
>    23:41:07   74.00  81.04  48.37  86.16    0.00   0.00   0.05   0.00
>    23:41:08   75.00  81.06  74.18  84.34    3.00   0.00   0.24   0.00
>    23:41:09   47.00  80.78  18.59  82.96    0.00   0.00   0.00   0.00
>    23:41:10   13.00  80.64   0.00  18.79    1.00   0.00   0.00   0.00
>    [...]

> As it uses Sun::Solaris::Kstat it runs as non-root, and is not a heavy
> burden on the system. It can help identify performance problems quickly.

> It's on,

>    http://www.brendangregg.com/k9toolkit.html

> ... it's likely I'll tune the saturation values and add features in the
> weeks to come (like checking $ENV{TZ} and printing "Utilization" when
> appropriate :) Keep an eye on the version number that you download.

> Enjoy,

> Brendan Gregg

> [Sydney, Australia]


 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Brendan Greg » Tue, 15 Mar 2005 11:22:44



Quote:> I wanna use it, but I didn't find sysperfstat in your homepage...

http://www.brendangregg.com/K9Toolkit/sysperfstat

no worries,

Brendan


> > G'Day Folks,

> > I just wrote the following freeware Perl/Kstat script that you may find
> > useful,

> >    $ sysperfstat 1
> >                ------ Utilisation ------     ------ Saturation ------
> >        Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> >    23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
> >    23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
> >    23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00
> >    23:41:04   63.00  80.42  22.02  82.53    0.00   0.00   0.01   0.00
> >    23:41:05   82.00  80.64  44.74  84.22    0.00   0.00   0.07   0.00
> >    23:41:06   88.00  80.85  41.31  86.41    2.00   0.00   0.05   0.00
> >    23:41:07   74.00  81.04  48.37  86.16    0.00   0.00   0.05   0.00
> >    23:41:08   75.00  81.06  74.18  84.34    3.00   0.00   0.24   0.00
> >    23:41:09   47.00  80.78  18.59  82.96    0.00   0.00   0.00   0.00
> >    23:41:10   13.00  80.64   0.00  18.79    1.00   0.00   0.00   0.00
> >    [...]

[...]
 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Richard Skelto » Tue, 15 Mar 2005 21:33:33



> G'Day Folks,

> I just wrote the following freeware Perl/Kstat script that you may find
> useful,

>    $ sysperfstat 1
>                ------ Utilisation ------     ------ Saturation ------
>        Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
>    23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
>    23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
>    23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00
>    23:41:04   63.00  80.42  22.02  82.53    0.00   0.00   0.01   0.00
>    23:41:05   82.00  80.64  44.74  84.22    0.00   0.00   0.07   0.00
>    23:41:06   88.00  80.85  41.31  86.41    2.00   0.00   0.05   0.00
>    23:41:07   74.00  81.04  48.37  86.16    0.00   0.00   0.05   0.00
>    23:41:08   75.00  81.06  74.18  84.34    3.00   0.00   0.24   0.00
>    23:41:09   47.00  80.78  18.59  82.96    0.00   0.00   0.00   0.00
>    23:41:10   13.00  80.64   0.00  18.79    1.00   0.00   0.00   0.00
>    [...]

> As it uses Sun::Solaris::Kstat it runs as non-root, and is not a heavy
> burden on the system. It can help identify performance problems quickly.

> It's on,

>    http://www.brendangregg.com/k9toolkit.html

> ... it's likely I'll tune the saturation values and add features in the
> weeks to come (like checking $ENV{TZ} and printing "Utilization" when
> appropriate :) Keep an eye on the version number that you download.

> Enjoy,

> Brendan Gregg

> [Sydney, Australia]

Hi Brendon,
I have just downloaded your script an ran it on my 8 CPU E3500 but the
CPU col is showing 100% which is not what sdtperfmeter or top show.

rskelton: ./sysperfstat 5
             ------ Utilisation ------     ------ Saturation ------
     Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
11:46:04  100.00  98.05   0.00   0.23    0.00   0.00   0.00   0.00
11:46:09  100.00  98.02   0.00   0.57    0.00   0.00   0.00   0.00
11:46:14  100.00  97.92   0.00   0.54    0.00   0.00   0.00   0.00
11:46:19  100.00  98.10   0.00   1.53    0.00   0.00   0.00   0.00
11:46:24  100.00  98.02   0.00   5.66    0.00   0.00   0.00   0.00
11:46:29  100.00  98.05   0.00   7.99    0.00   0.00   0.00   0.00
11:46:34  100.00  97.99   0.00   4.55    0.00   0.00   0.00   0.00
11:46:39  100.00  97.93   0.00   5.76    0.00   0.00   0.00   0.00
11:46:44  100.00  97.99   0.00   7.42    0.00   0.00   0.00   0.00

load averages:  3.71,  3.58,  3.49
4024 processes:3913 sleeping, 1 running, 69 zombie, 37 stopped, 4 on cpu
CPU states: 48.2% idle, 25.0% user, 26.6% kernel,  0.2% iowait,  0.0% swap
Memory: 8192M real, 119M free, 16G swap in use, 16G swap free

 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Shiva MahaDe » Wed, 16 Mar 2005 02:11:55


Very good program !!
Now I have a easy way to see true system activity...


> > I wanna use it, but I didn't find sysperfstat in your homepage...

> http://www.brendangregg.com/K9Toolkit/sysperfstat

> no worries,

> Brendan


> > > G'Day Folks,

> > > I just wrote the following freeware Perl/Kstat script that you may find
> > > useful,

> > >    $ sysperfstat 1
> > >                ------ Utilisation ------     ------ Saturation ------
> > >        Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> > >    23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
> > >    23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
> > >    23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00
> > >    23:41:04   63.00  80.42  22.02  82.53    0.00   0.00   0.01   0.00
> > >    23:41:05   82.00  80.64  44.74  84.22    0.00   0.00   0.07   0.00
> > >    23:41:06   88.00  80.85  41.31  86.41    2.00   0.00   0.05   0.00
> > >    23:41:07   74.00  81.04  48.37  86.16    0.00   0.00   0.05   0.00
> > >    23:41:08   75.00  81.06  74.18  84.34    3.00   0.00   0.24   0.00
> > >    23:41:09   47.00  80.78  18.59  82.96    0.00   0.00   0.00   0.00
> > >    23:41:10   13.00  80.64   0.00  18.79    1.00   0.00   0.00   0.00
> > >    [...]
> [...]

 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Brendan Greg » Wed, 16 Mar 2005 07:43:24


G'Day Richard,



> > G'Day Folks,

> > I just wrote the following freeware Perl/Kstat script that you may find
> > useful,

> >    $ sysperfstat 1
> >                ------ Utilisation ------     ------ Saturation ------
> >        Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> >    23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
> >    23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
> >    23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00
[...]

> Hi Brendon,
> I have just downloaded your script an ran it on my 8 CPU E3500 but the
> CPU col is showing 100% which is not what sdtperfmeter or top show.

> rskelton: ./sysperfstat 5
>              ------ Utilisation ------     ------ Saturation ------
>      Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> 11:46:04  100.00  98.05   0.00   0.23    0.00   0.00   0.00   0.00
> 11:46:09  100.00  98.02   0.00   0.57    0.00   0.00   0.00   0.00
> 11:46:14  100.00  97.92   0.00   0.54    0.00   0.00   0.00   0.00
> 11:46:19  100.00  98.10   0.00   1.53    0.00   0.00   0.00   0.00
> 11:46:24  100.00  98.02   0.00   5.66    0.00   0.00   0.00   0.00
> 11:46:29  100.00  98.05   0.00   7.99    0.00   0.00   0.00   0.00
> 11:46:34  100.00  97.99   0.00   4.55    0.00   0.00   0.00   0.00
> 11:46:39  100.00  97.93   0.00   5.76    0.00   0.00   0.00   0.00
> 11:46:44  100.00  97.99   0.00   7.42    0.00   0.00   0.00   0.00

> load averages:  3.71,  3.58,  3.49
> 4024 processes:3913 sleeping, 1 running, 69 zombie, 37 stopped, 4 on cpu
> CPU states: 48.2% idle, 25.0% user, 26.6% kernel,  0.2% iowait,  0.0% swap
> Memory: 8192M real, 119M free, 16G swap in use, 16G swap free

Ahh, thank you very much! I missed a CPU division, it's fixed now - check
the lastest version. :-)

thanks,

Brendan

[Sydney, Australia]

 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Richard Skelto » Wed, 16 Mar 2005 08:29:19



> G'Day Richard,



>>>G'Day Folks,

>>>I just wrote the following freeware Perl/Kstat script that you may find
>>>useful,

>>>   $ sysperfstat 1
>>>               ------ Utilisation ------     ------ Saturation ------
>>>       Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
>>>   23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
>>>   23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
>>>   23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00

> [...]

>>Hi Brendon,
>>I have just downloaded your script an ran it on my 8 CPU E3500 but the
>>CPU col is showing 100% which is not what sdtperfmeter or top show.

>>rskelton: ./sysperfstat 5
>>             ------ Utilisation ------     ------ Saturation ------
>>     Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
>>11:46:04  100.00  98.05   0.00   0.23    0.00   0.00   0.00   0.00
>>11:46:09  100.00  98.02   0.00   0.57    0.00   0.00   0.00   0.00
>>11:46:14  100.00  97.92   0.00   0.54    0.00   0.00   0.00   0.00
>>11:46:19  100.00  98.10   0.00   1.53    0.00   0.00   0.00   0.00
>>11:46:24  100.00  98.02   0.00   5.66    0.00   0.00   0.00   0.00
>>11:46:29  100.00  98.05   0.00   7.99    0.00   0.00   0.00   0.00
>>11:46:34  100.00  97.99   0.00   4.55    0.00   0.00   0.00   0.00
>>11:46:39  100.00  97.93   0.00   5.76    0.00   0.00   0.00   0.00
>>11:46:44  100.00  97.99   0.00   7.42    0.00   0.00   0.00   0.00

>>load averages:  3.71,  3.58,  3.49
>>4024 processes:3913 sleeping, 1 running, 69 zombie, 37 stopped, 4 on cpu
>>CPU states: 48.2% idle, 25.0% user, 26.6% kernel,  0.2% iowait,  0.0% swap
>>Memory: 8192M real, 119M free, 16G swap in use, 16G swap free

> Ahh, thank you very much! I missed a CPU division, it's fixed now - check
> the lastest version. :-)

> thanks,

> Brendan

> [Sydney, Australia]

Hi Brendon,
Thats better thanks.

root: ./sysperfstat 5
             ------ Utilisation ------     ------ Saturation ------
     Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
23:27:40   68.47  97.83   0.00   0.16    0.80   0.00   0.00   0.00
23:27:46   48.83  97.71   0.00   0.17    0.20   0.00   0.00   0.00
23:27:51   35.00  97.39   0.00   1.48    0.33   0.00   0.00   0.00
23:27:56   55.63  97.66   0.00   1.94    0.00   0.00   0.00   0.00
23:28:01   56.97  97.60   0.00   0.26    0.80   0.00   0.00   0.00
23:28:06   44.27  97.66   0.00   0.25    0.20   0.00   0.00   0.00
23:28:11   67.90  97.78   0.00   0.22    0.80   0.00   0.00   0.00
23:28:16   45.03  97.70   0.00   0.21    0.20   0.00   0.00   0.00
23:28:21   35.23  97.78   0.00   0.13    0.00   0.00   0.00   0.00
23:28:26   57.63  97.81   0.00   0.21    0.20   0.00   0.00   0.00
23:28:31   38.07  97.79   0.00   0.17    0.00   0.00   0.00   0.00

 
 
 

System CPU, Mem, Disk and Net perf stats

Post by JO » Wed, 16 Mar 2005 14:07:13




> > G'Day Richard,



> >>>G'Day Folks,

> >>>I just wrote the following freeware Perl/Kstat script that you may find
> >>>useful,

> >>>   $ sysperfstat 1
> >>>               ------ Utilisation ------     ------ Saturation ------
> >>>       Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> >>>   23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
> >>>   23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
> >>>   23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00

> > [...]

> >>Hi Brendon,
> >>I have just downloaded your script an ran it on my 8 CPU E3500 but the
> >>CPU col is showing 100% which is not what sdtperfmeter or top show.

> >>rskelton: ./sysperfstat 5
> >>             ------ Utilisation ------     ------ Saturation ------
> >>     Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> >>11:46:04  100.00  98.05   0.00   0.23    0.00   0.00   0.00   0.00
> >>11:46:09  100.00  98.02   0.00   0.57    0.00   0.00   0.00   0.00
> >>11:46:14  100.00  97.92   0.00   0.54    0.00   0.00   0.00   0.00
> >>11:46:19  100.00  98.10   0.00   1.53    0.00   0.00   0.00   0.00
> >>11:46:24  100.00  98.02   0.00   5.66    0.00   0.00   0.00   0.00
> >>11:46:29  100.00  98.05   0.00   7.99    0.00   0.00   0.00   0.00
> >>11:46:34  100.00  97.99   0.00   4.55    0.00   0.00   0.00   0.00
> >>11:46:39  100.00  97.93   0.00   5.76    0.00   0.00   0.00   0.00
> >>11:46:44  100.00  97.99   0.00   7.42    0.00   0.00   0.00   0.00

> >>load averages:  3.71,  3.58,  3.49
> >>4024 processes:3913 sleeping, 1 running, 69 zombie, 37 stopped, 4 on cpu
> >>CPU states: 48.2% idle, 25.0% user, 26.6% kernel,  0.2% iowait,  0.0% swap
> >>Memory: 8192M real, 119M free, 16G swap in use, 16G swap free

> > Ahh, thank you very much! I missed a CPU division, it's fixed now - check
> > the lastest version. :-)

> > thanks,

> > Brendan

> > [Sydney, Australia]

> Hi Brendon,
> Thats better thanks.

> root: ./sysperfstat 5
>              ------ Utilisation ------     ------ Saturation ------
>      Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> 23:27:40   68.47  97.83   0.00   0.16    0.80   0.00   0.00   0.00
> 23:27:46   48.83  97.71   0.00   0.17    0.20   0.00   0.00   0.00
> 23:27:51   35.00  97.39   0.00   1.48    0.33   0.00   0.00   0.00
> 23:27:56   55.63  97.66   0.00   1.94    0.00   0.00   0.00   0.00
> 23:28:01   56.97  97.60   0.00   0.26    0.80   0.00   0.00   0.00
> 23:28:06   44.27  97.66   0.00   0.25    0.20   0.00   0.00   0.00
> 23:28:11   67.90  97.78   0.00   0.22    0.80   0.00   0.00   0.00
> 23:28:16   45.03  97.70   0.00   0.21    0.20   0.00   0.00   0.00
> 23:28:21   35.23  97.78   0.00   0.13    0.00   0.00   0.00   0.00
> 23:28:26   57.63  97.81   0.00   0.21    0.20   0.00   0.00   0.00
> 23:28:31   38.07  97.79   0.00   0.17    0.00   0.00   0.00   0.00

Hi~ everyone
I am a new one, to join solaris family.
I really want use this tools, but still can't get it.
how to use it??? should i complier it first???
or some kind other special way???
 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Richard Skelto » Wed, 16 Mar 2005 20:21:10





>>>G'Day Richard,



>>>>>G'Day Folks,

>>>>>I just wrote the following freeware Perl/Kstat script that you may find
>>>>>useful,

>>>>>  $ sysperfstat 1
>>>>>              ------ Utilisation ------     ------ Saturation ------
>>>>>      Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
>>>>>  23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
>>>>>  23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
>>>>>  23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00

>>>[...]

>>>>Hi Brendon,
>>>>I have just downloaded your script an ran it on my 8 CPU E3500 but the
>>>>CPU col is showing 100% which is not what sdtperfmeter or top show.

>>>>rskelton: ./sysperfstat 5
>>>>            ------ Utilisation ------     ------ Saturation ------
>>>>    Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
>>>>11:46:04  100.00  98.05   0.00   0.23    0.00   0.00   0.00   0.00
>>>>11:46:09  100.00  98.02   0.00   0.57    0.00   0.00   0.00   0.00
>>>>11:46:14  100.00  97.92   0.00   0.54    0.00   0.00   0.00   0.00
>>>>11:46:19  100.00  98.10   0.00   1.53    0.00   0.00   0.00   0.00
>>>>11:46:24  100.00  98.02   0.00   5.66    0.00   0.00   0.00   0.00
>>>>11:46:29  100.00  98.05   0.00   7.99    0.00   0.00   0.00   0.00
>>>>11:46:34  100.00  97.99   0.00   4.55    0.00   0.00   0.00   0.00
>>>>11:46:39  100.00  97.93   0.00   5.76    0.00   0.00   0.00   0.00
>>>>11:46:44  100.00  97.99   0.00   7.42    0.00   0.00   0.00   0.00

>>>>load averages:  3.71,  3.58,  3.49
>>>>4024 processes:3913 sleeping, 1 running, 69 zombie, 37 stopped, 4 on cpu
>>>>CPU states: 48.2% idle, 25.0% user, 26.6% kernel,  0.2% iowait,  0.0% swap
>>>>Memory: 8192M real, 119M free, 16G swap in use, 16G swap free

>>>Ahh, thank you very much! I missed a CPU division, it's fixed now - check
>>>the lastest version. :-)

>>>thanks,

>>>Brendan

>>>[Sydney, Australia]

>>Hi Brendon,
>>Thats better thanks.

>>root: ./sysperfstat 5
>>             ------ Utilisation ------     ------ Saturation ------
>>     Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
>>23:27:40   68.47  97.83   0.00   0.16    0.80   0.00   0.00   0.00
>>23:27:46   48.83  97.71   0.00   0.17    0.20   0.00   0.00   0.00
>>23:27:51   35.00  97.39   0.00   1.48    0.33   0.00   0.00   0.00
>>23:27:56   55.63  97.66   0.00   1.94    0.00   0.00   0.00   0.00
>>23:28:01   56.97  97.60   0.00   0.26    0.80   0.00   0.00   0.00
>>23:28:06   44.27  97.66   0.00   0.25    0.20   0.00   0.00   0.00
>>23:28:11   67.90  97.78   0.00   0.22    0.80   0.00   0.00   0.00
>>23:28:16   45.03  97.70   0.00   0.21    0.20   0.00   0.00   0.00
>>23:28:21   35.23  97.78   0.00   0.13    0.00   0.00   0.00   0.00
>>23:28:26   57.63  97.81   0.00   0.21    0.20   0.00   0.00   0.00
>>23:28:31   38.07  97.79   0.00   0.17    0.00   0.00   0.00   0.00

> Hi~ everyone
> I am a new one, to join solaris family.
> I really want use this tools, but still can't get it.
> how to use it??? should i complier it first???
> or some kind other special way???

Hi JOE,
It's whats know as a perl script.
I have run it on Solaris 8, 9 and 10 as they all come with perl in /usr/bin
Just download the script and make it executable :-
chmod a+x sysperfstat
and away you go :-)
 
 
 

System CPU, Mem, Disk and Net perf stats

Post by JO » Thu, 17 Mar 2005 11:57:03






> >>>G'Day Richard,



> >>>>>G'Day Folks,

> >>>>>I just wrote the following freeware Perl/Kstat script that you may find
> >>>>>useful,

> >>>>>  $ sysperfstat 1
> >>>>>              ------ Utilisation ------     ------ Saturation ------
> >>>>>      Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> >>>>>  23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
> >>>>>  23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
> >>>>>  23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00

> >>>[...]

> >>>>Hi Brendon,
> >>>>I have just downloaded your script an ran it on my 8 CPU E3500 but the
> >>>>CPU col is showing 100% which is not what sdtperfmeter or top show.

> >>>>rskelton: ./sysperfstat 5
> >>>>            ------ Utilisation ------     ------ Saturation ------
> >>>>    Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> >>>>11:46:04  100.00  98.05   0.00   0.23    0.00   0.00   0.00   0.00
> >>>>11:46:09  100.00  98.02   0.00   0.57    0.00   0.00   0.00   0.00
> >>>>11:46:14  100.00  97.92   0.00   0.54    0.00   0.00   0.00   0.00
> >>>>11:46:19  100.00  98.10   0.00   1.53    0.00   0.00   0.00   0.00
> >>>>11:46:24  100.00  98.02   0.00   5.66    0.00   0.00   0.00   0.00
> >>>>11:46:29  100.00  98.05   0.00   7.99    0.00   0.00   0.00   0.00
> >>>>11:46:34  100.00  97.99   0.00   4.55    0.00   0.00   0.00   0.00
> >>>>11:46:39  100.00  97.93   0.00   5.76    0.00   0.00   0.00   0.00
> >>>>11:46:44  100.00  97.99   0.00   7.42    0.00   0.00   0.00   0.00

> >>>>load averages:  3.71,  3.58,  3.49
> >>>>4024 processes:3913 sleeping, 1 running, 69 zombie, 37 stopped, 4 on cpu
> >>>>CPU states: 48.2% idle, 25.0% user, 26.6% kernel,  0.2% iowait,  0.0% swap
> >>>>Memory: 8192M real, 119M free, 16G swap in use, 16G swap free

> >>>Ahh, thank you very much! I missed a CPU division, it's fixed now - check
> >>>the lastest version. :-)

> >>>thanks,

> >>>Brendan

> >>>[Sydney, Australia]

> >>Hi Brendon,
> >>Thats better thanks.

> >>root: ./sysperfstat 5
> >>             ------ Utilisation ------     ------ Saturation ------
> >>     Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> >>23:27:40   68.47  97.83   0.00   0.16    0.80   0.00   0.00   0.00
> >>23:27:46   48.83  97.71   0.00   0.17    0.20   0.00   0.00   0.00
> >>23:27:51   35.00  97.39   0.00   1.48    0.33   0.00   0.00   0.00
> >>23:27:56   55.63  97.66   0.00   1.94    0.00   0.00   0.00   0.00
> >>23:28:01   56.97  97.60   0.00   0.26    0.80   0.00   0.00   0.00
> >>23:28:06   44.27  97.66   0.00   0.25    0.20   0.00   0.00   0.00
> >>23:28:11   67.90  97.78   0.00   0.22    0.80   0.00   0.00   0.00
> >>23:28:16   45.03  97.70   0.00   0.21    0.20   0.00   0.00   0.00
> >>23:28:21   35.23  97.78   0.00   0.13    0.00   0.00   0.00   0.00
> >>23:28:26   57.63  97.81   0.00   0.21    0.20   0.00   0.00   0.00
> >>23:28:31   38.07  97.79   0.00   0.17    0.00   0.00   0.00   0.00

> > Hi~ everyone
> > I am a new one, to join solaris family.
> > I really want use this tools, but still can't get it.
> > how to use it??? should i complier it first???
> > or some kind other special way???
> Hi JOE,
> It's whats know as a perl script.
> I have run it on Solaris 8, 9 and 10 as they all come with perl in /usr/bin
> Just download the script and make it executable :-
> chmod a+x sysperfstat
> and away you go :-)

Thanks, for your respond.
and i just try to use perl to complier this script
however the proglem requirement "kmstat" ???
what's this??? did i made worng command???
i use this #./perl sysperfstat
 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Brendan Greg » Thu, 17 Mar 2005 15:45:55







> > >>>G'Day Richard,



> > >>>>>G'Day Folks,

> > >>>>>I just wrote the following freeware Perl/Kstat script that you may find
> > >>>>>useful,

> > >>>>>  $ sysperfstat 1
> > >>>>>              ------ Utilisation ------     ------ Saturation ------
> > >>>>>      Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> > >>>>>  23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
> > >>>>>  23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
> > >>>>>  23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00
[...]
> > > Hi~ everyone
> > > I am a new one, to join solaris family.
> > > I really want use this tools, but still can't get it.
> > > how to use it??? should i complier it first???
> > > or some kind other special way???
> > Hi JOE,
> > It's whats know as a perl script.
> > I have run it on Solaris 8, 9 and 10 as they all come with perl in /usr/bin
> > Just download the script and make it executable :-
> > chmod a+x sysperfstat
> > and away you go :-)

> Thanks, for your respond.
> and i just try to use perl to complier this script
> however the proglem requirement "kmstat" ???
> what's this??? did i made worng command???
> i use this #./perl sysperfstat

Try,

   # uname -sr
   SunOS 5.9

This must say SunOS 5.8, SunOS 5.9 or better.
Then,

   # ./sysperfstat

if it complains with a message like,


Then you are either on an old version of Solaris, or on a Solaris install
that is missing the Perl package (or someone has done something silly to
your Perl). You can check using,

   # pkginfo SUNWpl5u
   system      SUNWpl5u       Perl 5.6.1 (core)

no worries,

Brendan

 
 
 

System CPU, Mem, Disk and Net perf stats

Post by JO » Fri, 18 Mar 2005 11:23:47








> > > >>>G'Day Richard,



> > > >>>>>G'Day Folks,

> > > >>>>>I just wrote the following freeware Perl/Kstat script that you may find
> > > >>>>>useful,

> > > >>>>>  $ sysperfstat 1
> > > >>>>>              ------ Utilisation ------     ------ Saturation ------
> > > >>>>>      Time    %CPU   %Mem  %Disk   %Net     CPU    Mem   Disk    Net
> > > >>>>>  23:41:01    3.00  79.41   0.00   0.00    0.00   0.00   0.00   0.00
> > > >>>>>  23:41:02   32.00  79.69   1.29   8.40    0.00   0.00   0.00   0.00
> > > >>>>>  23:41:03   55.00  80.12  25.15  65.40    0.00   0.00   0.01   0.00
> [...]
> > > > Hi~ everyone
> > > > I am a new one, to join solaris family.
> > > > I really want use this tools, but still can't get it.
> > > > how to use it??? should i complier it first???
> > > > or some kind other special way???
> > > Hi JOE,
> > > It's whats know as a perl script.
> > > I have run it on Solaris 8, 9 and 10 as they all come with perl in /usr/bin
> > > Just download the script and make it executable :-
> > > chmod a+x sysperfstat
> > > and away you go :-)

> > Thanks, for your respond.
> > and i just try to use perl to complier this script
> > however the proglem requirement "kmstat" ???
> > what's this??? did i made worng command???
> > i use this #./perl sysperfstat

> Try,

>    # uname -sr
>    SunOS 5.9

> This must say SunOS 5.8, SunOS 5.9 or better.
> Then,

>    # ./sysperfstat

> if it complains with a message like,


> Then you are either on an old version of Solaris, or on a Solaris install
> that is missing the Perl package (or someone has done something silly to
> your Perl). You can check using,

>    # pkginfo SUNWpl5u
>    system      SUNWpl5u       Perl 5.6.1 (core)

> no worries,

> Brendan

 My OS is SUN 5.8
but i still confused, with my complier action
i use #./perl sysperfstat
but it requirement "kmstat"
what's this??? what should i do about this system tools???
 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Darren Dunha » Sat, 19 Mar 2005 01:40:46



>>    # ./sysperfstat

>> if it complains with a message like,


>> Then you are either on an old version of Solaris, or on a Solaris install
>> that is missing the Perl package (or someone has done something silly to
>> your Perl). You can check using,

>>    # pkginfo SUNWpl5u
>>    system      SUNWpl5u       Perl 5.6.1 (core)

>> no worries,

>> Brendan
>  My OS is SUN 5.8
> but i still confused, with my complier action
> i use #./perl sysperfstat
> but it requirement "kmstat"
> what's this??? what should i do about this system tools???

He suggested running sysperfstat directly, not running perl with
sysperfstat as an argument.

By running ./perl, you're running a particular version.  What directory
are you in?  Are you running the installed Solaris perl or one you've
put in place?  Only the installed Solaris perl is likely to have the
kstat library.

--

Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Thomas Schu » Sat, 19 Mar 2005 06:21:42





>>>    # ./sysperfstat

>>> if it complains with a message like,


>>> Then you are either on an old version of Solaris, or on a Solaris install
>>> that is missing the Perl package (or someone has done something silly to
>>> your Perl). You can check using,

>>>    # pkginfo SUNWpl5u
>>>    system      SUNWpl5u       Perl 5.6.1 (core)

>>> no worries,

>>> Brendan

>>  My OS is SUN 5.8
>> but i still confused, with my complier action
>> i use #./perl sysperfstat
>> but it requirement "kmstat"
>> what's this??? what should i do about this system tools???

>He suggested running sysperfstat directly, not running perl with
>sysperfstat as an argument.

>By running ./perl, you're running a particular version.  What directory
>are you in?  Are you running the installed Solaris perl or one you've
>put in place?  Only the installed Solaris perl is likely to have the
>kstat library.

I just ran into the same thing here.  You have to use the Solaris Perl.
Is there any way to get kstat into a Perl that we compile ourselves.
Perhaps just copy some files over?

>--

>Senior Technical Consultant         TAOS            http://www.taos.com/
>Got some Dr Pepper?                           San Francisco, CA bay area
>         < This line left intentionally blank to confuse you. >

--
Tom Schulz

 
 
 

System CPU, Mem, Disk and Net perf stats

Post by Richard Skelto » Sat, 19 Mar 2005 22:37:53






>>>>   # ./sysperfstat

>>>>if it complains with a message like,


>>>>Then you are either on an old version of Solaris, or on a Solaris install
>>>>that is missing the Perl package (or someone has done something silly to
>>>>your Perl). You can check using,

>>>>   # pkginfo SUNWpl5u
>>>>   system      SUNWpl5u       Perl 5.6.1 (core)

>>>>no worries,

>>>>Brendan

>>> My OS is SUN 5.8
>>>but i still confused, with my complier action
>>>i use #./perl sysperfstat
>>>but it requirement "kmstat"
>>>what's this??? what should i do about this system tools???

>>He suggested running sysperfstat directly, not running perl with
>>sysperfstat as an argument.

>>By running ./perl, you're running a particular version.  What directory
>>are you in?  Are you running the installed Solaris perl or one you've
>>put in place?  Only the installed Solaris perl is likely to have the
>>kstat library.

> I just ran into the same thing here.  You have to use the Solaris Perl.
> Is there any way to get kstat into a Perl that we compile ourselves.
> Perhaps just copy some files over?

>>--

>>Senior Technical Consultant         TAOS            http://www.taos.com/
>>Got some Dr Pepper?                           San Francisco, CA bay area
>>        < This line left intentionally blank to confuse you. >

Hi,
You need to install the Solaris extensions by Alan Burlison.

http://search.cpan.org/~aburlison/Solaris-0.05a/

 
 
 

1. getting mem stats from system

Hi.  I need to write an app that has access to general system info such
as free memory, used memory, etc.    I'm told i can read this from the
process table...I'm guessing that's pretty variant-specific- I need this
application to be very portable (among different unixes).

should i just make a system call to vmstat to get this info? is that
really inefficient? (this app  will run all the time, and poll this info
approx. every 5 seconds.)

is there a better utility (besides vmstat)

thanks very much.
Graham Street

2. X server without pointer?

3. system call for CPU,mem,IO (SVR4, AIX)

4. RDATE connection refused. Please help

5. Need a simply util that will monitor CPU/DISK and email stats

6. Unix - Frequently Asked Questions (Contents) [Frequent posting]

7. Need a simple util. that will monitor CPU/DISK and email stats

8. Upgrade Prob 6.1->7.0 Newbie here.

9. Need System Call to return %MEM (kernel mem) used by process

10. UNIX perf stats.

11. High system CPU% in dual CPU System

12. Perf stats in 4.3.3

13. /proc/stat does not show disk_io stats for all IDE disks