LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-30-2007, 08:58 AM   #1
[KIA]aze
Member
 
Registered: Jun 2006
Distribution: Debian, Ubuntu, Windows XP
Posts: 146

Rep: Reputation: 16
Ram full -> system freeze


Hi,

I am using Ubuntu Gutsy Gibbon on a compaq presario with 448MB of RAM (512-64 from shared video mem) and a 2.4GHz Pentium 4.
My swap partition is 1GB big and it's on an extended partition (the same as Ubuntu).

In the last days, I frequently had a problem of my RAM getting filled up ending up with a pseudo-freeze of the system:
-I can't move the mouse correctly anymore (it moves from time to time).
-I can't open a virtual terminal because of the same reason and when it finally comes up, I can't type my login+password+ps+killall.

Basically, everything gets so slow that the system is unusable.

Moments when it happened:
-while exporting a 12MB Openoffice presentation to PDF (acceptable)
-when adding a new C++ file to eclipse!! (which is horribly slow generally)
-while using Lyx, Amarok, gnome PDF viewer, open-office and 1 or 2 Nautilus windows

Right now, my laptop is next to me frozen while "building" GHCi library"...

*Is there any way to force Linux to leave enough RAM available so the system remains controllable?
*Could it have something to do with the swap being on an extended partition?
*Or is it a Gutsy Gibbon related problem (gutsy being the new testing version of Ubuntu)?

*And is there an equivalent to the ctrl+alt+del from windows to reboot the PC?
(reaction to ctrl+alt+backspace is also so slow that it's useless)

Last edited by [KIA]aze; 04-30-2007 at 09:02 AM.
 
Old 04-30-2007, 11:28 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Some basic realities:

- swap is bad
- disk drive are very slow compared to RAM
- laptop hard drives are slow compared to desktop hard drives
- RAM is very inexpensive these days (1GB for as little as $60 USD)

One tuning possibility is to increase the swappiness of the system, so more gets moved to swap earlier. This will reduce the large transfers and thrashing that occurs when frames are depleted.

Try these settings as a starting point:

Code:
echo "0" > /proc/sys/vm/laptop_mode
echo "500" > /proc/sys/vm/dirty_writeback_centisecs
echo "2000" > /proc/sys/vm/dirty_expire_centisecs
echo "20" > /proc/sys/vm/dirty_ratio
echo "80" > /proc/sys/vm/swappiness
No need to reboot; the changes take effect immediately, but need to be reset after a reboot.
 
  


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
RAM becomes full izvrashenj Debian 5 07-20-2006 12:57 PM
Top not reporting full ram satinet Linux - Hardware 5 02-05-2006 04:28 PM
Full RAM not recognized on Compaq 2500 TotalDefiance Slackware 9 06-29-2005 10:19 AM
New RAM, system freeze/crash MrLizard Linux - Hardware 11 04-27-2005 05:57 AM
RAM seems very full? ginda Linux - Newbie 12 03-07-2005 11:17 PM


All times are GMT -5. The time now is 04:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration