Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 1 Oct 2001 17:16:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 1 Oct 2001 17:16:27 -0400 Received: from [204.177.156.37] ([204.177.156.37]:7103 "EHLO bacchus-int.veritas.com") by vger.kernel.org with ESMTP id ; Mon, 1 Oct 2001 17:16:13 -0400 Date: Mon, 1 Oct 2001 22:17:26 +0100 (BST) From: Hugh Dickins To: Christoph Rohland cc: Mike Fedyk , Alan Cox , linux-kernel@vger.kernel.org Subject: [PATCH] Re: 4GB MemShared, Cached bigger (and growing) than MemTotal (64MB) on 2.4.9-ac18 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 1 Oct 2001, Christoph Rohland wrote: > On Sun, 30 Sep 2001, Mike Fedyk wrote: > > > > After this happened, I saw MemShared go up to about 4GB, and Cached > > started growing, getting even bigger than ram! > > Apparently the shmem accounting is screwed. (Hugh does something ring > at your side?) I've now looked, and it's obviously my error in -ac shmem_writepage: patch below against 2.4.10-ac2, would apply equally to 2.4.9-ac16 on. Hugh --- 2.4.10-ac2/mm/shmem.c Mon Oct 1 21:36:28 2001 +++ linux/mm/shmem.c Mon Oct 1 21:41:00 2001 @@ -462,6 +462,7 @@ swap_list_unlock(); /* Add it back to the page cache */ add_to_page_cache_locked(page, mapping, index); + atomic_inc(&shmem_nrpages); activate_page(page); SetPageDirty(page); error = -ENOMEM; - 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/