Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2015 21:23:25 +0200
From:      Eduardo Morras <emorrasg@yahoo.es>
To:        freebsd-questions@freebsd.org
Subject:   Re: Swap partition for FreeBSD
Message-ID:  <20150516212325.6a94acff3ba0ad69ddfcafb0@yahoo.es>
In-Reply-To: <CAJ9BSW_SFjJ-1z7xeYStmLV2tSFG7JZgpV2jq7MwGQpF=inVXw@mail.gmail.com>
References:  <CAJ9BSW9cVmd8c+4E5rWAd9FPDvgpwqVKDSh7962FW3-g_W9jMQ@mail.gmail.com> <20150516120000.2a2a8a4d123d988760764441@yahoo.es> <CAJ9BSW_SFkUk0BmozW6SsgKpAOSx6wKwEOQLUzOR1a94P9bNBg@mail.gmail.com> <CAJ9BSW_SFjJ-1z7xeYStmLV2tSFG7JZgpV2jq7MwGQpF=inVXw@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, 16 May 2015 15:45:08 +0530
Avinash Sonawane <rootkea@gmail.com> wrote:

> On Sat, May 16, 2015 at 3:43 PM, Avinash Sonawane <rootkea@gmail.com>
> wrote:
> > On Sat, May 16, 2015 at 3:30 PM, Eduardo Morras <emorrasg@yahoo.es>
> > wrote:
> >> On Sat, 16 May 2015 13:11:18 +0530
> >> Avinash Sonawane <rootkea@gmail.com> wrote:
> >>
> >>> Hello all!
> >>>
> >>> I was trying to build www/webkit-gtk3 (a dependency for
> >>> x11/gnome3) then it abruptly exited with "Out of swap space
> >>> error" so I created a separate 8GB partition to be used as
> >>> freebsd-swap.
> >>
> >> Why don't use a regular file as swap?
> >
> > Because I read somewhere that swap partition is much more faster
> > than swap file and given that I already have 4GB RAM and then too I
> > was posed with "out of RAM/swap space" like error (which I never
> > anticipated) I wanted a more and faster swap. So dedicated swap
> > partition.
> >
> > --
> > Avinash Sonawane (RootKea)
> > PICT, Pune
> > http://rootkea.wordpress.com
> 
> May be this will justify:
> http://unix.stackexchange.com/a/2211
> 
> -- 
> Avinash Sonawane (RootKea)

Well.... some points (+) to use a swap file:

a) faster creation / delete. Root shell script can do it in one step.
b) don't need to touch your partitions/slices scheme. An error on this step and your server/pc becomes a brick for a while
c) the difference in speed with/to a partition dedicated swap is minimal or null
d) the work, compile gnome3, would be finished yesterday ;) (yes, this is a smile)

some points (-) to use swap file:

a) may have less speed (each write access needs to modify the file metadata and journal if su+j is active)
b) you don't learn how to work with slices and partitions on FreeBSD or repair them

The link you provide, it's an answer from 2010 to a Linux user. Some points would not be applicable to FreeBSD or be outdated.

---   ---
Eduardo Morras <emorrasg@yahoo.es>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20150516212325.6a94acff3ba0ad69ddfcafb0>