1

I have a Fedora 21 on my notebook and it sometimes runs out of memory. The notebook has 4GB of system RAM and the OS takes up only about 450MB of disk space.

I am sure that the culprit is Chromium; which seems to have memory leaks. The problem is that the OS freezes and only hard restart works. I found some info about “Out Of Memory” killer, but it was mostly server stuff.

What is the best approach to this problem on workstations?

10
  • 1
    Are you running out of virtual memory or physical memory there is a huge difference.
    – Ramhound
    Aug 22, 2015 at 18:36
  • @Ramhound Sorry, physical. Aug 22, 2015 at 18:38
  • 1
    How much physical memory do you have?
    – DrZoo
    Aug 22, 2015 at 18:41
  • 1
    Are you running Fedora without any swap file? Aug 22, 2015 at 19:04
  • 1
    That recommended optimization was only true for first genration SSD's. Modern SSD's don't have the lifetime issue and it is perfectly file (infact you will get better performance) to put swap on a SSD. Please read this answer its about windows, but the logic behind why you need a swap file is the same. You are running out of virtual memory because you have no swap. Aug 22, 2015 at 19:08

1 Answer 1

3

The root of your problems is you are running out of virtual memory, this is causing your system to lock up long before you actually run out of available physical memory. You need to enable a swap partition on your system and you should see your lockup problems disappear.

Please read this answer from a question that was having similar problems to you but on Windows, it explains in detail why you need a swap file on a modern operating system.

Not running swap on a SSD was only true for first generation drives from the early 2000's. Modern SSD's lifespan have no issue with running swap on it, in fact if you have the choose between a spinning hard disk drive and a SSD putting the swap on SSD will improve your performance.

You must log in to answer this question.

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