linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Mike Fedyk <mfedyk@matchmail.com>
To: linux-mm@kvack.org
Subject: Re: weird memshared value
Date: Wed, 3 Oct 2001 14:30:38 -0700	[thread overview]
Message-ID: <20011003143038.B7266@mikef-linux.matchmail.com> (raw)
In-Reply-To: <3BBB7F5F.9040806@brsat.com.br>

On Wed, Oct 03, 2001 at 06:13:03PM -0300, Roberto Orenstein wrote:
> Hi Cristoph,
> 
> Guess found a bug in the MemShared value that shows up in /proc/meminfo.
> At least it's pretty weird :)
> 
> After a cp kernel_tree new_tree, together with make bzImage, got the 
> following number:
> 
> MemShared:    4294966488 kB
> 
> My system has only 128MB. P-III, kernel 2.4.9-ac16.
> It doesn't harm, but it's way far from my system mem.
> 
> Any idea?
> 

Here you go:

Date: Mon, 1 Oct 2001 22:17:26 +0100 (BST)
From: Hugh Dickins <hugh@veritas.com>
X-Sender: hugh@localhost.localdomain
To: Christoph Rohland <cr@sap.com>
cc: Mike Fedyk <mfedyk@matchmail.com>, Alan Cox <alan@lxorguk.ukuu.org.uk>,
   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: <m34rpj3lsa.fsf@linux.local>
Message-ID: <Pine.LNX.4.21.0110012142400.1098-100000@localhost.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Status: RO
Content-Length: 778
Lines: 25

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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  parent reply	other threads:[~2001-10-03 21:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-03 21:13 Roberto Orenstein
2001-10-03 21:27 ` Mike Fedyk
2001-10-03 21:30 ` Mike Fedyk [this message]
     [not found]   ` <3BBB921D.3080805@brsat.com.br>
2001-10-03 22:37     ` Mike Fedyk
     [not found]       ` <3BBB9F01.1080200@brsat.com.br>
2001-10-03 23:33         ` Roberto Orenstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011003143038.B7266@mikef-linux.matchmail.com \
    --to=mfedyk@matchmail.com \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox