S
S
SOTVM2018-05-25 15:28:53
linux
SOTVM, 2018-05-25 15:28:53

How to solve problems with memory and gluttony of browsers / applications?

I just don’t need advice on buying,
I don’t play toys, I don’t immediately launch 100500 processes and I don’t open 100500 tabs in the browser.
Sometimes, a "mad fox" or some kind of gluttonous script, it happened that he himself was mistaken,
(with the .mp4 > .gif envelope he set the wrong time, instead of 15 seconds he set 15 minutes, he went to smoke, he came - it hangs there),
but usually browsers are weird and they eat all my memory, as much as 2 hectares + clog up the entire Swap = 2GB,
and given that I also have a screw from the times of the King of Peas IDE WDC WD800BB-55JKA0 80GB + ST380215 80GB
so, if you missed the moment, yet "all is not lost", and did not nail the process,
then you have to do it hard. even the treasured Reset button has already pressed its own, and has long been retired,
then I just pull the power cord, and through REISUB something I have a la-sink, i.e. B does not work,
in /etc/sysctl.d/10-magic-sysctl.d/10-magic-sysrq.conf kernel.sysrq = 1 ,
okay, this is a lyric and this is not the question:
How can I reserve places in memory, say for HTOP and give them the highest priority so
that you can kill any "snickering process", by the
way, just for this I updated the kernel to 4.13 in order to install and try the bfq scheduler ,
but this did not solve the problems when something starts to be actively written to the screw (seen by the LED),
and if the memory is already 0%, then this dependency is easier to kill than to wait for defrosting.
what is he doing/writing there at this time? Satan knows him :)
in /etc/sysctl.conf vm.swappiness=5

$ inxi
CPU~Dual core AMD Athlon 64 X2 5200+ (-MCP-) speed/max~2599/2600 MHz 
Kernel~4.13.0-041300-generic x86_64 Up~1 day 
Mem~1061.9/1996.9MB HDD~160.0GB(31.8% used) 
Procs~177 Client~Shell inxi~2.2.35

PS
ONCE AGAIN, for those who are in the tank and cannot read.
QUESTION:
how to keep in memory and set the maximum priority, a la / how for system calls (REISUB),
a program like HTOP , and in cases of memory overflow , it was possible to kill the culprit without rebooting the entire system.
Or explain to me how/why an application running as a normal user hangs the whole system?
.....UPS, while I was writing, an epiphany came and a "terrible secret" (๏̯͡๏)
was revealed to me - I have maximum rights

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
OnYourLips, 2018-05-25
@OnYourLips

Either change the hardware (it is terrible for you), or do not use modern programs and sites. Choose.

R
Roman Mirilaczvili, 2018-05-25
@2ord

1. Trite, try to disable browser extensions, leaving only the most critical and, of course, the ad blocker.
2. Disable various modules that consume or affect excessive memory consumption.
3. Become a browser developer and submit patches to reduce memory consumption.
4. Use a simpler browser.

A
AVKor, 2018-05-25
@AVKor

Don't use them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question