I needed a new server for storing backups at work, and decided to give 
Centos 5.5 a shot (I haven't touched Red Hat since the late 90's (or 
should I say that other upstream vendor)).  I was pleasantly surprised how 
well the install went with my hardware (3ware raid card mainly was my 
concern). Setting up samba/Kerberos/winbind & attaching to our M$ 
domain was easy as pie.  All in all a good experience.

I am a bit concerned about the high memory consumption though.  I turned 
off xserver/gnome & a handful of other unneeded things to lean it out, but 
I am shocked how much RAM it is using.  All I want this box to do is be a 
file server, and nothing more.

Here is what it is showing:

[bob at bigdaddy init.d]$ free -m
              total       used       free     shared    buffers     cached
Mem:          3828       3804         24          0         83       3492
-/+ buffers/cache:        228       3600
Swap:         2000          0       2000

I have no intention of ever using any GUIlishous X anything on this box.
Here are the programs that set to run level 3 ON.

[root at bigdaddy ~]# chkconfig --list | grep 3:on
PBEAgent        0:off   1:off   2:on    3:on    4:on    5:on    6:off
anacron         0:off   1:off   2:on    3:on    4:on    5:on    6:off
auditd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
avahi-daemon    0:off   1:off   2:off   3:on    4:on    5:on    6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
firstboot       0:off   1:off   2:off   3:on    4:off   5:on    6:off
hidd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
irqbalance      0:off   1:off   2:on    3:on    4:on    5:on    6:off
jexec           0:on    1:on    2:on    3:on    4:on    5:on    6:on
kudzu           0:off   1:off   2:off   3:on    4:on    5:on    6:off
lm_sensors      0:off   1:off   2:on    3:on    4:on    5:on    6:off
lvm2-monitor    0:off   1:on    2:on    3:on    4:on    5:on    6:off
mcstrans        0:off   1:off   2:on    3:on    4:on    5:on    6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
ntpd            0:off   1:off   2:off   3:on    4:off   5:on    6:off
readahead_early 0:off   1:off   2:on    3:on    4:on    5:on    6:off
restorecond     0:off   1:off   2:on    3:on    4:on    5:on    6:off
setroubleshoot  0:off   1:off   2:off   3:on    4:on    5:on    6:off
smb             0:off   1:off   2:off   3:on    4:on    5:on    6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
syslog          0:off   1:off   2:on    3:on    4:on    5:on    6:off
tdm2            0:off   1:off   2:off   3:on    4:on    5:on    6:off
winbind         0:off   1:off   2:off   3:on    4:on    5:on    6:off
xfs             0:off   1:off   2:on    3:on    4:on    5:on    6:off
xinetd          0:off   1:off   2:off   3:on    4:on    5:on    6:off
yum-updatesd    0:off   1:off   2:on    3:on    4:on    5:on    6:off


Can anyone recommend any of these I can turn off safely?

Also, what is a good way to actually check with is hogging all the memory?

Here is the output from ps aux.  It looks like java is out of control.  Is 
this normal?

# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  10352   700 ?        Ss   Mar03   0:00 init [3]
root         2  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[migration/0]
root         3  0.0  0.0      0     0 ?        SN   Mar03   0:00 
[ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[watchdog/0]
root         5  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[migration/1]
root         6  0.0  0.0      0     0 ?        SN   Mar03   0:01 
[ksoftirqd/1]
root         7  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[watchdog/1]
root         8  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[events/0]
root         9  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[events/1]
root        10  0.0  0.0      0     0 ?        S<   Mar03   0:00 [khelper]
root        47  0.0  0.0      0     0 ?        S<   Mar03   0:00 [kthread]
root        52  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[kblockd/0]
root        53  0.0  0.0      0     0 ?        S<   Mar03   0:05 
[kblockd/1]
root        54  0.0  0.0      0     0 ?        S<   Mar03   0:00 [kacpid]
root       165  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[cqueue/0]
root       166  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[cqueue/1]
root       169  0.0  0.0      0     0 ?        S<   Mar03   0:00 [khubd]
root       171  0.0  0.0      0     0 ?        S<   Mar03   0:00 [kseriod]
root       247  0.0  0.0      0     0 ?        S    Mar03   0:00 
[khungtaskd]
root       248  0.2  0.0      0     0 ?        S    Mar03  13:43 [pdflush]
root       249  0.1  0.0      0     0 ?        S    Mar03  11:47 [pdflush]
root       250  0.1  0.0      0     0 ?        S<   Mar03   6:39 [kswapd0]
root       251  0.0  0.0      0     0 ?        S<   Mar03   0:00 [aio/0]
root       252  0.0  0.0      0     0 ?        S<   Mar03   0:00 [aio/1]
root       392  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[kpsmoused]
root       427  0.0  0.0      0     0 ?        S<   Mar03   0:00 [ata/0]
root       428  0.0  0.0      0     0 ?        S<   Mar03   0:00 [ata/1]
root       429  0.0  0.0      0     0 ?        S<   Mar03   0:00 [ata_aux]
root       433  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[scsi_eh_0]
root       434  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[scsi_eh_1]
root       435  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[scsi_eh_2]
root       436  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[scsi_eh_3]
root       440  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[scsi_eh_4]
root       444  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[kstriped]
root       457  0.0  0.0      0     0 ?        S<   Mar03   0:00 [ksnapd]
root       460  0.0  0.0      0     0 ?        S<   Mar03   0:04 
[md0_raid1]
root       463  0.0  0.0      0     0 ?        S<   Mar03   0:17 
[md1_raid1]
root       464  0.0  0.0      0     0 ?        S<   Mar03   0:13 
[kjournald]
root       490  0.0  0.0      0     0 ?        S<   Mar03   0:00 [kauditd]
root       523  0.0  0.0  13040  1224 ?        S<s  Mar03   0:00 
/sbin/udevd -d
root      1095  0.0  0.0      0     0 ?        S<   Mar03   0:00 [kedac]
root      1720  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[kmpathd/0]
root      1721  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[kmpathd/1]
root      1722  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[kmpath_handlerd]
root      1797  0.0  0.0      0     0 ?        S<   Mar03   6:01 
[jbd2/dm-0-8]
root      1798  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[ext4-dio-unwrit]
root      1799  0.0  0.0      0     0 ?        S<   Mar03   0:00 
[ext4-dio-unwrit]
root      2149  0.0  0.0  27328   808 ?        S<sl Mar03   0:00 auditd
root      2151  0.0  0.0  16268   752 ?        S<sl Mar03   0:00 
/sbin/audispd
root      2183  0.0  0.0   5912   620 ?        Ss   Mar03   0:00 syslogd 
-m 0
root      2186  0.0  0.0   3808   436 ?        Ss   Mar03   0:00 klogd -x
root      2201  0.0  0.0  10764   376 ?        Ss   Mar03   0:01 
irqbalance
root      2243  0.0  0.0   8520   488 ?        Ss   Mar03   0:00 
/usr/bin/hidd --server
root      2262  0.0  0.0  13940  1812 ?        S    Mar03   0:00 
/usr/sbin/3dm2
root      2278  0.0  0.0  13940  1812 ?        S    Mar03   0:00 
/usr/sbin/3dm2
root      2279  0.0  0.0  13940  1812 ?        S    Mar03   0:00 
/usr/sbin/3dm2
root      2294  0.0  0.0  62628  1208 ?        Ss   Mar03   0:00 
/usr/sbin/sshd
root      2329  0.0  0.0  21648   892 ?        Ss   Mar03   0:00 xinetd 
-stayalive -pidfile /var/run/xinetd.pid
ntp       2351  0.0  0.1  21284  4940 ?        SLs  Mar03   0:00 ntpd -u 
ntp:ntp -p /var/run/ntpd.pid
root      2365  0.0  0.0  75748  1176 ?        Ss   Mar03   0:00 crond
xfs       2399  0.0  0.0  22920  1696 ?        Ss   Mar03   0:00 xfs 
-droppriv -daemon
root      2413  0.0  0.1 142108  4412 ?        Ss   Mar03   0:00 smbd -D
root      2416  0.0  0.0 107776  1568 ?        Ss   Mar03   0:06 nmbd -D
root      2430  1.2  0.0 114164  3516 ?        Ss   Mar03  81:48 winbindd
root      2485  1.2  0.0 114152  3512 ?        S    Mar03  82:23 winbindd
root      2486  0.0  0.0 114120  1592 ?        S    Mar03   0:00 winbindd
root      2487  0.0  0.0 142108  1652 ?        S    Mar03   0:00 smbd -D
root      2513  0.0  0.0      0     0 ?        S<   Mar03   0:00 [cifswq]
root      2519  0.0  0.0      0     0 ?        S<   Mar03   0:00 [cifsd]
root      2531  1.1  1.1 1193032 46340 ?       Sl   Mar03  72:40 
/bin/java/jre/1.5.0_18/bin/java -Dpicard.main.thread=blocking -classpath 
./li
root      2536  0.0  0.0   3796   492 tty2     Ss+  Mar03   0:00 
/sbin/mingetty tty2
root      2537  0.0  0.0   3796   492 tty3     Ss+  Mar03   0:00 
/sbin/mingetty tty3
root      2544  0.0  0.0   3796   488 tty4     Ss+  Mar03   0:00 
/sbin/mingetty tty4
root      2545  0.0  0.0   3796   484 tty5     Ss+  Mar03   0:00 
/sbin/mingetty tty5
root      2549  0.0  0.0   3796   488 tty6     Ss+  Mar03   0:00 
/sbin/mingetty tty6
root      2606  0.0  0.3 256844 15492 ?        SN   Mar03   0:00 
/usr/bin/python -tt /usr/sbin/yum-updatesd
root      2608  0.0  0.0  12920  1172 ?        SN   Mar03   0:00 
/usr/libexec/gam_server
root      2673  0.0  0.0   3796   488 tty1     Ss+  Mar03   0:00 
/sbin/mingetty tty1
root      2679  0.0  0.0 114152  1280 ?        S    Mar03   0:00 winbindd
root      2680  0.0  0.1 118628  4064 ?        S    Mar03   0:17 winbindd
root      2686  0.0  0.0 142720  3512 ?        S    Mar03   4:44 smbd -D
root      3033  0.0  0.0 143116  3920 ?        S    Mar03   0:00 smbd -D
root      3038  0.0  0.1 105736  4836 ?        Ss   Mar03   0:00 sshd: bob 
[priv]
root      3040  0.0  0.0 114120  1556 ?        S    Mar03   0:00 winbindd
bob       3041  0.0  0.0 105736  2168 ?        S    Mar03   0:00 sshd: 
bob at pts/0
bob       3042  0.0  0.0  66108  1576 pts/0    Ss+  Mar03   0:00 -bash
root      3080  0.3  0.0 143092  3648 ?        S    Mar03  18:48 smbd -D
root     29282  0.0  0.0 142416  3604 ?        S    08:45   0:00 smbd -D
root     29750  0.0  0.1 103492  3940 ?        Ss   22:26   0:00 sshd: 
root at pts/1
root     29752  0.0  0.0  66112  1616 pts/1    Ss   22:26   0:00 -bash
root     29795  0.0  0.0  65636   988 pts/1    R+   22:37   0:00 ps aux

Any thought on this would be great.

Thanks!

B-o-B