LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-15-2007, 11:56 AM   #1
barn63
Member
 
Registered: Jan 2006
Location: Macomb, IL
Distribution: Slackware 13.1
Posts: 152

Rep: Reputation: 17
Running Processes


Last time I checked my running processes it seemed really high. I want to cut back on un-needed processes to optimize my system. How many should normally be running?

BTW Running Slackware 12 with XFCE
 
Old 08-15-2007, 12:19 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by barn63 View Post
Last time I checked my running processes it seemed really high. I want to cut back on un-needed processes to optimize my system. How many should normally be running?

BTW Running Slackware 12 with XFCE
Hi,

Is your system sluggish or just slower than normal?
What does 'top' show?
What does 'ps' show?

You should 'man top' and 'man ps'.

One way would be to trim away what you don't want to use. The output of the above commands just provides the image of what is going on with your system. If for example you don't use 'NFS' then don't start it. Look at '/etc/rc.d/' but be careful what you do here because some of it is necessary.

You could just run 'pkgtool' to run the scripts to start/stop system daemon (services) you want at startup of your system.
 
Old 08-15-2007, 12:27 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
How many should normally be running?
'Normal' depends on what you want/need. I need apache, mysql, sshd and ldap (among others), which will increase the count by roughly 15 processes. There are also kernel/system related processes that you may or may not see (and cannot do much about if they are there). An example being this entry in my process list:

root 587 2 0 17:20 ? 00:00:00 [appledisplay]

You will not see this one in most process lists, but my system needs it.
At the moment I've got 116 processes that are 'running' (ldap is not running), I guess that around a 100 could be seen as base and around 120 as' normal'.

It also matters which WM you are using, I bet that xfce uses a lot less processes then kde or gnome.

BTW: I'm running LFS atm with xfce.

Hope this helps.
 
Old 08-15-2007, 01:15 PM   #4
barn63
Member
 
Registered: Jan 2006
Location: Macomb, IL
Distribution: Slackware 13.1
Posts: 152

Original Poster
Rep: Reputation: 17
Well I have 88 total tasks 1 running and 87 sleeping. But what I did notice is that I have " 497172k total, 405712k used" of memory. How can I tell what is using all the memory?
 
Old 08-15-2007, 01:36 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Linux is designed to use most RAM for cache and buffers and that's why on most linux boxes you will see a 'small' number in the free column. Most of the time this will also mean that nothing is wrong. If your machine starts to get sluggish and there is a lot of swapping, then you could have a problem.

Although it is probably possible to read what's actually in the cache, a lot of it will be from stuff that isn't running any more, but is still there in case the program is started again/becomes active again.

top will show you the amount of memory that an active process uses (and will show a possible memory unfriendly program).

Hope this helps.
 
Old 08-15-2007, 02:27 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by barn63 View Post
Well I have 88 total tasks 1 running and 87 sleeping. But what I did notice is that I have " 497172k total, 405712k used" of memory. How can I tell what is using all the memory?
Hi,

You could reference the 'Slackware's rc init tour' to get a better understanding of the init.

Linux does use the available memory very efficiently. Some people get scared when they see that most of the memory is used. Not understanding the environment causes the M$windows mindset, not a flame bait. M$ has always referred that some problems solutions could be an increase in available memory by the user to prevent a problem from developing instead of correcting the programs problem(s).

As for the Linux kernel swapping, paging and release of space is controlled by the kernel scheme with the environment of the system in mind.

I would like to reference you to the Linux Kernel section of the 'Slackware-Links' which was compiled from 'Slackware LQ Suggestions Links!'. Within the Linux Kernel section you will find a lot of information to assist you in understanding the kernel.
 
  


Reply



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 processes, which ones don't I need Garibaldi3489 Slackware 11 02-06-2005 03:46 PM
Too many Running Processes AdamCo Linux - Software 5 10-22-2004 02:17 AM
processes running true_atlantis Slackware 2 02-27-2004 02:34 AM
Running processes Nicksan Linux - Software 1 05-30-2003 09:14 PM
seeing running processes albean Linux - Newbie 3 11-11-2002 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:03 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