memory problem with vmstat and tail

2007-12-24 21:56:00

Greetings,

I've got a couple of Solaris 8 pk Jan 2002. Every one of them is
showing a wierd problem with vmstat and tail. When I run a command like this:

vmstat 10 2 | tail -1

The "tail" eats most of my availible memory.

This can be seen by looking at the commands and it's output:

Thanks,

Paul

root at cezanne:/% (vmstat 2 10 | tail -9) &
[1] 4824
root at cezanne:/% ps -eo vsz,pid,ppid,args | sort -n
VSZ PID PPID COMMAND
0 0 0 sched
0 2 0 pageout
0 3 0 fsflush
320 4808 4805 -sh
792 1 0 /etc/init -
1016 229 1 /usr/lib/utmpd
1032 4825 4824 vmstat 2 10
1288 59 1 /usr/lib/sysevent/syseventconfd
1512 57 1 /usr/lib/sysevent/syseventd
1752 247 1 /usr/lib/saf/sac -t 300
1752 248 1 /usr/lib/saf/ttymon -g -h -p cezanne console login: -T
sun -d /dev/console -l
1752 250 247 /usr/lib/saf/ttymon
1776 181 1 /usr/sbin/inetd -s
1792 4805 181 in.telnetd
1888 179 1 /usr/lib/nfs/lockd
1904 4827 4812 ps -eo vsz,pid,ppid,args
1920 214 1 /usr/sbin/cron
2048 3574 3558 ..http://bin/https/bin/Cgistub -f /tmp/.cgistub_3558
2056 3575 3574 ..http://bin/https/bin/Cgistub -f /tmp/.cgistub_3558
2056 3576 3574 ..http://bin/https/bin/Cgistub -f /tmp/.cgistub_3558
2160 252 1 /usr/lib/inet/xntpd
2320 155 1 /usr/sbin/rpcbind
2336 68 1 /usr/lib/picl/picld
2424 4812 4808 bash
2424 4824 4812 bash
2488 180 1 /usr/lib/nfs/statd
2632 226 1 /usr/sbin/vold
3664 3557 1 ./uxwdog -d /opt/netscape/server4/https-admserv/config
3664 4723 1 ./uxwdog -d /opt/netscape/server4/https-PortalServer/config
4400 209 1 /usr/sbin/syslogd
7648 3035 1 ./ns-admin -d /opt/netscape/ldap/admin-serv/config
7952 3558 3557 ns-httpd -d /opt/netscape/server4/https-admserv/config
8672 228 1 /usr/sbin/nscd
34824 3030 1 ./ns-slapd -f
/opt/netscape/ldap/slapd-cezanne/config/slapd.conf -i /opt/netsca
151208 4724 4723 ns-httpd -d /opt/netscape/server4/https-PortalServer/config
2098136 4826 4824 tail -9
root at cezanne:/% vmstat 2 2
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr dd dd f0 m0 in sy cs us sy id
0 0 0 2767544 805736 0 0 0 0 0 0 0 1 0 0 0 319 323 288 0 1 99
0 0 0 671816
834392 0 3 0 0 0 0 0 0 0 0 0 325 243 117 0 0 100
root at cezanne:/%
0 0 0 672016
834600 3 41 0 0 0 0 0 0 0 0 0 318 290 122 0 0 100
0 0 0 672016 834600 3 40 0 0 0 0 0 0 0 0 0 319 296 163 0 0 99
0 0 0 671816
834392 0 0 0 0 0 0 0 0 0 0 0 321 257 115 0 0 100
0 0 0 672016
834592 0 0 0 0 0 0 0 0 0 0 0 313 242 151 0 0 100
0 0 0 672016
834592 0 0 0 0 0 0 0 0 0 0 0 312 228 109 0 0 100
0 0 0 672016
834592 0 0 0 0 0 0 0 0 0 0 0 333 214 102 0 0 100
0 0 0 672016
834592 0 0 0 0 0 0 0 0 0 0 0 310 257 157 0 0 100
0 0 0 672016 834592 0 0 0 0 0 0 0 1 0 0 0 315 215 102 0 6 94
0 0 0 672016
834584 0 0 0 0 0 0 0 3 0 0 0 326 255 162 0 0 100

[1]+ Done ( vmstat 2 10 | tail -9 )
root at cezanne:/% vmstat 2 2
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr dd dd f0 m0 in sy cs us sy id
0 0 0 2767528 805736 0 0 0 0 0 0 0 1 0 0 0 319 323 288 0 1 99
0 0 0 2769744 834864
0 3 0 0 0 0 0 0 0 0 0 343 261 157 0 0 100
root at cezanne:/%

Comments

Got something to say?

You must be logged in to post a comment.