Re: Lockups
>> I am new to this list I am experiencing system lockups when using
>> firefox and chromium browsers. When the system freezes I can only
>> recover by rebooting and reloading the browsers
>> How can I fix this problem?
It depends on the origin of the problem, which is not always easy to
figure out. My crystal ball says it's likely a problem of thrashing
because the Javascript in the page(s) you're visiting end up using way
too much memory, such that the Linux kernel starts spending all its time
moving data back&forth between the RAM and the storage.
If you add more RAM to your system, this can help, tho if the Javascript
code is bad enough it will just delay the inevitable a little bit.
On one of my desktop, I added a file
% cat /etc/security/limits.d/10-bound-rss.conf
* hard rss 4096000
%
so that any given process cannot have more than 4GB of the RAM for
itself, which tends to confine the problem: maybe one process will
thrash but the rest of the system is still responsive; instead of
thrashing it can also cause the process to run out of memory, giving
a "clean" failure.
Of course, with 16GB of RAM, there's still a risk that 4 faulty
processes bring the machine down to its knees but it's much less likely.
Stefan
Reply to: