03-26-2007, 10:40 PM
I currently have CentOS 4 on my dual xeon's and have about 89 total processes running. I want to disable all services/processes That I don't need in order to have my source servers running. This is the output of ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 2052 552 ? S Mar24 0:01 init [3]
root 2 0.0 0.0 0 0 ? S Mar24 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN Mar24 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Mar24 0:00 [migration/1]
root 5 0.0 0.0 0 0 ? SN Mar24 0:00 [ksoftirqd/1]
root 6 0.0 0.0 0 0 ? S Mar24 0:01 [migration/2]
root 7 0.0 0.0 0 0 ? SN Mar24 0:00 [ksoftirqd/2]
root 8 0.0 0.0 0 0 ? S Mar24 0:01 [migration/3]
root 9 0.0 0.0 0 0 ? SN Mar24 0:00 [ksoftirqd/3]
root 10 0.0 0.0 0 0 ? S< Mar24 0:00 [events/0]
root 11 0.0 0.0 0 0 ? S< Mar24 0:00 [events/1]
root 12 0.0 0.0 0 0 ? S< Mar24 0:00 [events/2]
root 13 0.0 0.0 0 0 ? S< Mar24 0:00 [events/3]
root 14 0.0 0.0 0 0 ? S< Mar24 0:00 [khelper]
root 15 0.0 0.0 0 0 ? S< Mar24 0:00 [kacpid]
root 50 0.0 0.0 0 0 ? S< Mar24 0:00 [kblockd/0]
root 51 0.0 0.0 0 0 ? S< Mar24 0:00 [kblockd/1]
root 52 0.0 0.0 0 0 ? S< Mar24 0:00 [kblockd/2]
root 53 0.0 0.0 0 0 ? S< Mar24 0:00 [kblockd/3]
root 71 0.0 0.0 0 0 ? S Mar24 0:00 [pdflush]
root 72 0.0 0.0 0 0 ? S Mar24 0:01 [pdflush]
root 74 0.0 0.0 0 0 ? S< Mar24 0:00 [aio/0]
root 75 0.0 0.0 0 0 ? S< Mar24 0:00 [aio/1]
root 76 0.0 0.0 0 0 ? S< Mar24 0:00 [aio/2]
root 77 0.0 0.0 0 0 ? S< Mar24 0:00 [aio/3]
root 54 0.0 0.0 0 0 ? S Mar24 0:00 [khubd]
root 73 0.0 0.0 0 0 ? S Mar24 0:00 [kswapd0]
root 221 0.0 0.0 0 0 ? S Mar24 0:00 [kseriod]
root 349 0.0 0.0 0 0 ? S Mar24 0:00 [scsi_eh_0]
root 380 0.0 0.0 0 0 ? S< Mar24 0:00 [kmirrord]
root 396 0.0 0.0 0 0 ? S Mar24 0:03 [kjournald]
root 1635 0.0 0.0 2980 460 ? S<s Mar24 0:00 udevd
root 1940 0.0 0.0 0 0 ? S< Mar24 0:00 [kauditd]
root 2031 0.0 0.0 0 0 ? S Mar24 0:00 [kjournald]
root 2773 0.0 0.0 2832 672 ? Ss Mar24 0:00 syslogd -m 0
root 2778 0.0 0.0 3308 384 ? Ss Mar24 0:00 klogd -x
root 2788 0.0 0.0 2724 300 ? Ss Mar24 0:00 irqbalance
rpc 2806 0.0 0.0 3000 548 ? Ss Mar24 0:00 portmap
rpcuser 2825 0.0 0.0 2756 808 ? Ss Mar24 0:00 rpc.statd
root 2855 0.0 0.0 4232 344 ? Ss Mar24 0:00 rpc.idmapd
root 2930 0.0 0.0 2632 440 ? Ss Mar24 0:00 /usr/sbin/acpid
root 3000 0.0 0.0 5888 1132 ? Ss Mar24 0:00 /usr/sbin/sshd
root 3027 0.0 0.0 3120 756 ? Ss Mar24 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 3064 0.0 0.0 2312 352 ? Ss Mar24 0:00 gpm -m /dev/input/mice -t imps2
root 3074 0.0 0.2 15412 5632 ? Ss Mar24 0:00 /usr/sbin/httpd
root 3083 0.0 0.0 6452 992 ? Ss Mar24 0:00 crond
xfs 3113 0.0 0.0 3124 1320 ? Ss Mar24 0:00 xfs -droppriv -daemon
root 3130 0.0 0.0 3020 420 ? Ss Mar24 0:00 /usr/sbin/atd
dbus 3139 0.0 0.0 13576 960 ? Ssl Mar24 0:00 dbus-daemon-1 --system
root 3149 0.0 0.2 8076 5472 ? Ss Mar24 0:23 hald
root 3156 0.0 0.0 3348 412 tty1 Ss+ Mar24 0:00 /sbin/mingetty tty1
root 3157 0.0 0.0 1796 412 tty2 Ss+ Mar24 0:00 /sbin/mingetty tty2
root 3158 0.0 0.0 1560 408 tty3 Ss+ Mar24 0:00 /sbin/mingetty tty3
root 3159 0.0 0.0 1784 408 tty4 Ss+ Mar24 0:00 /sbin/mingetty tty4
root 3160 0.0 0.0 1668 412 tty5 Ss+ Mar24 0:00 /sbin/mingetty tty5
root 3161 0.0 0.0 1668 412 tty6 Ss+ Mar24 0:00 /sbin/mingetty tty6
iha81 3832 0.0 0.0 5528 1172 ? Ss Mar24 0:16 SCREEN -A -m -d -S cssp ./srcds_run -binary ./srcds_i486 -console -ve
iha81 3834 0.0 0.0 5296 1108 pts/1 Ss+ Mar24 0:00 /bin/sh ./srcds_run -binary ./srcds_i486 -console -verify_all -game c
iha81 3835 40.1 7.9 249384 164852 pts/1 Rl+ Mar24 1247:18 ./srcds_i486 -binary ./srcds_i486 -console -verify_all -game cstrike
root 4523 0.0 0.0 4392 1100 ? S Mar24 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/sqldata --user=mysql
mysql 4554 0.0 1.1 126152 24560 ? Sl Mar24 0:54 /usr/libexec/mysqld --basedir=/usr --datadir=/sqldata --user=mysql --
root 5726 0.0 0.0 8084 2056 ? Ss Mar25 0:00 cupsd
apache 5754 0.0 0.5 21032 10612 ? S Mar25 0:01 /usr/sbin/httpd
apache 5755 0.0 0.5 21940 11504 ? S Mar25 0:00 /usr/sbin/httpd
apache 5756 0.0 0.4 20772 10372 ? S Mar25 0:01 /usr/sbin/httpd
apache 5757 0.0 0.4 20604 10152 ? S Mar25 0:00 /usr/sbin/httpd
apache 5758 0.0 0.3 18856 7884 ? S Mar25 0:00 /usr/sbin/httpd
apache 5760 0.0 0.4 19552 8700 ? S Mar25 0:00 /usr/sbin/httpd
apache 5761 0.0 0.5 21024 10568 ? S Mar25 0:00 /usr/sbin/httpd
apache 5762 0.0 0.5 21116 10644 ? S Mar25 0:00 /usr/sbin/httpd
iha81 29062 0.0 0.0 5772 1104 ? Ss Mar25 0:02 SCREEN -A -m -d -S ggcss ./srcds_run -binary ./srcds_i486 -console -v
iha81 29063 0.0 0.0 6160 1104 pts/4 Ss+ Mar25 0:00 /bin/sh ./srcds_run -binary ./srcds_i486 -console -verify_all -game c
iha81 29064 9.3 5.1 191680 107616 pts/4 Sl+ Mar25 155:11 ./srcds_i486 -binary ./srcds_i486 -console -verify_all -game cstrike
apache 29109 0.0 0.5 21036 10560 ? S Mar25 0:00 /usr/sbin/httpd
apache 29110 0.0 0.4 20612 10144 ? S Mar25 0:00 /usr/sbin/httpd
apache 29111 0.0 0.5 21904 11444 ? S Mar25 0:00 /usr/sbin/httpd
apache 29112 0.0 0.4 20596 10152 ? S Mar25 0:00 /usr/sbin/httpd
apache 29113 0.0 0.3 18328 7460 ? S Mar25 0:00 /usr/sbin/httpd
apache 29114 0.0 0.3 18012 7140 ? S Mar25 0:00 /usr/sbin/httpd
apache 29115 0.0 0.4 20760 10336 ? S Mar25 0:00 /usr/sbin/httpd
iha81 29632 0.0 0.0 4832 1160 ? Ss Mar25 0:00 SCREEN -A -m -d -S cssm ./srcds_run -console -binary ./srcds_i486 -ve
iha81 29634 0.0 0.0 4536 1104 pts/3 Ss+ Mar25 0:00 /bin/sh ./srcds_run -console -binary ./srcds_i486 -verify_all -game c
iha81 29636 11.8 11.5 323596 239840 pts/3 Rl+ Mar25 122:33 ./srcds_i486 -console -binary ./srcds_i486 -verify_all -game cstrike
root 30703 0.0 0.1 7024 2240 ? Ss 12:48 0:00 sshd: iha81 [priv]
iha81 30705 0.0 0.0 7488 1932 ? S 12:48 0:01 sshd: iha81@pts/0
iha81 30706 0.0 0.0 4824 1500 pts/0 Ss 12:48 0:00 -bash
root 30883 0.0 0.0 6296 1208 pts/0 S 15:14 0:00 su -
root 30884 0.0 0.0 4520 1472 pts/0 S 15:14 0:00 -bash
root 31074 0.0 0.0 3640 788 pts/0 R+ 15:33 0:00 ps aux
I would like to disable ALL services i don't need. Any help would be appreciated
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 2052 552 ? S Mar24 0:01 init [3]
root 2 0.0 0.0 0 0 ? S Mar24 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN Mar24 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Mar24 0:00 [migration/1]
root 5 0.0 0.0 0 0 ? SN Mar24 0:00 [ksoftirqd/1]
root 6 0.0 0.0 0 0 ? S Mar24 0:01 [migration/2]
root 7 0.0 0.0 0 0 ? SN Mar24 0:00 [ksoftirqd/2]
root 8 0.0 0.0 0 0 ? S Mar24 0:01 [migration/3]
root 9 0.0 0.0 0 0 ? SN Mar24 0:00 [ksoftirqd/3]
root 10 0.0 0.0 0 0 ? S< Mar24 0:00 [events/0]
root 11 0.0 0.0 0 0 ? S< Mar24 0:00 [events/1]
root 12 0.0 0.0 0 0 ? S< Mar24 0:00 [events/2]
root 13 0.0 0.0 0 0 ? S< Mar24 0:00 [events/3]
root 14 0.0 0.0 0 0 ? S< Mar24 0:00 [khelper]
root 15 0.0 0.0 0 0 ? S< Mar24 0:00 [kacpid]
root 50 0.0 0.0 0 0 ? S< Mar24 0:00 [kblockd/0]
root 51 0.0 0.0 0 0 ? S< Mar24 0:00 [kblockd/1]
root 52 0.0 0.0 0 0 ? S< Mar24 0:00 [kblockd/2]
root 53 0.0 0.0 0 0 ? S< Mar24 0:00 [kblockd/3]
root 71 0.0 0.0 0 0 ? S Mar24 0:00 [pdflush]
root 72 0.0 0.0 0 0 ? S Mar24 0:01 [pdflush]
root 74 0.0 0.0 0 0 ? S< Mar24 0:00 [aio/0]
root 75 0.0 0.0 0 0 ? S< Mar24 0:00 [aio/1]
root 76 0.0 0.0 0 0 ? S< Mar24 0:00 [aio/2]
root 77 0.0 0.0 0 0 ? S< Mar24 0:00 [aio/3]
root 54 0.0 0.0 0 0 ? S Mar24 0:00 [khubd]
root 73 0.0 0.0 0 0 ? S Mar24 0:00 [kswapd0]
root 221 0.0 0.0 0 0 ? S Mar24 0:00 [kseriod]
root 349 0.0 0.0 0 0 ? S Mar24 0:00 [scsi_eh_0]
root 380 0.0 0.0 0 0 ? S< Mar24 0:00 [kmirrord]
root 396 0.0 0.0 0 0 ? S Mar24 0:03 [kjournald]
root 1635 0.0 0.0 2980 460 ? S<s Mar24 0:00 udevd
root 1940 0.0 0.0 0 0 ? S< Mar24 0:00 [kauditd]
root 2031 0.0 0.0 0 0 ? S Mar24 0:00 [kjournald]
root 2773 0.0 0.0 2832 672 ? Ss Mar24 0:00 syslogd -m 0
root 2778 0.0 0.0 3308 384 ? Ss Mar24 0:00 klogd -x
root 2788 0.0 0.0 2724 300 ? Ss Mar24 0:00 irqbalance
rpc 2806 0.0 0.0 3000 548 ? Ss Mar24 0:00 portmap
rpcuser 2825 0.0 0.0 2756 808 ? Ss Mar24 0:00 rpc.statd
root 2855 0.0 0.0 4232 344 ? Ss Mar24 0:00 rpc.idmapd
root 2930 0.0 0.0 2632 440 ? Ss Mar24 0:00 /usr/sbin/acpid
root 3000 0.0 0.0 5888 1132 ? Ss Mar24 0:00 /usr/sbin/sshd
root 3027 0.0 0.0 3120 756 ? Ss Mar24 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 3064 0.0 0.0 2312 352 ? Ss Mar24 0:00 gpm -m /dev/input/mice -t imps2
root 3074 0.0 0.2 15412 5632 ? Ss Mar24 0:00 /usr/sbin/httpd
root 3083 0.0 0.0 6452 992 ? Ss Mar24 0:00 crond
xfs 3113 0.0 0.0 3124 1320 ? Ss Mar24 0:00 xfs -droppriv -daemon
root 3130 0.0 0.0 3020 420 ? Ss Mar24 0:00 /usr/sbin/atd
dbus 3139 0.0 0.0 13576 960 ? Ssl Mar24 0:00 dbus-daemon-1 --system
root 3149 0.0 0.2 8076 5472 ? Ss Mar24 0:23 hald
root 3156 0.0 0.0 3348 412 tty1 Ss+ Mar24 0:00 /sbin/mingetty tty1
root 3157 0.0 0.0 1796 412 tty2 Ss+ Mar24 0:00 /sbin/mingetty tty2
root 3158 0.0 0.0 1560 408 tty3 Ss+ Mar24 0:00 /sbin/mingetty tty3
root 3159 0.0 0.0 1784 408 tty4 Ss+ Mar24 0:00 /sbin/mingetty tty4
root 3160 0.0 0.0 1668 412 tty5 Ss+ Mar24 0:00 /sbin/mingetty tty5
root 3161 0.0 0.0 1668 412 tty6 Ss+ Mar24 0:00 /sbin/mingetty tty6
iha81 3832 0.0 0.0 5528 1172 ? Ss Mar24 0:16 SCREEN -A -m -d -S cssp ./srcds_run -binary ./srcds_i486 -console -ve
iha81 3834 0.0 0.0 5296 1108 pts/1 Ss+ Mar24 0:00 /bin/sh ./srcds_run -binary ./srcds_i486 -console -verify_all -game c
iha81 3835 40.1 7.9 249384 164852 pts/1 Rl+ Mar24 1247:18 ./srcds_i486 -binary ./srcds_i486 -console -verify_all -game cstrike
root 4523 0.0 0.0 4392 1100 ? S Mar24 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/sqldata --user=mysql
mysql 4554 0.0 1.1 126152 24560 ? Sl Mar24 0:54 /usr/libexec/mysqld --basedir=/usr --datadir=/sqldata --user=mysql --
root 5726 0.0 0.0 8084 2056 ? Ss Mar25 0:00 cupsd
apache 5754 0.0 0.5 21032 10612 ? S Mar25 0:01 /usr/sbin/httpd
apache 5755 0.0 0.5 21940 11504 ? S Mar25 0:00 /usr/sbin/httpd
apache 5756 0.0 0.4 20772 10372 ? S Mar25 0:01 /usr/sbin/httpd
apache 5757 0.0 0.4 20604 10152 ? S Mar25 0:00 /usr/sbin/httpd
apache 5758 0.0 0.3 18856 7884 ? S Mar25 0:00 /usr/sbin/httpd
apache 5760 0.0 0.4 19552 8700 ? S Mar25 0:00 /usr/sbin/httpd
apache 5761 0.0 0.5 21024 10568 ? S Mar25 0:00 /usr/sbin/httpd
apache 5762 0.0 0.5 21116 10644 ? S Mar25 0:00 /usr/sbin/httpd
iha81 29062 0.0 0.0 5772 1104 ? Ss Mar25 0:02 SCREEN -A -m -d -S ggcss ./srcds_run -binary ./srcds_i486 -console -v
iha81 29063 0.0 0.0 6160 1104 pts/4 Ss+ Mar25 0:00 /bin/sh ./srcds_run -binary ./srcds_i486 -console -verify_all -game c
iha81 29064 9.3 5.1 191680 107616 pts/4 Sl+ Mar25 155:11 ./srcds_i486 -binary ./srcds_i486 -console -verify_all -game cstrike
apache 29109 0.0 0.5 21036 10560 ? S Mar25 0:00 /usr/sbin/httpd
apache 29110 0.0 0.4 20612 10144 ? S Mar25 0:00 /usr/sbin/httpd
apache 29111 0.0 0.5 21904 11444 ? S Mar25 0:00 /usr/sbin/httpd
apache 29112 0.0 0.4 20596 10152 ? S Mar25 0:00 /usr/sbin/httpd
apache 29113 0.0 0.3 18328 7460 ? S Mar25 0:00 /usr/sbin/httpd
apache 29114 0.0 0.3 18012 7140 ? S Mar25 0:00 /usr/sbin/httpd
apache 29115 0.0 0.4 20760 10336 ? S Mar25 0:00 /usr/sbin/httpd
iha81 29632 0.0 0.0 4832 1160 ? Ss Mar25 0:00 SCREEN -A -m -d -S cssm ./srcds_run -console -binary ./srcds_i486 -ve
iha81 29634 0.0 0.0 4536 1104 pts/3 Ss+ Mar25 0:00 /bin/sh ./srcds_run -console -binary ./srcds_i486 -verify_all -game c
iha81 29636 11.8 11.5 323596 239840 pts/3 Rl+ Mar25 122:33 ./srcds_i486 -console -binary ./srcds_i486 -verify_all -game cstrike
root 30703 0.0 0.1 7024 2240 ? Ss 12:48 0:00 sshd: iha81 [priv]
iha81 30705 0.0 0.0 7488 1932 ? S 12:48 0:01 sshd: iha81@pts/0
iha81 30706 0.0 0.0 4824 1500 pts/0 Ss 12:48 0:00 -bash
root 30883 0.0 0.0 6296 1208 pts/0 S 15:14 0:00 su -
root 30884 0.0 0.0 4520 1472 pts/0 S 15:14 0:00 -bash
root 31074 0.0 0.0 3640 788 pts/0 R+ 15:33 0:00 ps aux
I would like to disable ALL services i don't need. Any help would be appreciated