Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I'm rather confused how to control what programs Linux runs on startup (if I should control them at all). Right now I am running Gnome, 2 terminals, Gaim, and Mozilla Firebird. When I use the 'top' command it tells me there are 79 processes running.
This results with about 200mb out of my total 256mb or RAM being used on startup. Is it normal to have that many sleeping processes on startup? If not, how would I go about figuring out what they are and telling them not to startup until a program calls out for them?
For instance, I see a lot of what I believe are KDE related programs. I am running Gnome under Gentoo and used the USE variables of -kde and -qt so I don't see how these got installed, much less are running.
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
2 root 15 0 0 0 0 S 0.0 0.0 0:00.03 keventd
3 root 34 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd_CPU0
4 root 15 0 0 0 0 S 0.0 0.0 0:00.25 kswapd
4 root 15 0 0 0 0 S 0.0 0.0 0:00.25 kswapd
5 root 15 0 0 0 0 S 0.0 0.0 0:00.20 kscand
6 root 15 0 0 0 0 S 0.0 0.0 0:00.10 bdflush
7 root 15 0 0 0 0 S 0.0 0.0 0:00.42 kupdated
309 root 18 0 0 0 0 S 0.0 0.0 0:00.00 khubd
342 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kreiserfsd
Sorry I can't be much more specific than that, as that's about all I understand about it at this point.
Just becuase they start with a K doesn't mean they are KDE related. From your list you outputed here, most of those starting with a k are system processes relating to the kernel.
Ah, thanks for the clarification. I come from the world of Windows where they tell you very little about what's going on in the background, so I really don't know what would be normal. My main concern is how low my system reasources always are, it makes most programs run rather slowly (like Firebird).
I don't know if all those processes are the problem though, I just assumed.
That's not the full list though, the terminal won't let me select more. And those are all processes I'm pretty sure SHOULD be running. How would I get it to show me the other 40 or so processes?
Hi, I'm rather confused how to control what programs Linux runs on startup (if I should control them at all).
Well...... there's a fair chance that there are certain services that run on boot up that you dont need.
In many distributions the actuall start-up services are contained in
/etc/rc.d/init.d
and the Start symlinks to those services are contained in
/etc/rc.d/rcX.d
were X corresponds to the run level.
One way to stop a service from starting in a particular run-level, is just to remove its S symlink from the relevant run-level directory - I create a separate directory to hold the removed symlinks just in case I ever want to initiate the service again
so
mkdir /etc/removed_services
then - for example, to stop the "random number generator" service from starting in run-level 5
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.