Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2009 16:37:31 +0200
From:      Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Using mdconfig for swap space
Message-ID:  <200909091637.32031.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com>
References:  <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090909105707.GA27941@torus.slightlystrange.org> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 09 September 2009 15:07:37 Peter Steele wrote:
> Thanks for the responses. The reason I'm looking at doing this is that we
> have increased memory on our platform from 4GB to 8GB and therefore have to
> increase swap space from 8GB to 16GB.

No you don't. It's advised, but not mandatory.

> We have enough space in our /var
> partition that we could add a swap file there and not have to touch the
> existing partition layout. I like the simplicity of the swap file approach,
> but we have an application that is very sensitive to I/O performance and
> I'm a little wary what this could mean. QA I know would have a field day in
> trying to pound the system with all sorts of stress tests. I think a
> dedicated swap partition is probably a safer option.

Any I/O bound application suffers from any kind of swap. You would do better 
to first establish how this application suffers once you start swapping. If 
your machine needs more then or even close to 8GB of swap, I doubt the 
applications are responsive to begin with. With 8GB of memory, it's probably 
better to have 2GB of swap, so that offending applications are killed off 
sooner and the machine is able to recover sooner. But - I'm assuming this is a 
server, for a multimedia machine - editing large images or videos - more swap 
is beneficial as inactive images/videos can be swapped out.

-- 
Mel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909091637.32031.mel.flynn%2Bfbsd.questions>