On 27.05.2014 07:33, Alan Corey wrote:
Mostly so when I switch to a different application, maybe on a
different page of the FVWM desktop, it isn't sitting there swapped out
and it's responsive. I've usually got 20 or more applications open at
once (most just RXVT windows) and reboot about once a week.  If I
invest in RAM I expect it to get used.  Seems like Linux and FreeBSD
are better about this but I don't use them often. Now I've got 864
free, 25 swapped out (restarted Firefox).

LOL at Linux better about this...........

Fresh Ubuntu 14.04 LTS with updates

user@laptop:~$ free -m
total       used       free     shared    buffers     cached
Mem: 3819 834 2984 1 3 141
-/+ buffers/cache:        689       3129
Swap:         3959        313       3646
user@laptop:~$ sysctl vm.swappiness
vm.swappiness = 10
user@laptop:~$

With vm.swappiness on default 60 even more pages in swap. Only Firefox with 2 tabs running. Trying to get open and load some other page result in like ~1 minute hang of OS where I can do nothing, not even switch to text console. Adding flash in the mix result in
memory leak and Firefox eating everything.

Setting swappiness to 0 helps more, but then why is that parameter here at all? Why Linux is swapping most used pages even as there's plenty of free RAM and cache is total mystery. I'm sure they will come with something clever, like systemd handling
vm. That will help for sure.

OpenBSD is superspeedy heaven (even in reality) compared to this crap



On 5/27/14, Philip Guenther <guent...@gmail.com> wrote:
On Mon, May 26, 2014 at 9:49 PM, Philip Guenther <guent...@gmail.com>
wrote:

On Mon, May 26, 2014 at 9:36 PM, Alan Corey <alan01...@gmail.com> wrote:

Several hours ago I edited a few big images in The Gimp so there was
some swapping.  I still have about 60 megs swapped out even though
I've got 600 megs of RAM free. I've seen this before, sometimes it'll stay swapped out overnight until I reboot to clear it. The Gimp was
closed hours ago.

Is there any command to cause the swap system to do a HUP or something
to re-evaluate the situation?


[Stupid gmail control-enter]

If the data has remained swapped out, it's because it hasn't been needed
yet.  Perhaps its the process memory for a daemon which isn't being
connected to and doesn't need to do anything. Why would you *want* to swap
that in?


Philip Guenther

Reply via email to