Running a small server...memory troubles...

Matt G linux at bizniche.com
Fri Jun 27 12:23:01 CDT 2003


Okay...let me tell you the changes I made, and the outcome:

First, I put the system's original memory back in....just in case there
was some type of compatibility problems.  That left the system with
32mb.  So, here are the rough specs:

K6 233, 32mb, 4gb hdd.

I ditched redhat for a few reasons.  None of them was that it wasn't an
acceptable server.  I thought I may have installed it incorrectly, and
I've always wanted to try debian...so debian it was.

The install went good!  I'm sold.  On that box, linux is using < 300mb
of space now.  I only installed what I thought I'd need for a small
server...no X, no desktop anything...just some server type stuff. 

Ok...so then, I started up the system, logged in via telnet from another
machine, and went to bed.  When I woke up, I did top > top.txt, and
below, you can see what I'm getting.  (Pardon the extra characters.)

See all those www-data users...and apache commands?  Seems like they're
taking up quite a bit of memory.  everything else looks ok (to me), but
lots of apache's and lots of getty's.  

Does any of this look normal yet?

Thanks, 
Matt

14:05:14 up  7:03,  1 user,  load average: 0.00, 0.00, 0.00^[[K
35 processes: 34 sleeping, 1 running, 0 zombie, 0 stopped^[[K
CPU states:   0.1% user,   0.1% system,   0.0% nice,  99.8% idle^[[K
Mem:     30616K total,    23480K used,     7136K free,     7560K
buffers^[[K
Swap:   522104K total,      660K used,   521444K free,     8136K
cached^[[K
^[[0m^[[K
^[[7m  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME
COMMAND^[[K^[[0m
  437 mdg       10   0   936  936   748 R     2.8  3.0   0:00 top^[[K
    1 root      10   0   488  488   424 S     0.0  1.5   0:04 init^[[K
    2 root       0   0     0    0     0 SW    0.0  0.0   0:00
kflushd^[[K
    3 root       0   0     0    0     0 SW    0.0  0.0   0:00
kupdate^[[K
    4 root       0   0     0    0     0 SW    0.0  0.0   0:00 kswapd^[[K
    5 root       0   0     0    0     0 SW    0.0  0.0   0:00
keventd^[[K
  109 root       0   0   368  300   224 S     0.0  0.9   0:00
dhclient-2.2.x^[[K  113 daemon     0   0   320  316   244 S     0.0 
1.0   0:00 portmap^[[K
  167 root       0   0   740  736   624 S     0.0  2.4   0:00
syslogd^[[K
  170 root       0   0   732  724   336 S     0.0  2.3   0:00 klogd^[[K
  175 root       0   0   600  600   504 S     0.0  1.9   0:00
rpc.statd^[[K
  183 root       0   0   656  652   576 S     0.0  2.1   0:00 inetd^[[K
  187 root       0   0   708  704   616 S     0.0  2.2   0:00 lpd^[[K
  196 root       0   0   848  788   636 S     0.0  2.5   0:01 sshd^[[K
  199 daemon     0   0   368  344   288 S     0.0  1.1   0:00 atd^[[K
  202 root       3   0   628  624   508 S     0.0  2.0   0:00 cron^[[K
  206 root       0   0  1308 1304  1236 S     0.0  4.2   0:00 apache^[[K
  210 root       0   0   468  468   408 S     0.0  1.5   0:00 getty^[[K
  211 root       0   0   468  468   408 S     0.0  1.5   0:00 getty^[[K
  212 root       0   0   468  468   408 S     0.0  1.5   0:00 getty^[[K
  213 root       0   0   468  468   408 S     0.0  1.5   0:00 getty^[[K
  214 root       0   0   468  468   408 S     0.0  1.5   0:00 getty^[[K
  215 www-data   0   0   848  808   732 S     0.0  2.6   0:00 apache^[[K
  216 www-data   0   0   848  848   772 S     0.0  2.7   0:00 apache^[[K
  217 www-data   0   0  1160 1160  1008 S     0.0  3.7   0:00 apache^[[K
  218 www-data   0   0  1160 1100   948 S     0.0  3.5   0:00 apache^[[K
  219 www-data   0   0   848  848   772 S     0.0  2.7   0:00 apache^[[K
  220 www-data   0   0   848  840   764 S     0.0  2.7   0:00 apache^[[K
  221 www-data   0   0   848  848   772 S     0.0  2.7   0:00 apache^[[K
  222 www-data   0   0   848  848   772 S     0.0  2.7   0:00 apache^[[K
  223 telnetd    1   0   696  696   576 S     0.0  2.2   0:00
in.telnetd^[[K
  224 mdg        0   0  1224 1224  1012 S     0.0  3.9   0:00 bash^[[K
  231 root       0   0  1192 1192   984 S     0.0  3.8   0:00 bash^[[K
  317 mdg        8   0  1224 1224  1012 S     0.0  3.9   0:00 bash^[[K
  435 root       5   0   468  468   408 S     0.0  1.5   0:00
getty^[[K^[[J^[[6;1H^[[49;1H^M




More information about the Kclug mailing list