LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2004, 09:40 AM   #1
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.1 and Slackware Arm
Posts: 478

Rep: Reputation: 41
help me analyze the output of ps -aux


greetings

I am quite sure that my comp. is running things I do not use.

My fault for installing everything to play around/learn but I would like now to stop/remove the extra stuff I don't need.

I have quite a well specced comp. , dial up connection via external modem running FC1 used for surfing, word prcessing, listening to music and watching movies via Xine

I use Gnome for my GUI BTW

Here is what ps -aux says

Code:
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  2464  416 ?        S    Mar19   0:04 init [5]
root         2  0.0  0.0     0    0 ?        SW   Mar19   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SW   Mar19   0:00 [kapmd]
root         4  0.0  0.0     0    0 ?        SWN  Mar19   0:00 [ksoftirqd/0]
root         6  0.0  0.0     0    0 ?        SW   Mar19   0:00 [bdflush]
root         5  0.0  0.0     0    0 ?        SW   Mar19   0:03 [kswapd]
root         7  0.0  0.0     0    0 ?        SW   Mar19   0:00 [kupdated]
root         8  0.0  0.0     0    0 ?        SW   Mar19   0:00 [mdrecoveryd]
root        12  0.0  0.0     0    0 ?        SW   Mar19   0:01 [kjournald]
root        67  0.0  0.0     0    0 ?        SW   Mar19   0:00 [khubd]
root      1786  0.0  0.0     0    0 ?        SW   Mar19   0:00 [kjournald]
root      3036  0.0  0.0  2504  564 ?        S    Mar19   0:00 syslogd -m 0
root      3040  0.0  0.0  1984  360 ?        S    Mar19   0:00 klogd -x
rpc       3058  0.0  0.0  1796  532 ?        S    Mar19   0:00 portmap
rpcuser   3077  0.0  0.0  3080  592 ?        S    Mar19   0:00 rpc.statd
root      3128  0.0  0.0  2216  364 ?        S    Mar19   0:00 /usr/sbin/apmd -p
root      3166  0.0  0.1  5024  984 ?        S    Mar19   0:00 /usr/sbin/sshd
root      3180  0.0  0.1  2340  792 ?        S    Mar19   0:00 xinetd -stayalive
root      3206  0.0  0.2  7012 1808 ?        S    Mar19   0:00 sendmail: accepti
smmsp     3215  0.0  0.2  7156 1800 ?        S    Mar19   0:00 sendmail: Queue r
root      3225  0.0  0.0  1812  320 ?        S    Mar19   0:00 gpm -m /dev/psaux
root      3234  0.0  0.0  1792  576 ?        S    Mar19   0:00 crond
xfs       3313  0.0  1.7 19824 13696 ?       S    Mar19   3:16 xfs -droppriv -da
daemon    3330  0.0  0.0  2636  544 ?        S    Mar19   0:00 /usr/sbin/atd
dbus      3339  0.0  0.1  2500  828 ?        S    Mar19   0:00 dbus-daemon-1 --s
root      3349  0.0  0.0  4648  464 ?        S    Mar19   0:16 rhnsd --interval
root      3362  0.0  0.0  1968  284 tty2     S    Mar19   0:00 /sbin/mingetty tt
root      3363  0.0  0.0  2272  284 tty3     S    Mar19   0:00 /sbin/mingetty tt
root      3364  0.0  0.0  2512  284 tty4     S    Mar19   0:00 /sbin/mingetty tt
root      3365  0.0  0.0  2376  284 tty5     S    Mar19   0:00 /sbin/mingetty tt
root      3366  0.0  0.0  2412  284 tty6     S    Mar19   0:00 /sbin/mingetty tt
root      3367  0.0  0.2 10732 1676 ?        S    Mar19   0:00 /usr/bin/gdm-bina
root      3422  0.0  0.3 11540 2728 ?        S    Mar19   0:00 /usr/bin/gdm-bina
root      3423  2.1  3.5 105196 27456 ?      SL   Mar19 255:12 /usr/X11R6/bin/X
root      3881  0.0  0.0  2024  284 tty1     S    Mar19   0:00 /sbin/mingetty tt
root     15934  0.0  0.2  8936 1840 ?        S    Mar21   0:00 cupsd
mark      8417  0.0  1.1 20136 8712 ?        S    Mar22   0:02 gnome-session
mark      8470  0.0  0.0  4800  560 ?        S    Mar22   0:00 /usr/bin/ssh-agen
mark      8472  0.0  2.4 24208 19004 ?       S    Mar22   0:02 /usr/libexec/gcon
mark      8477  0.0  0.2  5308 2172 ?        S    Mar22   0:00 /usr/bin/esd -ter
mark      8479  0.0  0.3  7856 2540 ?        S    Mar22   0:00 /usr/libexec/bono
mark      8481  0.0  0.9 13288 6984 ?        S    Mar22   0:13 metacity --sm-sav
mark      8483  0.0  0.9 18784 7136 ?        S    Mar22   0:02 gnome-settings-da
mark      8488  0.0  0.1  3788 1408 ?        S    Mar22   0:00 fam
mark      8496  0.0  0.2  5932 2140 ?        S    Mar22   0:02 xscreensaver -nos
mark      8508  0.3  0.7 17084 5484 ?        S    Mar22  23:52 magicdev --sm-con
mark      8510  0.0  3.0 34520 23452 ?       S    Mar22   0:12 nautilus --sm-con
mark      8512  0.0  1.7 23420 13860 ?       S    Mar22   0:14 gnome-panel --sm-
mark      8514  0.0  0.8 17844 6624 ?        S    Mar22   0:02 eggcups --sm-conf
mark      8516  0.0  0.5 12412 4168 ?        S    Mar22   0:01 /usr/bin/pam-pane
root      8519  0.0  0.0  2616  504 ?        S    Mar22   0:00 /sbin/pam_timesta
mark      8536  0.0  0.0  2676  664 ?        S    Mar22   0:00 /usr/libexec/mapp
mark      8538  0.0  1.2 20212 9716 ?        S    Mar22   0:24 /usr/libexec/wnck
mark      8540  0.0  0.8 18060 6312 ?        S    Mar22   0:01 /usr/libexec/noti
mark      8542  0.0  1.0 17940 8112 ?        S    Mar22   0:03 /usr/libexec/mult
mark      8544  0.0  0.9 18080 7716 ?        S    Mar22   0:02 /usr/libexec/mode
mark      8547  0.0  0.9 18512 7060 ?        S    Mar22   0:01 /usr/libexec/mixe
mark     16283  0.0  1.7 32792 13492 ?       S    19:27   0:01 gnome-terminal
mark     16284  0.0  0.0  2756  604 ?        S    19:27   0:00 gnome-pty-helper
mark     16285  0.0  0.1  4792 1368 pts/0    S    19:27   0:00 bash
mark     16499  mark     16505  2.9  7.8 133156 61000 ?      S    19:56   3:43 /usr/local/mozill
root     17059  0.0  1.3 26100 10264 ?       S    21:46   0:00 kdeinit: Running.
root     17062  0.0  1.3 28276 10668 ?       S    21:46   0:00 kdeinit: dcopserv
root     17065  0.0  1.4 28336 11068 ?       S    21:46   0:00 kdeinit: klaunche
root     17067  0.0  1.7 30768 13916 ?       S    21:46   0:00 kdeinit: kded
mark     17105  0.0  0.4 11856 3308 ?        S    21:47   0:00 kppp --icon=/usr/
root     17106  0.0  0.1  6036 1020 ?        S    21:47   0:00 /usr/sbin/userhel
root     17109  0.0  1.9 30632 15400 ?       S    21:47   0:00 kppp --icon=/usr/
root     17110  0.0  1.2 26424 9708 ?        S    21:47   0:00 kppp --icon=/usr/
root     17113  0.0  0.1  3544  896 ttyS0    S    21:48   0:00 pppd 38400 -detac
root     17185  0.0  0.0  2268  424 ?        S    22:02   0:00 /sbin/agetty ttyS
mark     17186  0.0  0.0  3704  752 pts/0    R    22:03   0:00 ps -aux0.0  0.1  4984  984 ?        S    19:56   0:00 /bin/sh /usr/loca
sorry about the formatting of that last line.

Seems to me there are a lot of k*** apps running which I prolly won't need in Gnome???
 
Old 03-27-2004, 10:08 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Well right up to
Code:
root     15934  0.0  0.2  8936 1840 ?        S    Mar21   0:00 cupsd
it all looks normal to me. That's the cups daemon (printers) by the way. xfs isn't necessary (it's the x font server) if you're using XFree86 version 4 but it doesn't hurt to keep it on. After cupsd it all seems to be 'optional' stuff to do with either kde or gnome. You could probably turn some of that stuff off if you're not using it.

Incidentally, at which stage did 'probably' become 'prolly'? I would say that Shakespeare would be rolling in his grave, but he used non-standard English.
 
Old 03-27-2004, 11:27 AM   #3
[WebCarnage]
Member
 
Registered: Jun 2003
Location: USA
Distribution: Slackware 9.1 | netBSD 1.6.2
Posts: 35

Rep: Reputation: 15
While analyzing your ps -aux, what would be the command to kill a certain application?
 
Old 03-27-2004, 11:54 AM   #4
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
the command is:

kill PID

where PID is the PID number of the proccess
 
Old 03-27-2004, 11:54 AM   #5
thehundredthone
Member
 
Registered: Nov 2003
Distribution: Fedora Core 1
Posts: 76

Rep: Reputation: 15
two commands. either:

kill <pid> for a cooperative shutdown
or
kill -9 <pid> for a forced "End-task" type shutdown

OR

killall <name>
or
killall -9 <name>

pid is the number that comes up on the left side of ps -aux
name is the name of the process. kill kills the single process and those that depend on it. killall is used when you want to kill a list of similar process: in your case, for example k* (all the K apps)
 
Old 03-28-2004, 08:20 AM   #6
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.1 and Slackware Arm
Posts: 478

Original Poster
Rep: Reputation: 41
thanks for the threadjack [webcarnage]

mark
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
confine the output of 'ps -aux' for a user? houler Slackware 7 04-25-2005 11:44 PM
what program do you use to analyze your logs ? ddaas Linux - General 3 03-06-2005 09:21 AM
ps -aux output: CROND running repeatedly redhatman Linux - Newbie 1 03-29-2004 08:51 PM
analyze the port list-----help!!!!! Cyrus Linux - Security 11 03-03-2004 01:13 PM
Analyze this! paintedreality Linux - Hardware 5 02-16-2003 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration