2

Memory is getting low and heavy SWAP access makes my system responding very slowly at first, but if I don't react by freeing a lot of memory, the system becomes like almost completely dead. Now I have this ridiculous situation where I can't even log in, while the system and programs are still running and constantly swapping gigabytes of memory back and forth.

The graphical login does not even appear. After I pressed Ctrl-Alt-F1 and waited a couple of minutes, the text login appeared. But when I enter my login name, it says 60 seconds later, but before the password login prompt even appeared "login timed out after 60 seconds". Sometimes I get to the password prompt, but still it times out after 60 seconds. I am still trying right now, anyone has a better idea? I can't even properly shut down like this. Actually it would be enough to close some Chromium tabs (or kill their tasks), just how?

By the way, it is only one program and one website that causes alle this havoc: Chromium and Facebook. Though Facebook renders very fast in Chromium, it uses a lot of memory – like a couple of hundred MB for each tab. And as those FB tabs are updated and each contains a chat window, scrolling updates etc. the memory usage constantly grows. This time I had around 20 tabs opened, many of them were FB tabs.

System: AMD64 3.5 GB RAM, Ubuntu 13.10 (64 Bit)

Swap is encrypted. I don't know if not using disc encryption would make a difference.

3
  • You can run 14.04 with 2 gb ram 3gb swap and 1GHz dual core processor with preload.It runs faster excepting software center. Aug 4, 2014 at 12:29
  • You should backup your data using live CD and fully reinstall 32bit 14.04 LTS.And do not forget to uninstall compiz. Aug 4, 2014 at 12:31
  • Try google chrome instead of chromium Aug 4, 2014 at 12:35

1 Answer 1

2

You're experiencing thrashing due to exhaustion of physical memory, so the system is constantly swapping memory pages in and out of disk.

http://en.wikipedia.org/wiki/Thrashing_%28computer_science%29

Three possible solutions:

  1. Buy more RAM
  2. Try a different browser to see if it has a lower memory usage until you can get more RAM.
  3. Don't open so many facebook tabs until you buy more RAM.

As to how to do a proper shutdown, you can try the REISUB sequence (http://kember.net/articles/reisub-the-gentle-linux-restart/). Failing that, you'll probably just have to risk power-cycling the system.

3
  • Thanks, I will remember the SysReq options. In this case, I was able to log into text mode after I tried several more times (the 60 second time out kicked in before I was prompted for the password…). However killing Chromium processes with top didn't work and a proper shutdown neither, but somehow the system came to a still stand and I switched off. –– Isn't there a possibility to prevent crashes like this? Ubuntu should at least display a warning when swapping starts to become heavier, like "Close some programs now or your system might become inaccesible due to lack of memory."
    – w-sky
    Feb 9, 2014 at 21:18
  • You can easily prevent "death by thrashing" simply by disabling swap; edit /etc/fstab and comment out any lines for swap partitions. Now, when no more memory is available, processes will simply start dying. This will result in erratic behavior however :( Give it a try and decide if it's a reasonable tradeoff for you "while you buy more ram" :)
    – roadmr
    Feb 10, 2014 at 14:45
  • Not necessary to by ram Aug 4, 2014 at 12:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .