From owner-freebsd-questions@freebsd.org Wed Dec 11 19:01:20 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6832D1DE561 for ; Wed, 11 Dec 2019 19:01:20 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from mail.cyberleo.net (paka.cyberleo.net [216.226.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47Y5qy1TxTz4WHN for ; Wed, 11 Dec 2019 19:01:16 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from [172.16.44.4] (vitani.den.cyberleo.net [216.80.73.130]) by mail.cyberleo.net (Postfix) with ESMTPSA id 1067A8F644; Wed, 11 Dec 2019 14:01:06 -0500 (EST) Subject: Re: Cross-compiling with go for arm on amd64. Possible? To: freebsd-questions@freebsd.org References: <20191210152323.GA47078@thismonkey.com> From: CyberLeo Kitsana Message-ID: Date: Wed, 11 Dec 2019 13:01:06 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191210152323.GA47078@thismonkey.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47Y5qy1TxTz4WHN X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=cyberleo.net; spf=pass (mx1.freebsd.org: domain of cyberleo@cyberleo.net designates 216.226.128.180 as permitted sender) smtp.mailfrom=cyberleo@cyberleo.net X-Spamd-Result: default: False [-1.81 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:216.226.128.180]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; DMARC_POLICY_ALLOW(-0.50)[cyberleo.net,none]; IP_SCORE(-0.01)[country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:13706, ipnet:216.226.128.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2019 19:01:20 -0000 On 12/10/19 9:23 AM, Scott Aitken wrote: > 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 Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Element9 Communications http://www.Element9.net Furry Peace! - http://www.fur.com/peace/