How to prioritize the use of physical memory instead of swap?
Hi
I have a system with 2G of memory and swap memory of 4G. This is the output from : $cat /proc/meminfo PHP Code:
swap is used and note that the system could use the memory cache does not swap ... Thanks ps: Slackware current 64 multilib |
You may want to tune /proc/sys/vm/swappiness, see http://kerneltrap.org/node/3000.
Also, linux-mm.org (more specfically, http://linux-mm.org/LinuxMMDocumentation and http://linux-mm.org/LinuxMMInternals) helps to understand how the whole memory management thing works. ;) |
Precisely 1 page of swap is in use. That single page is (swap)cached - meaning it will be read from memory, not read in from disk should it ever be referenced again. That single page was probably swapped out because it hadn't been referenced in ages.
How much more efficient can it get ?. |
maxmiorim
È estranho para mim mesmo dizer obrigado a um compatriota (em ingles) ,de toda forma ai vai ... Muito obrigado pelo links,tentarei entender o que esta escrito em ingles( meu ingles é muito ruim ) e o seu conteudo ,de toda forma, pelo pouco que li ,me parece muito interessante .... ps:Eu sei que a linguagem no forum é o ingles ,não fique aborrecido comigo mesmo :-) Quote:
syg00 Haaa ... I think I understood then .... thanks |
This might or might not help you, but if you are like me and see that swap is used and you have memory free, use the swapoff command.
You can then swapon /dev/<swap partition> to get a cleared out swap space. Or if you are feeling very adventurous, get some more memory and run without any swap! :) |
Quote:
Anyway, if I translate correctly so that I can even understand the explanation of syg00, satisfy me ... many thanks ps:I think it is hard to find is the simplicity ... |
Quote:
|
All times are GMT -5. The time now is 05:33 PM. |