Messages in this thread | | | Date | Wed, 10 Dec 2003 11:18:19 +0100 | From | Dominik Kubla <> | Subject | Re: Swap performance statistics in 2.6 -- which /proc file has it? |
| |
Richard B. Johnson wrote: > > Hmm. I was talking about real stuff, not some theory.....
[...]
> Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996 > # vmstat -a > Usage: vmstat [-cisS] [disk ...] [interval [count]] > # sar -B > sar: illegal option -- B > usage: sar [-ubdycwaqvmpgrkA][-o file] t [n] > sar [-ubdycwaqvmpgrkA][-s hh:mm][-e hh:mm][-i ss][-f file] > # sar -r > sar: can't open /var/adm/sa/sa09 > No such file or directory > # uname -a > SunOS hal 5.5.1 Generic sun4m sparc SUNW,SPARCstation-5
[...]
> ... Guess not.
If you try this on a Linux system with the sysstat package installed you might be surprised... (That's why i said the Linux part in the mentioned book is outdated: it does not tell you that sar is available and recommends to parse the proc files)
# dpkg -l sysstat Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii sysstat 5.0.0-1 sar, iostat and mpstat - system performance
# vmstat -a procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free inact active si so bi bo in cs us sy id wa 0 0 0 113072 219600 173056 0 0 320 80 1055 203 6 2 78 14
# sar -B 60 Linux 2.6.0-test5-bk4 (duron) 12/10/03
11:13:24 pgpgin/s pgpgout/s fault/s majflt/s 11:14:24 0.00 3.80 13.38 0.00 Average: 0.00 3.80 13.38 0.00
# sar -r 60 Linux 2.6.0-test5-bk4 (duron) 12/10/03
11:14:53 kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad 11:15:53 112488 532788 82.57 74000 260688 497972 0 0.00 0 Average: 112488 532788 82.57 74000 260688 497972 0 0.00 0
It that is sufficient information for your purposes i can not say, but for most people that is all they will ever need.
Regards, Dominik Kubla -- Those who can make you believe absurdities can make you commit atrocities. (Francois Marie Arouet aka Voltaire, 1694-1778)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |