Date: Wed, 11 Dec 2019 13:01:06 -0600 From: CyberLeo Kitsana <cyberleo@cyberleo.net> To: freebsd-questions@freebsd.org Subject: Re: Cross-compiling with go for arm on amd64. Possible? Message-ID: <ef2fafd2-4d44-1884-b7a2-8ff1bd622e17@cyberleo.net> In-Reply-To: <20191210152323.GA47078@thismonkey.com> References: <mailman.73.1575979201.5391.freebsd-questions@freebsd.org> <20191210152323.GA47078@thismonkey.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/10/19 9:23 AM, Scott Aitken wrote: <snip>> rather than the dd I did: > # truncate -s 512M /var/swapfile > # ls -als /var/swapfile > 96 -rw-r--r-- 1 root wheel 536870912 Dec 11 02:08 /var/swapfile > > The fstab info was very helpful, thanks. I've now got a 512M swapfile. Don't use truncate(1) to create swapfiles. On filesystems that support sparse files, it will not allocate any space on the underlying filesystem. This can lead to a deadlock if the kernel attempts to swap and the filesystem runs out of space to allocate. It can also lead to extreme fragmentation, but that's not much of an issue on flash storage. -- Fuzzy love, -CyberLeo <CyberLeo@CyberLeo.Net> Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Element9 Communications http://www.Element9.net Furry Peace! - http://www.fur.com/peace/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef2fafd2-4d44-1884-b7a2-8ff1bd622e17>