From owner-freebsd-questions@freebsd.org Tue Feb 27 13:16:10 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 7CE5BF249EF for ; Tue, 27 Feb 2018 13:16:10 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F039575A2A for ; Tue, 27 Feb 2018 13:16:09 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wm0-x244.google.com with SMTP id z9so23595493wmb.3 for ; Tue, 27 Feb 2018 05:16:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5vgUFuif4ff6DLrrHskP2ZIv4xA9ovG5xZsdK/Dsbqs=; b=ed9bnXZsu1ssm5N0qr217wEqNhaWhwuAIDIiyx1tOnMjU+R/hdB8GKCRWUljnofmt3 j1BF+ey/JjAO7oXkZEfh6YbPpEATVciBjE4tOBVFhesHthYz62foUa9MnMT0VsRFSsa6 nHL9MjVKrLkxWeOrinDWQGu90AgZS5oCWgYQFjO/4gxBjDvzHDVGzNRTv+nxm5+woOQk zlplDWOn7N+zG99hifS12iiS2hAI0IBB0v+SWEBzjI0n5VeX+X0m5R4PzrOH8MM5Yqcf cVqafBoH1gbiaOGXkfyDXzHl3GVhdxQTwLgVfmSNKT13a3tObcVRNok1XkfceUCqAO41 saKw== X-Gm-Message-State: APf1xPCFGTG4pZ+74z1oQkUQ54y+7TelWcMafRNXPfxoQ0PMjUZCBPK+ PF6WESLT7FY5RWD67EXfIagqRA== X-Google-Smtp-Source: AG47ELuznluOsjf4DOXz1fwiSUOyguvgGrAWS0Xbhof4kAJoAlkOZ/SxYcWd1lCrvA9zfUs5nCOksA== X-Received: by 10.80.196.4 with SMTP id v4mr10204050edf.293.1519737368586; Tue, 27 Feb 2018 05:16:08 -0800 (PST) Received: from gumby.homeunix.com ([185.128.42.30]) by smtp.gmail.com with ESMTPSA id q11sm9511421edj.64.2018.02.27.05.16.06 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Feb 2018 05:16:07 -0800 (PST) Date: Tue, 27 Feb 2018 13:16:01 +0000 From: RW To: freebsd-questions@freebsd.org Subject: Re: Compiling Swap space Message-ID: <20180227131601.10253820@gumby.homeunix.com> In-Reply-To: <20180227080919.7a5578283960bb325b9b3d86@sohara.org> References: <20180227040015.7d2fb579.freebsd@edvax.de> <20180227052346.B49171D9E572@ary.qy> <20180227080919.7a5578283960bb325b9b3d86@sohara.org> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) 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 13:16:10 -0000 On Tue, 27 Feb 2018 08:09:19 +0000 Steve O'Hara-Smith wrote: > On 27 Feb 2018 00:23:46 -0500 > "John Levine" wrote: > > 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 I tried that and got: # swapon swapfile swapon: swapfile: Block device required The word "Block" is presumably out of date, but it does seem to be saying a device is needed. This was on 11.1.