From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kwltv-0008Qi-Fj for garchives@archives.gentoo.org; Sun, 02 Nov 2008 22:58:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C70E0E028C; Sun, 2 Nov 2008 22:58:29 +0000 (UTC) Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.251]) by pigeon.gentoo.org (Postfix) with ESMTP id 953DFE028C for ; Sun, 2 Nov 2008 22:58:29 +0000 (UTC) Received: by rv-out-0708.google.com with SMTP id b17so2274198rvf.46 for ; Sun, 02 Nov 2008 14:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=abe9xdUEzGdfAXB+JAMR1TKS+Ps/M4PeSo4wlkzoXPc=; b=v/9HwWrzNyhm7mZ9ruDQh5q5IcsJ0UIijEjf7UwxI+wto2/WCafuTz2S+OaQ3nCFta rGgFESq1jp5bsZ6uSNxByV7J+Hi92uPeHbRHkHulkKh4iJp4m6QMnM0El2QWzUYtyovy OCWNIQc7DsRyGOt5stQp5vzvJ4fuAN7LeWr9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=fy20Gpp92/0X5WJLpLHrnSMSJ3frfkr3TtbhQw7eO0VyMf2nCBvVxSrkZkYIhIaudS qQcqn0WFdAe99LWIJ8MG6HVkGtDuvGLyOASCA2JgJM8v9xSiUXQsbThTfDInjp5OgNB8 9NPmqslnOGzI1RuDlijw4ObCHyOqUrrJZhIUA= Received: by 10.115.16.14 with SMTP id t14mr12256458wai.55.1225666707839; Sun, 02 Nov 2008 14:58:27 -0800 (PST) Received: by 10.114.145.19 with HTTP; Sun, 2 Nov 2008 14:58:26 -0800 (PST) Message-ID: Date: Sun, 2 Nov 2008 17:58:26 -0500 From: "Joshua Murphy" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Screwed up swap while trying to get hibernate working; help In-Reply-To: <20081101034122.GB7449@waltdnes.org> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081031035456.GA4974@waltdnes.org> <20081101034122.GB7449@waltdnes.org> X-Archives-Salt: 87cfd0da-ea80-4eca-9b9c-0f6895af8714 X-Archives-Hash: a84fcdb9def6918b6cf88692d92f2040 On Fri, Oct 31, 2008 at 10:41 PM, Walter Dnes wrote: > On Fri, Oct 31, 2008 at 01:51:58PM -0400, Joshua Murphy wrote > >> Umm... if you're hibernating to the same swap partition you're using >> when the system's live... I'm pretty sure you can't do that... even if >> everything does manage to fit, having sort out what belongs back in >> ram and what doesn't ... it's not a very sane thing to expect the >> kernel+userspace tools there to do. If I recall from last time I >> considered setting it up on my system, software hibernate needs an >> otherwise unused swap partition that's just a little bigger than the >> amount of physical ram in your system. > > Which begs the next question... howsabout if I turn swap off as part > of the hibernation process? I.e. in /etc/hibernate/hibernate.conf > include the lines... > > OnSuspend 00 swapoff /dev/sda6 > OnResume 00 swapon /dev/sda6 > > or for that matter, what's the worst that can happen if I turn off > swap alltogether, and run out of memory? Is it catastrophic, or merely > inconvenient (additional programs refuse to launch)? > > -- > Walter Dnes Well, aside from pointing toward the place where I was corrected... I *can* answer what happens when you run out of ram... or ram+swap, actually, if you have swap. It can either kill processes of its own accord or simply deny new processes and forks of old processes. The article below has a much better explanation... http://lwn.net/Articles/104179/ -- Poison [BLX] Joshua M. Murphy