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 1SPgFZ-00038X-HD for garchives@archives.gentoo.org; Wed, 02 May 2012 20:34:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 59882E074B; Wed, 2 May 2012 20:33:50 +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 0AECBE068C for ; Wed, 2 May 2012 20:31:52 +0000 (UTC) Received: by lbbgk8 with SMTP id gk8so885538lbb.40 for ; Wed, 02 May 2012 13:31:52 -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=Qt0tlIDgvSMr98PC335RPX23xwPonqwPW+tTQ9y7U9w=; b=JffBd1OAKGFdv7QC+QpeCZoJowwiluo0FJllstsKiKt4rW/q8KMRBHjdcczxkUXTRG /hr39YStoqV8bgvV22melxFG946f51h6EP3ZtrI4Yq89kL41qdXRQtTkbjUkix5/budQ Yr1s6ab3xMZilV1/7Pi/zzDplZfCktnpeuWOk1c1OlSuZUrN5i7rtG39rHG2k6YRHtWX SCsvvkKqeWAIcTihsGyCZJvR6Lp3i0YtKWczep4HG2GlO9H5C1Snsr5EyncSO6G/mAET T3rURBT+44/EMXz2OCIwQHKXrg304aa0M8Xu1dFF4xl6ln5vMGf0xo6r/RMKl3J134bl NkNQ== Received: by 10.112.8.5 with SMTP id n5mr14559296lba.48.1335990711912; Wed, 02 May 2012 13:31:51 -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:31:31 -0700 (PDT) In-Reply-To: References: From: Paul Hartman Date: Wed, 2 May 2012 15:31:31 -0500 X-Google-Sender-Auth: __roO9UVCYapoxAJ4AbQMcyhcS0 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: 699e814a-ef61-4dfa-8d89-03105e78c470 X-Archives-Hash: 4c226ab542264a77380596b30eba1262 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.