OT: Swapfile to RAM relation with 2.4.2X+
Hi everyone!
Maybe I should address someone else with this question but maybe someone on this list can answer this quickly throughout his own experience:
In the beginning of 2.4.0+ a relation of swapfile-to-RAM of 2-to-1 was recommended. Due to my several system changes to come in those times I refused to implement this setting at that moment of issue immediately (money missing for notebook RAM and for required disk space). I had 256->512MB RAM and always 256MB swap.
Last weekend I implemented a 1:1 relation of Swap-to-RAM, at least (512:518 on here, now). I now see swap space filling up more now, and a bit more quickly. But not any "subjective" advantage on my previous system. Mmh. Linux is now using more RAM for (sometimes also VMware related) disk cache.
I don't know: Is that all on swap:RAM relation?! No real advantage???
Manuel
->
I want to express my personal feelings on here - Me just beeing wordless - just praying - concerning the "Loss of Columbia": I feel with the families, the team; and the future of NASA / ESA / or any further manned
space mission to take, mourning and hoping.
I'm also hoping for more peace on earth, in near and far east, we should strictly take care of that, in hopefully non-violent diplomacy and no aggressions between any party or any ally being in freedom and peace... <-
Quoted 2 lines · Manuel Krause
In the beginning of 2.4.0+ a relation of swapfile-to-RAM of 2-to-1 was recommended. Due to my several system changes to come in those times I
Such recommendations are only generalisations. Ignore them and look at what your system is doing. If your swap space never runs out and you don't expect your usage patterns to require more (including cron jobs and periods of unexpected load) then you have enough. If you run out of swap space then you need more, also you should have some swap even if you have a lot of memory. There's always data that isn't used much and can be paged out to make room for more disk cache.
BTW Anything that is worth saying in a .sig can be said in 4 lines.
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
Thank you for your reply, Russell!
Quoted 6 lines · Russell Coker
Quoted 2 lines · Manuel Krause
In the beginning of 2.4.0+ a relation of swapfile-to-RAM of 2-to-1 was recommended. Due to my several system changes to come in those times I
Such recommendations are only generalisations. Ignore them and look at what your system is doing. If your swap space never runs out and you don't expect
So far, I followed these thoughts as I always seemed to have enough swap space in this way of interpretation of swap usage. It never ran out. (Except for buggy applications, e.g Netscape 6 betas, that sometimes first filled RAM to max and then the swap ... the system finally stalling.)
Quoted 1 line
your usage patterns to require more (including cron jobs and periods of unexpected load) then you have enough. If you run out of swap space then you need more, also you should have some swap even if you have a lot of memory. There's always data that isn't used much and can be paged out to make room for more disk cache.
Seldom things happened on here this afternoon. Trying an "unexpected" load: Me changing an image with Gimp, opening some large chart in OpenOffice, a VMware doing disk defragmentation, running KDE2, and some other programs ... and Netscape 7.01 with several plugins also via crossover in separate plugin servers for some hours. Finally I had ~75% of the new huge swapfile filled. From time to time I had this _rate_ before, so far, but not more. Today, closing the applications step-by-step revealed Netscape and plugins had about 256MB swap in use! (Of course I know NS6++ have always been "memory hogs".) It was an acoustical and visual experience listening to 2 disks activity and watching KSysguard to show the actions.
I just want to report back and now find it quite funny having had a max 75% filled swap so far, then repartitioning to have a doubled Linux swap, and having applications that use it up that excessively... still having a max 75% filled swap.
;-))
Best regards,
Manuel
Quoted 1 line
BTW Anything that is worth saying in a .sig can be said in 4 lines.
Yes. It should. But it was not intended as .sig.