Lucid with 1GB RAM hangs/reboots frequently and Swap usage is very low
Linux - NewbieThis 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
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.
Lucid with 1GB RAM hangs/reboots frequently and Swap usage is very low
I have Ubuntu 10.04 installed on my PC with 1GB of RAM and 3GB of Swap partition. But the machine gets hung or reboots itself when the usage is even marginally higher. This is the output of "free -m" for Swap:
Swap: 2908 11 2897
I have tried increasing the swappiness to 80, and this not made any difference. I believe the RAM is taking up all the load and none of the pages are going in to the swap. Hence the slow response and the frequent hung system.
I know this is an old PC but Windows XP (installed on another HDD) runs way better on the same configuration.
I welcome any suggestion on this (apart from buying more RAM).
Thanks in advance.
It might help if you posted the rest of the "free -m" and the results of "top". That way MIGHT be able to suggest something. At least it would give us SOME information.
There are things that are constantly running that cannot be swapped out. From the look of it Xorg is using nearly half your memory and display is one of those things that generally (excluding headless) cannot be swapped out. If you add firefox and Xorg (447+427=874) you have virtually nothing (150) left to run the rest of the system.
thanks for the quick response..
Of all of the forums I have subscribed, this forum is the quickest one I have got replies. (thumbs up)
Though my query is: If the machine is low on memory, then swap should jump in. Why does that not happen.. or how can we make it happen ?
Instead, my computer frequently gets hung and logs-off/reboots itself.
I know swap slows down the response time, however, given a choice, I would prefer a slightly slower system, than to lose all running applications and start all over again.
The problem is that there is stuff running that cannot be swapped out while it is actively running. Any time the screensaver is not on (screen shut off) the display is running. If you are running FF then the display HAS to be running, so both are running at the exact same instant. There are also a ton of other things that need to run periodically (see top)(on second by second basis). While each does not use a significant amount of memory they have to be in real memory(not swapped) when actually running. If you could find out what is with your Xorg and get it down to a resonable level(sub 200m) that would give the rest of the system enough head room to run. Saying it in a less kind way; your Xorg is FUBAR.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.