Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2018 04:00:15 +0100
From:      Polytropon <freebsd@edvax.de>
To:        The Doctor <doctor@doctor.nl2k.ab.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Compiling Swap space
Message-ID:  <20180227040015.7d2fb579.freebsd@edvax.de>
In-Reply-To: <20180227024634.GA9254@doctor.nl2k.ab.ca>
References:  <20180227024634.GA9254@doctor.nl2k.ab.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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 need contiguous space to
increase the existing swap partition, or at least additional
space to add a second swap partition. You can use gpart for
this task. A second swap partition can then be added via an
/etc/fstab entry, for example:

	/dev/ada0p2  none  swap  sw  0  0	# existing 4 GB
	/dev/ada0p7  none  swap  sw  0  0	# added 64 GB

Dynamically you can manage swap space with "swapon" and
"swapoff"; see "man swapctl" for details.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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