Casey Bralla on 21 Jun 2014 03:02:20 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] How much swap do you need?


On Friday 2014-06-20 9:17:48 PM Rich Freeman wrote:
> On Fri, Jun 20, 2014 at 9:11 PM, Eric Lucas <eric@lucii.org> wrote:
> > Just put 8gb of RAM in my laptop. (was: 4)  The system has a 4gb swap
> > partition.

> If you want to use suspend then you need more swap than RAM.  If not,
> then it really doesn't matter, in theory.
> 

> 
> The one area I could see swap being universally beneficial is when
> some application has a memory leak.  Swap would let the kernel have
> someplace to dump the unused pages, and there should be no penalty
> since it will never be read anyway.  This will buy you time before you
> hit the OOM killer.
> 



I agree with Rich.  In my experience, if your system "needs" swap for normal 
operation, the performance is so terrible you will be rebooting anyway to 
solve whatever the memory leak is causing the issue.

(Nonetheless, since disk space is cheap, I always over-allocate for swap on a 
new install.)
-- 

Casey Bralla

Chief Nerd in Residence
The NerdWorld Organisation

www.NerdWorld.org
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug