From owner-freebsd-questions@freebsd.org Tue Feb 27 08:09:38 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0181F2DF96 for ; Tue, 27 Feb 2018 08:09:38 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 56F4D68063 for ; Tue, 27 Feb 2018 08:09:38 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1519718983; x=1522310983; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info; bh=rXXMSM6j1nRViWyqmQELguJzI5Q2BCbx7iadzdQxcag=; b=Ri6skjDp22k0iIA80Qgjvu5gh7/N6D0ofh3t2YohrMTyDmmKPCQFU+t9yeyISEy+9ID8ADCjwAXGg/9ryasJU2f/RSWJKf27uGJokhL7eSLyWOWRrc5EErsIfFe4llsFThy4HBk63YF2kN1pYVHAn6bTTXqif/CPesW5PxbEIvs= X-Thread-Info: NDI1MC4xMi45MjAwMDAwMDM0YzhjNi5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r4.us-west-2a.aws.in.socketlabs.com (r4.us-west-2a.aws.in.socketlabs.com [54.149.236.199]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 27 Feb 2018 03:09:27 -0500 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.us-west-2a.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Tue, 27 Feb 2018 03:09:22 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90 (FreeBSD)) (envelope-from ) id 1eqaK7-000A5L-JJ for freebsd-questions@freebsd.org; Tue, 27 Feb 2018 08:09:19 +0000 Date: Tue, 27 Feb 2018 08:09:19 +0000 From: Steve O'Hara-Smith 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> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2018 08:09:39 -0000 On 27 Feb 2018 00:23:46 -0500 "John Levine" 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