linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave Hansen <haveblue@us.ibm.com>
To: Stone Wang <pwstone@gmail.com>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH][5/8] proc: export mlocked pages info through "/proc/meminfo: Wired"
Date: Tue, 21 Mar 2006 13:43:12 -0800	[thread overview]
Message-ID: <1142977393.10906.204.camel@localhost.localdomain> (raw)
In-Reply-To: <bc56f2f0603200537i7b2492a6p@mail.gmail.com>

On Mon, 2006-03-20 at 08:37 -0500, Stone Wang wrote:
> --- linux-2.6.15.orig/include/linux/mm.h        2006-01-02 22:21:10.000000000 -0500
> +++ linux-2.6.15/include/linux/mm.h     2006-03-07 01:49:12.000000000 -0500
> @@ -218,6 +221,10 @@
>         unsigned long flags;            /* Atomic flags, some possibly
>                                          * updated asynchronously */
>         atomic_t _count;                /* Usage count, see below. */
> +       unsigned short wired_count; /* Count of wirings of the page.
> +                                        * If not zero,the page would be SetPageWired,
> +                                        * and put on Wired list of the zone.
> +                                        */
>         atomic_t _mapcount;             /* Count of ptes mapped in mms,
>                                          * to show when page is mapped
>                                          * & limit reverse map searches. 

We're usually pretty picky about adding stuff to 'struct page'.  It
_just_ fits inside a cacheline on most 32-bit architectures.  

Can this wired_count not be derived at runtime?  It seems like it would
be possible to run through all VMAs mapping the page, and determining
how many of them are VM_LOCKED.  Would that be too slow?

Also, does it matter how many times it is locked, or just that
_somebody_ has it locked?  

-- Dave

--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2006-03-21 21:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20 13:37 Stone Wang
2006-03-21 12:21 ` Nick Piggin
2006-03-21 15:33   ` Stone Wang
2006-03-21 19:43     ` Arjan van de Ven
2006-03-22  0:22     ` Nick Piggin
2006-03-22  5:37       ` Stone Wang
2006-03-22  7:23         ` Nick Piggin
2006-03-22  9:04         ` Arjan van de Ven
2006-03-24 16:34       ` Rik van Riel
2006-03-24 16:38         ` Nick Piggin
2006-03-24 18:19           ` Rik van Riel
2006-03-24 18:25             ` Nick Piggin
2006-03-21 21:43 ` Dave Hansen [this message]
2006-03-22  6:02   ` Stone Wang

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=1142977393.10906.204.camel@localhost.localdomain \
    --to=haveblue@us.ibm.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=pwstone@gmail.com \
    /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