Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262297AbUCHJOT (ORCPT ); Mon, 8 Mar 2004 04:14:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262328AbUCHJOT (ORCPT ); Mon, 8 Mar 2004 04:14:19 -0500 Received: from gprs40-191.eurotel.cz ([160.218.40.191]:57766 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S262297AbUCHJOR (ORCPT ); Mon, 8 Mar 2004 04:14:17 -0500 Date: Mon, 8 Mar 2004 10:13:24 +0100 From: Pavel Machek To: Andy Isaacson Cc: linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: Some highmem pages still in use after shrink_all_memory()? Message-ID: <20040308091324.GA209@elf.ucw.cz> References: <20040307144921.GA189@elf.ucw.cz> <20040307164052.0c8a212b.akpm@osdl.org> <20040308063639.GA20793@hexapodia.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040308063639.GA20793@hexapodia.org> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1279 Lines: 29 On Po 08-03-04 00:36:39, Andy Isaacson wrote: > On Sun, Mar 07, 2004 at 04:40:52PM -0800, Andrew Morton wrote: > > Pavel Machek wrote: > > > For swsusp, I need to free as much memory as possible. Well, and it > > > would be great if no highmem pages remained, so that I would not have > > > to deal with that. Is that possible? > > > > No, it isn't. There are pagetable pages and mlocked user pages which we > > cannot do anything with. > > > > We could perhaps swap out the mlocked pages anyway if a suspend is in > > progress, but the highmem pagetable pages are not presently reclaimed > > by the VM. > > Note that there are some applications for which it is a *bug* if an > mlocked page gets written out to magnetic media. (gpg, for example.) Well, but that can not be solved. During suspend-to-disk, data (by definition) go to magnetic media. We could block suspend, and we could kill such application.... Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/