LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2004, 12:02 AM   #1
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Rep: Reputation: 30
Unnecessary process running


Hi there!

I have an old enough server as you can see the spec at below signature.After issuing top command,I discovered that I have only 968K memory remaining.However,I am wondering if some daemon or process can be terminated.Here's the result after I issued top:

Quote:
65 processes: 62 sleeping, 1 running, 2 zombie, 0 stopped
CPU states: 0.7% user, 0.2% system, 0.0% nice, 1.9% idle
Mem: 93876K av, 92908K used, 968K free, 0K shrd, 4348K buff
Swap: 273096K av, 115288K used, 157808K free 18108K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
1644 root 14 0 1084 1084 844 R 2.8 1.1 0:00 top
6 root 11 0 0 0 0 SW 0.9 0.0 3:10 kscand/Normal
1 root 8 0 492 460 440 S 0.0 0.4 0:04 init
2 root 9 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 19 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU0
4 root 9 0 0 0 0 SW 0.0 0.0 0:07 kswapd
5 root 9 0 0 0 0 SW 0.0 0.0 0:00 kscand/DMA
7 root 9 0 0 0 0 SW 0.0 0.0 0:00 kscand/HighMem
8 root 9 0 0 0 0 SW 0.0 0.0 0:00 bdflush
9 root 9 0 0 0 0 SW 0.0 0.0 0:00 kupdated
10 root -1 -20 0 0 0 SW< 0.0 0.0 0:00 mdrecoveryd
16 root 9 0 0 0 0 SW 0.0 0.0 0:00 scsi_eh_0
19 root 9 0 0 0 0 SW 0.0 0.0 0:22 kjournald
415 root 9 0 472 440 396 S 0.0 0.4 0:10 syslogd
419 root 9 0 260 212 208 S 0.0 0.2 0:00 klogd
436 rpc 9 0 296 224 220 S 0.0 0.2 0:00 portmap
455 rpcuser 9 0 440 360 356 S 0.0 0.3 0:00 rpc.statd
567 root 8 0 524 292 288 S 0.0 0.3 0:19 sshd
596 ntp 9 0 1980 1980 1792 S 0.0 2.1 0:00 ntpd
606 lp 8 0 184 36 32 S 0.0 0.0 0:00 lpd
876 root 9 0 48 4 0 S 0.0 0.0 0:00 gpm
889 root 9 0 2612 180 140 S 0.0 0.1 8:29 httpd
898 root 8 0 152 112 72 S 0.0 0.1 0:00 crond
931 xfs 9 0 2316 68 40 S 0.0 0.0 0:00 xfs
950 daemon 9 0 184 164 128 S 0.0 0.1 0:00 atd
974 nobody 9 0 504 488 404 S 0.0 0.5 0:00 noip2
979 root 9 0 228 76 72 S 0.0 0.0 0:00 mysqld_safe
989 nobody 9 0 0 0 0 Z 0.0 0.0 0:00 noip2 <defunct>
1010 mysql 9 0 9504 572 80 S 0.0 0.6 0:00 mysqld
1024 root 9 0 44 4 0 S 0.0 0.0 0:00 mingetty
1025 root 9 0 44 4 0 S 0.0 0.0 0:00 mingetty
1026 root 9 0 44 4 0 S 0.0 0.0 0:00 mingetty
1027 root 9 0 44 4 0 S 0.0 0.0 0:00 mingetty
1028 root 9 0 44 4 0 S 0.0 0.0 0:00 mingetty
2324 nobody 9 0 0 0 0 Z 0.0 0.0 0:00 noip2 <defunct>
2361 root 8 0 460 360 284 S 0.0 0.3 0:07 xinetd
25445 root 9 0 48 4 0 S 0.0 0.0 0:00 mingetty
6668 root 15 0 828 668 480 S 0.0 0.7 0:09 bash
32507 root 9 0 5080 1668 116 S 0.0 1.7 0:03 clamd
The process like k*****,I don't know what's the utility.Do you guys know where can I find the daemon name dictionary.Say like if I enter gpm (process name),and I would know the name of the process for me to decide whether it can be terminated.

Any suggestions are appreciated.
 
Old 12-05-2004, 12:55 AM   #2
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
I can say that if you are worried about memory usage of the entire system (compared to Windows), don't be. Linux handles memory much differently (and more efficiently) than Windows. It utilizes all of you memory, so all or a majority of it will be filled at any time.

kill kills processes by PID, if that is what you were wanting?

Servers (and I think daemons, too) end in d in the process list. Such examples would be httpd, sshd, crond, syslogd.
 
Old 12-05-2004, 03:36 AM   #3
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
you may not need more than 2 gettys (/etc/inittab) if you don't log onto the console often. kscand is unknown to me. the rest is quite necessary.

your two "noip2 <defunct>"-zombies might indicate a problem.

linux fills up unused memory with caches to speed up file access. buffers are data that has still be written to disk and normaly shouldn't go beyond 20M. if the mem is needed by processes it will be given to them, so don't worry. "$ free" gives you an overview.

k*d usually stands for a kernel intern daemon (belongs to the system). often "$ man <name>" or "$ apropos <name>" can give you a hint about what that process is doin'.

btw: 65 processes is nothing for a linux server.

sl mritch.
 
  


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
Running a process during boot anegbi Linux - Software 3 11-30-2005 03:08 AM
Running process sonu1082 Linux - Software 2 11-25-2004 05:32 AM
background running process elbriga Programming 2 09-21-2004 06:08 PM
Process not running LinuxRam Linux - Newbie 4 09-09-2004 12:45 AM
creating/running process... gmasterleo2000 Programming 4 12-07-2003 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 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
Open Source Consulting | Domain Registration