LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 07-15-2004, 08:33 AM   #1
aditya_shah
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
"sar" and "iostat" equivalents on Debian?


What are the "sar" (Report System and CPU performance)
and "iostat" (Report Disk and IO Performance) equivalents on Debian??
 
Old 07-15-2004, 10:03 AM   #2
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
try checking out "top"

actually, after an:

apt-cache search iostat

i found this package: sysstat

apt-cache show sysstat

reveals:

Quote:
The sysstat package contains the sar, mpstat and iostat commands for Linux.
apt-get install sysstat

Also you may want to look into isag which is an
Quote:
Interactive System Activity Grapher for sysstat
apt-get install isag

Last edited by zuralin; 07-15-2004 at 10:07 AM.
 
Old 07-16-2004, 02:05 AM   #3
aditya_shah
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Thank you so much for your response!!

I tried searching the system for the sysstat and the isag packages using apt-cache, however, apt-cache could not locate them.

The command says:

debian:~# apt-cache showpkg sysstat
W: Unable to locate package sysstat

Is there some place where I can find/download these packages from?

Also, on Debian, does the 'top' utility get installed with the base installation?

Thanks!!
 
Old 07-16-2004, 10:20 AM   #4
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
According to debian.org sysstat is in all three (stable,testing,unstable) repositories. Show your /etc/apt/sources.list.
 
Old 07-30-2004, 02:55 AM   #5
aditya_shah
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Did you mean that I post my /etc/apt/sources.list file.

If that's the case then here it goes:

cat /etc/apt/sources.list

#deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-1 (20021218)]/ unstable contrib main non-US/contrib non-US/main

# deb http://security.debian.org/ stable/updates main

deb cdrom:[Debian GNU/Linux 3.0 r1 _Woody_ - Official i386 Binary-1 (20021218)]/ unstable contrib main non-US/contrib non-US/main

Please provide some insight !!!
 
Old 07-30-2004, 05:26 PM   #6
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Edit your /etc/apt/sources.list (either by hand or through apt-setup) and add an http source.
Code:
deb http://ftp.us.debian.org/debian unstable main non-free contrib
Then run apt-get update.
 
Old 07-30-2004, 06:00 PM   #7
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
don't follow comp's post. that will add Sid as a package source. you want woody sources. do this

Code:
su -c "nedit /etc/apt/sources.list"
the 'su' command will request your root password to open the editor 'nedit'. add a line at the end that says

Code:
deb http://ftp.us.debian.org/debian stable main non-free contrib
i also suggest uncommenting the debian security source (remove the # from that line). then do this to download and install your software.

Code:
su -c "apt-get update ; apt-get install sysstat"
now, you should be able to run 'iostat' and 'sar'.

you may want to update your system with the latest packages (note that this isn't necessary...it will require a lot of downloading...so don't do it if u don't have broadband)

Code:
su -c "apt-get dist-upgrade"

Last edited by zero79; 07-30-2004 at 06:17 PM.
 
Old 07-30-2004, 07:11 PM   #8
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 51
macondo@debian:~$ apt-cache show sysstat
Package: sysstat
Priority: optional
Section: admin
Installed-Size: 536
Maintainer: Robert Luberda <robert@debian.org>
Architecture: i386
Version: 5.0.5-1
Depends: libc6 (>= 2.3.2.ds1-4), debconf (>= 0.5) | debconf-2.0
Recommends: cron
Suggests: isag
Conflicts: atsar (<< 1.5-3)
Filename: pool/main/s/sysstat/sysstat_5.0.5-1_i386.deb
Size: 110830
MD5sum: de9189504e570bd0109594f7e1155e19
Description: sar, iostat and mpstat - system performance tools for Linux
The sysstat package contains the sar, mpstat and iostat
commands for Linux.
.
The sar command collects and reports system activity
information. The iostat command reports CPU utilization
and I/O statistics for disks. The mpstat command reports
global and per-processor statistics.
The statistics reported by sar concern I/O transfer rates,
paging activity, process-related activities, interrupts,
network activity, memory and swap space utilization, CPU
utilization, kernel activities and TTY statistics, among
others. Both UP and SMP machines are fully supported.
.
Homepage: http://perso.wanadoo.fr/sebastien.godard/

Package: sysstat
Priority: optional
Section: admin
Installed-Size: 472
Maintainer: Robert Luberda <robert@debian.org>
Architecture: i386
Version: 4.0.4-1woody2
Depends: libc6 (>= 2.2.4-4), debconf (>= 0.2.80.17)
Recommends: cron
Suggests: isag
Conflicts: atsar (<< 1.5-3)
Filename: pool/updates/main/s/sysstat/sysstat_4.0.4-1woody2_i386.deb
Size: 78712
MD5sum: 3b33e776572470aa69c0d38989277205
Description: sar, iostat and mpstat - system performance tools for Linux
The sysstat package contains the sar, mpstat and iostat
commands for Linux.
.
The sar command collects and reports system activity
information. The iostat command reports CPU utilization
and I/O statistics for disks. The mpstat command reports
global and per-processor statistics.
The statistics reported by sar concern I/O transfer rates,
paging activity, process-related activities, interrupts,
network activity, memory and swap space utilization, CPU
utilization, kernel activities and TTY statistics, among
others. Both UP and SMP machines are fully supported.

macondo@debian:~$
 
Old 08-02-2004, 12:53 AM   #9
aditya_shah
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you so much to all of you for extending all this help!!
Will try the solutions you have provided and let you know the results.

Thanks again!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 6 03-21-2013 11:35 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
Debian Boot Up Problem - stuck at "BR" & "I" jc70417 Debian 2 08-30-2005 05:36 PM


All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration