[opensuse] Leap: strange problem with SWAP bloating
When using streaming or a broser like chromium or firefox I have the problem that this machine bloats the swap up to 350- 400 Mb and even more up to 1G and more. It is possible that I have a memory leak of some application? But then, when I close all applications, the swap memory stays, the PC swaps heavily, gets nearly unusable. Out of the 3 GB of memory only 1.1 are used in these situations. Often it begins with a 30 MB Swap used without any apparent reason. To get a system back to normal I have to go to konsole and sudo swapoff -a and once done sudo swapon -a This makes things turn to normal. Any suggestion on how to find out what causes this? I never had problems like this ever before with 3GB of RAM. Should be far enough for a simple 64 bit OS with a browser opens. Even two browsers should not be a problem. --- Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! http://email.freenet.de/basic/Informationen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
stakanov@freenet.de wrote:
When using streaming or a broser like chromium or firefox I have the problem that this machine bloats the swap up to 350- 400 Mb and even more up to 1G and more.
It is possible that I have a memory leak of some application? But then, when I close all applications, the swap memory stays, the PC swaps heavily, gets nearly unusable.
There are some memory leaks in Plasma5: bug#957797, bug#954581. Try "grep VmSwap /proc/*/status", that'll tell you which process is using how much swap space.
Out of the 3 GB of memory only 1.1 are used in these situations.
In that case, I don't think your machine is actually swapping. It may have been in the past, and the the swap space has yet to be released. Here's an example from one of my desktops: top - 08:28:45 up 6 days, 19 min, 5 users, load average: 2.02, 2.07, 2.10 Tasks: 208 total, 2 running, 205 sleeping, 0 stopped, 1 zombie %Cpu(s): 0.7 us, 0.6 sy, 50.0 ni, 48.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 4046012 total, 2048636 used, 1997376 free, 4 buffers KiB Swap: 4192188 total, 1656472 used, 2535716 free. 354116 cached Mem
Often it begins with a 30 MB Swap used without any apparent reason. To get a system back to normal I have to go to konsole and sudo swapoff -a and once done sudo swapon -a This makes things turn to normal.
It's perfectly normal for a system to be using swap space all the time. How much depends on the workload and how much real RAM it has.
Any suggestion on how to find out what causes this? I never had problems like this ever before with 3GB of RAM. Should be far enough for a simple 64 bit OS with a browser opens. Even two browsers should not be a problem.
The question is perhaps - is there a real problem? Is your machine being slowed down by excessive swapping? -- Per Jessen, Zürich (-0.1°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/14/2015 02:40 AM, Per Jessen wrote:
The question is perhaps - is there a real problem? Is your machine being slowed down by excessive swapping?
I find Firefox bogs down after a while and shutting it down is the only way to clear it. I don't know if this is related to the bloat problem. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
James Knott wrote:
On 12/14/2015 02:40 AM, Per Jessen wrote:
The question is perhaps - is there a real problem? Is your machine being slowed down by excessive swapping?
I find Firefox bogs down after a while and shutting it down is the only way to clear it. I don't know if this is related to the bloat problem.
Firefox with Flash does that to me too - the machine becomes slower and slower, I check in "top", and Firefox is running at 100%. -- Per Jessen, Zürich (3.4°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 14.12.2015 um 16:09 schrieb Per Jessen:
James Knott wrote:
On 12/14/2015 02:40 AM, Per Jessen wrote:
The question is perhaps - is there a real problem? Is your machine being slowed down by excessive swapping?
I find Firefox bogs down after a while and shutting it down is the only way to clear it. I don't know if this is related to the bloat problem.
Firefox with Flash does that to me too - the machine becomes slower and slower, I check in "top", and Firefox is running at 100%.
this was a topic already. firefox does this with or without flash, it just keeps everything in memory what you have visited and never ever frees this memory again, unless you completely shut down the program (only closing some windows or tabs does not free their contents). You win a millisecond when going back to an already visited page, for the price that everything gets slower, and in the end you don't even win that millisecond, but still pay the price... It is very annoying, but it is as is... -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/14/2015 10:18 AM, Daniel Bauer wrote:
this was a topic already. firefox does this with or without flash, it just keeps everything in memory what you have visited and never ever frees this memory again, unless you completely shut down the program (only closing some windows or tabs does not free their contents).
You win a millisecond when going back to an already visited page, for the price that everything gets slower, and in the end you don't even win that millisecond, but still pay the price...
It is very annoying, but it is as is...
The issue then becomes, what are the alternatives? Chrome (and its variant from Google)? Konqueror? Reconq? Qupzilla? For many of us it is the plugins available that make FF so attractive. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 14.12.2015 um 17:04 schrieb Anton Aylward:
On 12/14/2015 10:18 AM, Daniel Bauer wrote:
this was a topic already. firefox does this with or without flash, it just keeps everything in memory what you have visited and never ever frees this memory again, unless you completely shut down the program (only closing some windows or tabs does not free their contents).
You win a millisecond when going back to an already visited page, for the price that everything gets slower, and in the end you don't even win that millisecond, but still pay the price...
It is very annoying, but it is as is...
The issue then becomes, what are the alternatives?
Chrome (and its variant from Google)? Konqueror? Reconq? Qupzilla?
For many of us it is the plugins available that make FF so attractive.
I think it's a matter of personal preferences. For me ff is still the best choice. My "solution" then is to close all firefoxes from time to time when things get too slow. I can live with that, although I'd prefer it wouldn't be necessary. (I don't want chrome for googles barefaced inquisitiveness and absolute lack of respect for its users.) -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com room in Barcelona: https://www.airbnb.es/rooms/2416137 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Daniel Bauer wrote:
Am 14.12.2015 um 16:09 schrieb Per Jessen:
James Knott wrote:
On 12/14/2015 02:40 AM, Per Jessen wrote:
The question is perhaps - is there a real problem? Is your machine being slowed down by excessive swapping?
I find Firefox bogs down after a while and shutting it down is the only way to clear it. I don't know if this is related to the bloat problem.
Firefox with Flash does that to me too - the machine becomes slower and slower, I check in "top", and Firefox is running at 100%.
this was a topic already. firefox does this with or without flash, it just keeps everything in memory what you have visited and never ever frees this memory again, unless you completely shut down the program (only closing some windows or tabs does not free their contents).
Okay, that's not the problem I see. I see Firefox running at 100% CPU, slowing down anything you do with it. -- Per Jessen, Zürich (-0.6°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sunday, December 13, 2015 11:30:40 PM stakanov@freenet.de wrote:
When using streaming or a broser like chromium or firefox I have the problem that this machine bloats the swap up to 350- 400 Mb and even more up to 1G and more.
Try running the following as root (one line): grep Swap /proc/*/smaps | sort -k1 | awk '($1 == last) || (last == "") {sum += $2} ($1 != last) && (last != "") {print last " " sum; sum = $2} {last = $1} END {print last " " sum}'|sort -k2 -g -r | awk ' BEGIN {FS="(/| *)"} { system("cat /proc/" $3 "/cmdline"); print " " $5 " kB"}' 2> /dev/null This yields the list of programs sorted according to the memory swapped out. -- Regards, Peter -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Anton Aylward
-
auxsvr
-
Daniel Bauer
-
James Knott
-
Per Jessen
-
stakanov@freenet.de