From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SPgIH-0003UA-9q for garchives@archives.gentoo.org; Wed, 02 May 2012 20:37:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2F3BE0752; Wed, 2 May 2012 20:36:37 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by pigeon.gentoo.org (Postfix) with ESMTP id C9296E0752 for ; Wed, 2 May 2012 20:34:20 +0000 (UTC) Received: by lbbgk8 with SMTP id gk8so887177lbb.40 for ; Wed, 02 May 2012 13:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=MKq/UckUd2T4PFyjF4S2g5dGoe9BapcMxntqsiFYPiM=; b=y1iL7DgGcxTdwZT+1CDQMib3zOYdpFf66+SHdKQz/2vPYjf7PfQp0ILPlvmErlCpyd JSC9kC4BCG//z6zWXe3X9ihFEE3nw3kyxR0c15StWo+ZX3qTP7qt+0FYjsvgVTtAHhoU mimqGKwde2D7jwwtKeUjX+vactg54fUp8iNxDvW7e8mff9Hlu8C2nCWXeUsU/5U6ive5 WFKmmlIZx6x7ayxYxNclSrevimtvY1qZ1XOsXqoIFTOM368kZOoaiCHN0IPEpGafNhqV r2TyGkUXRCMpQDHWRFr6kMag1Q0UW4PrHH5aF+khaBwsxWICemcu0JnlrxU1E3gBXA76 iDDw== Received: by 10.112.8.5 with SMTP id n5mr14562703lba.48.1335990859843; Wed, 02 May 2012 13:34:19 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.112.35.108 with HTTP; Wed, 2 May 2012 13:33:59 -0700 (PDT) In-Reply-To: References: From: Paul Hartman Date: Wed, 2 May 2012 15:33:59 -0500 X-Google-Sender-Auth: 2tY4B_jMOWwWbKW_WzDWMVxunCc Message-ID: Subject: Re: [gentoo-user] Any experience with swapfiles? To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 46cd4d3f-61f8-4b7d-b358-a59bfc911870 X-Archives-Hash: 3e280772af4a56ce187df8c936a0407b On Wed, May 2, 2012 at 3:31 PM, Paul Hartman wrote: > On Wed, May 2, 2012 at 1:53 PM, walt wrote: >> I have two machines with 4GB of ram and I've never seen either one use >> swapspace (yet) so I'm thinking I could delete my swap partitions and >> substitute a much smaller swapfile -- if it's safe. >> >> Any downside to using a swap file instead of a swap partition, maybe >> depending on which filesystem you use, or something? =A0Security holes? >> Any horror stories out there? > > I think a swapfile cannot be used for suspend-to-disk. When creating a > swap file you should take care to ensure it is not fragmented. > Otherwise, performance should be equal between swap partition or swap > file under normal circumstances, as far as I know. And I will add: be sure the swapfile you create is not a sparse file!