Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 9 Jul 2001 07:27:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 9 Jul 2001 07:27:45 -0400 Received: from smtpde02.sap-ag.de ([194.39.131.53]:33179 "EHLO smtpde02.sap-ag.de") by vger.kernel.org with ESMTP id ; Mon, 9 Jul 2001 07:27:29 -0400 From: Christoph Rohland To: Mike Galbraith Cc: Rik van Riel , Linus Torvalds , Jeff Garzik , Daniel Phillips , linux-kernel Subject: Re: VM in 2.4.7-pre hurts... In-Reply-To: Organisation: SAP LinuxLab Date: 09 Jul 2001 13:25:31 +0200 In-Reply-To: Message-ID: Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SAP: out X-SAP: out X-SAP: out X-SAP: out X-SAP: out X-SAP: out Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On Mon, 9 Jul 2001, Mike Galbraith wrote: >> But still this may be a hint. You are not running out of swap, >> aren't you? > > I'm running oom whether I have swap enabled or not. The inactive > dirty list starts growing forever, until it's full of (aparantly) > dirty pages and I'm utterly oom. > > With swap enabled, I keep allocating until there's nothing left. > Actual space usage is roughly 30mb (of 256mb), but when you can't > allocate anymore you're toast too, with the same dirt buildup. AFAIU you are running oom without the oom killer kicking in. That's reasonable with tmpfs: the tmpfs pages are accounted to the page cache, but are not freeable if there is no free swap space. So the vm tries to free memory without success. (The same should be true for ramfs but exaggerated by the fact that ramfs can never free the page) In the -ac series I introduced separate accounting for shmem pages and do reduce the page cache size by this count for meminfo and vm_enough_memory. Perhaps the oom coding needs also some knowledge about this? Greetings Christoph - 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/