LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Too Many Processes (https://www.linuxquestions.org/questions/fedora-35/too-many-processes-568968/)

Peter_APIIT 07-13-2007 03:00 AM

Too Many Processes
 
Hello all expert Linux administrator, i have a noob question about process.

My computer has many processes running which shown by top.

Sometime, the total of processes can go to 400-420.


Therefore, this make my pc pretty slow.

If you need more infomartion, please let me know.


Thanks for your help.

Your help is greatly appreciated by me and others.

fatzeus 07-13-2007 05:10 AM

That's very strange...you should have around 100 process if you have a graphical enviroment and some services. Maybe post the output of:
Code:

ps aux

Peter_APIIT 07-14-2007 11:08 PM

I will do this later.

Peter_APIIT 07-18-2007 04:32 AM

This is all the process when issues ps aux.

What the difference ps -aux and ps aux ?


Quote:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 2140 600 ? Ss 11:33 0:00 init [5]
root 2 0.0 0.0 0 0 ? S 11:33 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN 11:33 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S 11:33 0:00 [watchdog/0]
root 5 0.0 0.0 0 0 ? S< 11:33 0:00 [events/0]
root 6 0.0 0.0 0 0 ? S< 11:33 0:00 [khelper]
root 7 0.0 0.0 0 0 ? S< 11:33 0:00 [kthread]
root 46 0.0 0.0 0 0 ? S< 11:33 0:00 [kblockd/0]
root 47 0.0 0.0 0 0 ? S< 11:33 0:00 [kacpid]
root 210 0.0 0.0 0 0 ? S< 11:33 0:00 [cqueue/0]
root 211 0.0 0.0 0 0 ? S< 11:33 0:00 [ksuspend_usbd]
root 214 0.0 0.0 0 0 ? S< 11:33 0:00 [khubd]
root 216 0.0 0.0 0 0 ? S< 11:33 0:00 [kseriod]
root 241 0.0 0.0 0 0 ? S< 11:33 0:01 [kswapd0]
root 242 0.0 0.0 0 0 ? S< 11:33 0:00 [aio/0]
root 384 0.0 0.0 0 0 ? S< 11:33 0:00 [kpsmoused]
root 411 0.0 0.0 0 0 ? S< 11:33 0:00 [ata/0]
root 412 0.0 0.0 0 0 ? S< 11:33 0:00 [ata_aux]
root 417 0.0 0.0 0 0 ? S< 11:33 0:01 [scsi_eh_0]
root 418 0.0 0.0 0 0 ? S< 11:33 0:00 [scsi_eh_1]
root 424 0.0 0.0 0 0 ? S< 11:33 0:02 [kjournald]
root 457 0.0 0.0 0 0 ? S< 11:33 0:00 [kauditd]
root 494 0.0 0.0 3140 452 ? S<s 11:33 0:01 /sbin/udevd -d
root 773 0.0 0.0 0 0 ? S< 11:33 0:00 [scsi_eh_2]
root 774 0.0 0.0 0 0 ? S< 11:33 0:00 [scsi_eh_3]
root 983 0.0 0.0 0 0 ? S< 11:33 0:00 [kedac]
root 993 0.0 0.0 0 0 ? S< 11:33 0:00 [scsi_eh_4]
root 994 0.0 0.0 0 0 ? S< 11:33 0:00 [scsi_eh_5]
root 1114 0.0 0.0 0 0 ? S< 11:33 0:00 [scsi_eh_6]
root 1115 0.0 0.0 0 0 ? S< 11:33 0:00 [scsi_eh_7]
root 1376 0.0 0.0 0 0 ? S< 11:33 0:00 [kmpathd/0]
root 1382 0.0 0.0 0 0 ? S< 11:33 0:00 [kmirrord]
root 1403 0.0 0.0 0 0 ? S< 11:33 0:00 [kjournald]
root 1530 0.0 0.0 0 0 ? S< 11:34 0:00 [kondemand/0]
root 1597 0.0 0.1 12172 600 ? S<sl 11:34 0:00 auditd
root 1599 0.0 0.1 11032 808 ? S<s 11:34 0:00 /sbin/audispd
root 1614 0.0 0.0 10716 364 ? Ss 11:34 0:00 /usr/sbin/restorecond
root 1625 0.0 0.1 1804 556 ? Ss 11:34 0:00 syslogd -m 0
root 1628 0.0 0.0 1740 380 ? Ss 11:34 0:00 klogd -x
root 1655 0.0 0.0 2236 444 ? Ss 11:34 0:00 mcstransd
root 1668 0.0 0.9 45212 4900 ? Ssl 11:34 0:01 /usr/bin/python -E /usr/sbin/setroubles
dbus 1680 0.0 0.2 13324 1160 ? Ssl 11:34 0:00 dbus-daemon --system
root 1700 0.0 0.2 6416 1136 ? Ssl 11:34 0:00 automount
root 1719 0.0 0.2 9988 1520 ? Ss 11:34 0:06 cupsd
root 1730 0.0 0.3 7568 1552 ? Ssl 11:34 0:00 console-kit-daemon
xfs 1875 0.0 1.1 27624 6068 ? Ss 11:34 0:00 xfs -droppriv -daemon
root 1893 0.0 0.5 51556 2660 ? Sl 11:34 0:00 /usr/bin/python /usr/bin/fail2ban-serve
root 1957 0.0 0.1 2056 584 ? Ss 11:34 0:00 /sbin/dhcdbd --system
root 1968 0.0 1.1 22892 5972 ? SN 11:34 0:00 /usr/bin/python /usr/sbin/yum-updatesd
68 1979 0.0 0.5 4980 2600 ? Ss 11:34 0:00 hald
root 1980 0.0 0.1 3084 996 ? S 11:34 0:00 hald-runner
68 1993 0.0 0.1 2076 588 ? S 11:34 0:00 hald-addon-keyboard: listening on /dev/
68 1994 0.0 0.1 2072 564 ? S 11:34 0:00 hald-addon-keyboard: listening on /dev/
68 1995 0.0 0.1 2076 564 ? S 11:34 0:00 hald-addon-keyboard: listening on /dev/
root 2030 0.0 0.1 3148 788 ? S 11:34 0:00 /usr/libexec/hald-addon-cpufreq
68 2031 0.0 0.1 2076 552 ? S 11:34 0:00 hald-addon-acpi: listening on acpi kern
root 2042 0.0 0.1 3136 884 ? S 11:34 0:01 hald-addon-storage: polling /dev/scd0 (
root 2054 0.0 0.2 14684 1468 ? Ssl 11:34 0:00 NetworkManager --pid-file=/var/run/Netw
root 2081 0.0 0.1 3248 832 ? S 11:34 0:00 /usr/sbin/smartd -q never
root 2086 0.0 0.0 1728 396 tty1 Ss+ 11:34 0:00 /sbin/mingetty tty1
root 2087 0.0 0.0 1728 396 tty2 Ss+ 11:34 0:00 /sbin/mingetty tty2
root 2088 0.0 0.0 1724 396 tty3 Ss+ 11:34 0:00 /sbin/mingetty tty3
root 2089 0.0 0.0 1728 396 tty4 Ss+ 11:34 0:00 /sbin/mingetty tty4
root 2090 0.0 0.0 1724 396 tty5 Ss+ 11:34 0:00 /sbin/mingetty tty5
root 2091 0.0 0.0 1724 396 tty6 Ss+ 11:34 0:00 /sbin/mingetty tty6
root 2092 0.0 0.4 16076 2424 ? Ss 11:34 0:00 /usr/sbin/gdm-binary -nodaemon
root 2094 0.0 0.0 2360 508 ? S 11:34 0:00 /sbin/dhclient -1 -lf /var/lib/dhclient
root 2274 0.0 0.3 16312 1928 ? S 11:34 0:00 /usr/sbin/gdm-binary -nodaemon
root 2279 4.1 6.9 47204 35740 tty7 Rs+ 11:34 4:44 /usr/bin/Xorg :0 -br -audit 0 -auth /va
500 2296 0.0 1.1 33116 6128 ? Ssl 11:34 0:00 /usr/bin/gnome-session
500 2463 0.0 0.0 0 0 ? Z 11:34 0:00 [bastille-tmpdir] <defunct>
500 2519 0.0 0.0 4492 268 ? Ss 11:34 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch
500 2522 0.0 0.0 2836 480 ? S 11:34 0:00 /usr/bin/dbus-launch --exit-with-sessio
500 2523 0.0 0.2 13192 1100 ? Ssl 11:34 0:00 /bin/dbus-daemon --fork --print-pid 4 -
500 2535 0.0 0.6 7720 3132 ? S 11:34 0:00 /usr/libexec/gconfd-2 6
500 2538 0.0 0.1 2776 660 ? S 11:34 0:00 /usr/bin/gnome-keyring-daemon
500 2540 0.0 1.4 40068 7248 ? Sl 11:34 0:02 /usr/libexec/gnome-settings-daemon
500 2543 0.1 1.5 17260 8036 ? S 11:34 0:08 metacity --sm-client-id=default1
500 2546 0.0 5.4 61872 28188 ? S 11:34 0:05 gnome-panel --sm-client-id default2
500 2550 0.1 7.5 128508 38580 ? Sl 11:34 0:07 nautilus --no-default-window --sm-clien
500 2553 0.0 0.5 38688 2840 ? Ssl 11:34 0:00 /usr/libexec/bonobo-activation-server -
500 2554 0.0 0.7 22560 4088 ? Ss 11:34 0:00 gnome-volume-manager --sm-client-id def
500 2556 0.0 0.8 14436 4524 ? S 11:34 0:00 bluetooth-applet
500 2557 0.5 4.1 50812 21128 ? Sl 11:34 0:37 beagled /usr/lib/beagle/BeagleDaemon.ex
500 2564 0.0 0.6 11396 3160 ? S 11:34 0:00 /usr/libexec/gnome-vfs-daemon
500 2569 0.0 5.9 84900 30548 ? S 11:34 0:00 nm-applet --sm-disable
500 2572 0.0 1.5 24184 8044 ? S 11:34 0:00 /usr/bin/python -tt /usr/bin/puplet
500 2577 0.0 1.7 27024 9128 ? S 11:34 0:00 python /usr/share/system-config-printer
500 2578 0.0 0.5 13100 2716 ? S 11:34 0:00 pam-panel-icon --sm-client-id default0
500 2579 0.0 2.9 53072 15356 ? Ss 11:34 0:00 gnome-power-manager
root 2580 0.0 0.1 1916 564 ? S 11:34 0:00 /sbin/pam_timestamp_check -d root
500 2582 0.0 2.4 42164 12392 ? S 11:34 0:01 /usr/bin/python -E /usr/bin/sealert -s
500 2592 0.0 0.2 2624 1132 ? S 11:34 0:00 /usr/libexec/gam_server
500 2599 0.1 4.3 56668 22348 ? S 11:34 0:09 /usr/libexec/wnck-applet --oaf-activate
500 2601 0.0 3.7 83864 19160 ? S 11:34 0:00 /usr/libexec/trashapplet --oaf-activate
500 2609 0.0 0.1 2420 776 ? S 11:34 0:00 /usr/libexec/mapping-daemon
500 2620 0.0 1.4 23004 7364 ? S 11:34 0:00 /usr/libexec/notification-area-applet -
500 2623 0.0 3.8 54932 19836 ? S 11:34 0:00 /usr/libexec/fast-user-switch-applet --
500 2626 0.0 1.7 29080 9060 ? S 11:34 0:00 /usr/libexec/clock-applet --oaf-activat
500 2629 0.0 4.3 57304 22220 ? S 11:34 0:00 /usr/libexec/mixer_applet2 --oaf-activa
500 2634 0.2 0.3 16244 1800 ? Ss 11:34 0:13 gnome-screensaver
500 10189 0.1 4.6 111140 23924 ? Rl 11:35 0:07 gnome-terminal
500 11315 0.0 0.1 2424 644 ? S 11:35 0:00 gnome-pty-helper
500 12468 0.0 1.4 24920 7672 ? S 12:17 0:01 /usr/bin/artsd -F 10 -S 4096 -s 60 -m a
500 12540 0.0 0.2 4820 1500 pts/1 Ss 11:36 0:00 bash
500 12582 0.7 8.9 92076 45884 ? Sl 12:18 0:29 kdevelop --profile CandCppIDE
500 12585 0.0 1.0 28580 5340 ? Ss 12:18 0:00 kdeinit Running...
500 12588 0.0 0.5 17460 3020 ? S 12:18 0:00 dcopserver --nosid --suicide
500 12590 0.0 1.2 30220 6468 ? S 12:18 0:00 klauncher [kdeinit]
500 12592 0.0 1.5 30472 7924 ? S 12:18 0:00 kded
500 12604 0.0 0.3 4816 1588 pts/0 Ss+ 12:19 0:00 /bin/bash
500 12718 1.9 4.4 59688 23020 ? SNl 11:36 2:14 beagled-helper /usr/lib/beagle/IndexHel
500 12777 0.0 0.3 4824 1596 pts/2 Ss 12:19 0:00 bash
500 12857 3.2 21.8 293924 112196 ? Sl 11:36 3:40 /usr/lib/firefox-2.0.0.4/firefox-bin
root 12934 0.0 0.2 4928 1260 pts/2 S 12:19 0:00 su -
root 12937 0.0 0.3 4692 1572 pts/2 S 12:19 0:00 -bash
500 15931 0.0 2.3 30652 12108 ? S 12:41 0:00 kio_uiserver
500 16087 0.0 2.1 37468 11016 ? S 12:55 0:00 knotify [kdeinit]
root 19030 0.0 0.0 0 0 ? S 12:03 0:00 [pdflush]
root 19371 0.0 0.0 0 0 ? S< 12:10 0:00 [scsi_eh_9]
root 19372 0.0 0.0 0 0 ? S< 12:10 0:00 [usb-storage]
500 20296 0.0 1.0 28652 5316 ? S 13:01 0:00 kio_file [kdeinit] file /tmp/ksocket-ni
root 20630 0.4 2.3 15644 12104 pts/1 S+ 13:24 0:01 nessusd: waiting for incoming connectio
root 20665 0.0 0.1 4512 940 pts/2 R+ 13:29 0:00 ps aux
root 24355 0.0 0.1 4928 1016 pts/1 S 11:44 0:00 su -
root 25780 0.0 0.1 3136 964 ? S 12:10 0:00 hald-addon-storage: polling /dev/sdc (e
root 26400 0.0 0.0 0 0 ? S 12:04 0:00 [pdflush]
root 26819 0.0 0.3 4816 1580 pts/1 S 11:44 0:00 -bash
500 29863 0.0 3.6 53748 18784 ? S 11:49 0:01 /usr/libexec/notification-daemon



I think i have many cron job which consists of aide, tripwire, afick, bastille and rootkithunter.

How to find all these cron job ?

I also look at crontab but not found.

Thanks for your help.

Your help is greatly appreciated by me and others.

Peter_APIIT 07-18-2007 04:58 AM

I found out the cron.daily which have many process in one time.

fatzeus 07-18-2007 05:28 AM

In the list you have posted there are about 100 processes not 500...
Maybe run the command when you have 500 processes to see if there are some problems..

Peter_APIIT 07-19-2007 10:35 PM

I will do that this evening.

ciotog 07-19-2007 10:40 PM

It would appear that you have Gnome and KDE running at the same time. I believe there is a distribution that does this (KDE is under virtual terminal 7, Gnome under 8 or vice versa), so try switching to the other terminal using ctrl-alt-F8 and see what happens.

Peter_APIIT 07-20-2007 03:13 AM

I have typed Ctrl+ALt+F7 but this is a gnome session(current session).

The F8 is a blank screen with a cursor blinking at the top.

I have disable(Comment out) the /etc/crontab but still will give me 400 process after 3pm.

I cannot post the the result ps aux because is more than 2500 chracters. How to submit the text file ?

I can find any button to attach file.

Thanks.

ciotog 07-20-2007 07:05 AM

You will have to host the text on another site then and link to it here. I've come across several such services, but can't find one at the moment.

I think I been mistaken about KDE - although you have a number of kde programs running, they all seem to have spawned from running kdevelop.

I see you have beagle running - this is an indexing program that may be causing some of your issues.

germany2006 07-20-2007 11:14 PM

This is a rather complex issue, I am looking forward to your answer, my PC always such a problem occur.

syg00 07-20-2007 11:54 PM

The OP seems to imply cron is the problem - try this to see if you can spot anything obvious:
"ps -e --sorted=command | less"
Quote:

What the difference ps -aux and ps aux ?
Have a look at the man page - this is mentioned on the first page.

Peter_APIIT 07-21-2007 03:13 AM

I have try the ps -e --sorted=command | less command but return unknown GNU options.

I have disable the anacron in any run level and enabled the cron in runlevel 5 only.

I will check the result.


All times are GMT -5. The time now is 01:42 PM.