Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 08:09:19 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Compiling Swap space
Message-ID:  <20180227080919.7a5578283960bb325b9b3d86@sohara.org>
In-Reply-To: <20180227052346.B49171D9E572@ary.qy>
References:  <20180227040015.7d2fb579.freebsd@edvax.de> <20180227052346.B49171D9E572@ary.qy>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27 Feb 2018 00:23:46 -0500
"John Levine" <johnl@iecc.com> wrote:

> In article <20180227040015.7d2fb579.freebsd@edvax.de> you write:
> >On Mon, 26 Feb 2018 19:46:34 -0700, The Doctor wrote:
> >> I notice the default swap is 4G.  
> >> 
> >> How can that be increased to 32G or 64G?
> >
> >By repartitioning your drive.
> 
> You can also use mdconfig to make an md device backed by a file and
> swap on that.  That's slower than a swap partition since it has to

	You don't need mdconfig, just make a large file and use swapon like
this:

# dd if=/dev/zero of=swapfile bs=1m count=1024
# swapon swapfile

> find the blocks using the filesystem, but you don't have to
> repartition, just make a big file for it to swap to.

	All of these disadvantages apply.

-- 
Steve O'Hara-Smith <steve@sohara.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180227080919.7a5578283960bb325b9b3d86>