Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System Load?

Status
Not open for further replies.

sikek

MIS
Sep 15, 2003
170
US
I'm running 9.2 and i notice that my system load for memory was anywhere from 300MB to 3511MB.
I like at the process table to try to kill a program huge. But h'm not sure what's a default service and whats not. Please help thank.

Delivering Superior Service and Reliabitlity

 
oK so i found this program eatting up all the memory. /usr/x11R6/bin/X
Now for my next question how do a stop it or why is it eatting up some much resources?
It's just a graphical login screen right? Has one had this problem before?

Delivering Superior Service and Reliabitlity

 
You can kill the X process. Look for it by "ps ax |grep X"; it'll look something like "1234 ? S 0:30 X :0"

Then "kill 1234"

Since this is the Linux "client" forum, I'll ask: don't you need X?

To keep X from starting in the future, edit /etc/inittab and change:
id:5:initdefault:
to:
id:3:initdefault:

 
X is the *entire* graphical interface, not just the login screen. And yes, it can use a lot of memory.

If you don't need a graphical interface some distros will allow you to turn it off, and then you will be in console mode, where you issue commands at the command prompt.

I'm assuming if you don't know what X is, you don't know much about linux. If you forcefully try to close it, you will probably be more stuck for what to do with your system.

I'd leave that alone.
 
Thanks for the help lgarner. danomac forgive me if i'm wrong but this is the Linux (client/desktop) section right ? But i'll leave that one alone.

 
I did not mean to sound harsh, this is the client/desktop forum.

The thing is if you forcibly close X, your whole graphical interface disappears (along with the mouse, your internet browser etc.) and you will be at a command line.

If you don't know linux very well you will get stuck at the shell prompt not knowing what to do.

Linux itself without X does not use large amounts of memory, it's the graphical interface (X) that runs that uses a significant amount.

That's all I was warning about. :)
 
Sorry about that then thanks for the heads up. But right when garner reply and then you reply. I already found out the hard way. It's cool thanks again do you have any idea how i can lower my system load?

 
Look for something else. But, I wouldn't worry about memory usage. Memory "usage" includes cache, which is a good thing.

Check your load and swap stats. Swap usage should be minimal- when you start using much swap space your system will slow down dramatically.

Load should also be small. It essentially indicates how many tasks are waiting for the processor. High load indicates processor overload, which can be fixed by more or faster processors. Programs causing high load are usually associated with those using many cpu cycles, which you can see in top.
 
Most distros come with the top utility that can give you all sorts of stats about the current system (load, memory usage, I/O wait, ect.).

A lot of things in Linux (especially in X) load a lot of "stuff" into memory. This alone doesn't cause a problem, unless you are also loadin big stuff into memory. GNOME and KDE (the prettiest window managers) use the most amount of memory, if the memory starts to cause the system to slow down, you can take two options:
First, you can turn animations down or off (in KDE at least), and uninstall windowing themes that you aren't using.

Second, (more drastic) you may consider using a smaller window manager like flux, fvwm, twm, elightenment or some of the others out there. What you might be giving up (depending on which manager) is stuff like:
- multipule desktops
- rounded corners and window themes
- pretty animations when things are clicked.
- easy to use gui to set up color scheme (meaning changing colors/backgrounds through configuration files)

Just some suggestions.

[plug=shameless]
[/plug]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top