About this list Date view Thread view Subject view Author view Attachment view

From: Gebhardt Thomas (gebhardt_at_hrz.uni-marburg.de)
Date: Mon 19 Jul 2004 - 15:53:38 BST


On Monday 19 July 2004 16:22, Herbert Poetzl wrote:

Hi,

> not at the moment, but you can use a simple trick for that:

thanks :-)

> > That's another odd item. The RSS values reported by vserver-stat
> > are ridiculously small (maybe off by a factor of 1024?). Just a few kB
> > per active vserver running apache.
>
> give some numbers, and we'll discuss them ...

master# vserver-stat
CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME DESCRIPTION
0 62 72MB 6kB 5h06m30 2h44m12 34d01h49 root server
...
49154 10 41MB 3kB 16m01.95 18m39.80 34d01h46 elog
...

So the elog vserver has a reported RSS size of 3kB

# vserver elog enter
...
elog:/# ps faux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 26665 0.0 0.1 2136 1196 pts/1 S 16:35 0:00 /bin/bash
-login
root 27116 0.0 0.0 2556 780 pts/1 R 16:35 0:00 \_ ps faux
root 1 0.0 0.0 1272 436 ? S Jun15 0:38 init [2]
root 1285 0.0 0.0 1552 704 ? S Jun15 0:04 /sbin/syslog-ng
root 1315 0.0 0.0 2780 644 ? S Jun15 0:03 /usr/sbin/sshd
daemon 1318 0.0 0.0 1304 476 ? S Jun15 0:00 /usr/sbin/atd
root 1321 0.0 0.0 1572 560 ? S Jun15 0:03 /usr/sbin/cron
elog 12425 0.0 0.4 6376 4392 ? S Jun16 8:14 /usr/sbin/elogd
elog 12433 0.0 0.1 6084 1176 ? S Jun16 4:18 /usr/sbin/elogd
elog 12437 0.0 0.1 5300 1152 ? S Jun16 3:51 /usr/sbin/elogd
elog 12441 0.0 0.1 6336 1708 ? S Jun16 8:01 /usr/sbin/elogd
elog 12468 0.0 0.4 6184 4472 ? S Jun16 3:44 /usr/sbin/elogd
elog 12471 0.0 0.1 5228 1084 ? S Jun16 3:27 /usr/sbin/elogd

Summing up the VSZ column (skipping the bash created by the vserver enter
command) we get about 40 MB, just as reported by vserver-stat.
Summing up the RSS column we get about 17 MB which is much more
that the 3kB reported by vserver-stat.

Swap usage is about zero on that system, so the difference cannot
be explained with vm pages swapped in/out. Leaving the vserver,
vserver-stat reports 3kB RSS again:

49154 10 41MB 3kB 16m02.34 18m40.47 34d02h01 elog

Cheers, Thomas
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 19 Jul 2004 - 15:53:55 BST by hypermail 2.1.3