Subject: memory usage
To: None <netbsd-users@NetBSD.org>
From: Reinhold M. Roppert <netbsd-users@rmroppert.info>
List: netbsd-users
Date: 01/11/2006 00:52:56
Hello,

we have an P4/3GHz server running under netbsd 1.6 with 2 GB of RAM.

Since some days the "top" command gives the output below. 
What is using the "1651MB  File "of RAM?
Can anybody explain this?
Normaly on the server runs also an apache, mysql, qmail, etc. The "Free" memory goes to 
under 10 MB Free.

I also give you the "ps -aux" output.

Thank you and best regards 
R.M.Roppert

>> top
load averages:  0.18,  0.37,  0.51    00:31:25
29 processes:  28 sleeping, 1 on processor

Memory: 1070M Act, 588M Inact, 148K Wired, 3956K Exec, 1651M File, 187M Free
Swap: 2055M Total, 2055M Free


  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
   10 root      18    0     0K   75M syncer     0:41  0.83%  0.83% [ioflush]
  395 rmropp     2    0   516K 1000K select     0:01  0.00%  0.00% sshd
   11 root     -18    0     0K   75M aiodoned   0:01  0.00%  0.00% [aiodoned]
    8 root     -18    0     0K   75M pgdaemon   0:01  0.00%  0.00% [pagedaemon]
    9 root     -18    0     0K   75M reaper     0:01  0.00%  0.00% [reaper]
 4774 root      28    0   140K  728K CPU        0:00  0.00%  0.00% top
  396 rmropp    18    0   484K    4K pause      0:00  0.00%  0.00% <csh>
  432 root      18    0   480K    4K pause      0:00  0.00%  0.00% <csh>
    6 root      10    0     0K   75M usbtsk     0:00  0.00%  0.00% [usbtask]
    5 root      10    0     0K   75M usbevt     0:00  0.00%  0.00% [usb0]
    7 root      10    0     0K   75M usbevt     0:00  0.00%  0.00% [usb1]
  435 root      10    0   652K  976K wait       0:00  0.00%  0.00% bash
  105 root      10    0   584K  544K nanoslee   0:00  0.00%  0.00% ipmon
  244 root      10    0   224K  380K nanoslee   0:00  0.00%  0.00% cron
    1 root      10    0   348K  136K wait       0:00  0.00%  0.00% init
  293 root       3    0    48K    4K ttyin      0:00  0.00%  0.00% <getty>
  295 root       3    0    48K    4K ttyin      0:00  0.00%  0.00% <getty>
  296 root       3    0    48K    4K ttyin      0:00  0.00%  0.00% <getty>


>> ps  -aux
USER    PID %CPU %MEM VSZ   RSS TT  STAT STARTED    TIME COMMAND
root      0  0.0  3.7   0 76720 ??  DKs   9:50PM 0:00.01 [swapper]
root    435  0.0  0.0 652   976 p0  S     9:53PM 0:00.15 bash
root    432  0.0  0.0 480     4 p0  IW         - 0:00.00 -csh -m
rmropp  396  0.0  0.0 484     4 p0  IWs        - 0:00.00 -csh
rmropp  395  0.0  0.0 516  1000 ??  S     9:53PM 0:01.43 sshd: rmropp@ttyp0
root    366  0.0  0.0 524   924 ??  Ss    9:53PM 0:00.04 sshd: rmropp [priv]
root    297  0.0  0.0  44     4 ??  IW         - 0:00.00 /usr/libexec/getty std.9600 tty00
root    296  0.0  0.0  48     4 E3  IWs+       - 0:00.00 /usr/libexec/getty Pc ttyE3
root    295  0.0  0.0  48     4 E2  IWs+       - 0:00.00 /usr/libexec/getty Pc ttyE2
root    294  0.0  0.0  48     4 E1  IWs+       - 0:00.00 /usr/libexec/getty Pc ttyE1
root    293  0.0  0.0  48     4 E0  IWs+       - 0:00.00 /usr/libexec/getty Pc console
root    244  0.0  0.0 224   380 ??  Ss    9:52PM 0:00.02 /usr/sbin/cron
qmaill  217  0.0  0.0  48     4 E0- IW         - 0:00.00 /usr/pkg/bin/multilog -t s10000000 n20 
/var/log/qmail/qread
qmails  216  0.0  0.0  52     4 E0- IW         - 0:00.00 qmailqread -R -1 -u 1010 -g 1003 
127.0.0.1 20025 /usr/pkg/bin/qmail-qread (tcpserver)
root    184  0.0  0.0 380     4 ??  IWs        - 0:00.00 /usr/sbin/sshd
root    105  0.0  0.0 584   544 ??  Ss    9:52PM 0:00.14 /usr/sbin/ipmon -s -D
root    101  0.0  0.0 188   424 ??  Ss    9:52PM 0:00.04 /usr/sbin/syslogd -s
root     11  0.0  3.7   0 76720 ??  DK    9:50PM 0:01.33 [aiodoned]
root     10  0.4  3.7   0 76720 ??  DK    9:50PM 0:42.06 [ioflush]
root      9  0.0  3.7   0 76720 ??  DK    9:50PM 0:01.09 [reaper]
root      8  0.0  3.7   0 76720 ??  DK    9:50PM 0:01.43 [pagedaemon]
root      7  0.0  3.7   0 76720 ??  DK    9:50PM 0:00.00 [usb1]
root      6  0.0  3.7   0 76720 ??  DK    9:50PM 0:00.00 [usbtask]
root      5  0.0  3.7   0 76720 ??  DK    9:50PM 0:00.00 [usb0]
root      4  0.0  3.7   0 76720 ??  DK    9:50PM 0:00.00 [atapibus0]
root      3  0.0  3.7   0 76720 ??  DK    9:50PM 0:00.00 [scsibus1]
root      2  0.0  3.7   0 76720 ??  DK    9:50PM 0:00.00 [scsibus0]
root      1  0.0  0.0 348   136 ??  Ss    9:50PM 0:00.01 init
root   4788  0.0  0.0 384   260 p0  R+   12:32AM 0:00.00 ps -aux