[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081027175547.GE3046@elte.hu>
Date: Mon, 27 Oct 2008 18:55:47 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Suresh Siddha <suresh.b.siddha@...el.com>
Cc: Yinghai Lu <yinghai@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>,
Jeremy Fitzhardinge <jeremy@...p.org>,
Andrew Morton <akpm@...ux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] x86: keep the page count correct
* Suresh Siddha <suresh.b.siddha@...el.com> wrote:
> On Sat, Oct 25, 2008 at 10:58:21PM -0700, Yinghai Lu wrote:
> >
> > impact: get correct page count for 2M and 1G...
> >
> > found page count in /proc/meminfo is nor correct on 1G system in VirtualBox 2.0.4
> >
> > # cat /proc/meminfo
> > MemTotal: 1017508 kB
> > MemFree: 822700 kB
> > Buffers: 1456 kB
> > Cached: 26632 kB
> > SwapCached: 0 kB
> > ...
> > Hugepagesize: 2048 kB
> > DirectMap4k: 4032 kB
> > DirectMap2M: 18446744073709549568 kB
> >
> > with this patch get:
> > ...
> > DirectMap4k: 4032 kB
> > DirectMap2M: 1044480 kB
> >
> > which is consistent to kernel_page_tables
> > ---[ Low Kernel Mapping ]---
> > 0xffff880000000000-0xffff880000001000 4K RW PCD GLB x pte
> > 0xffff880000001000-0xffff88000009f000 632K RW GLB x pte
> > 0xffff88000009f000-0xffff8800000a0000 4K RW PCD GLB x pte
> > 0xffff8800000a0000-0xffff880000200000 1408K RW GLB x pte
> > 0xffff880000200000-0xffff88003fe00000 1020M RW PSE GLB x pmd
> > 0xffff88003fe00000-0xffff88003fff0000 1984K RW GLB NX pte
> > 0xffff88003fff0000-0xffff880040000000 64K pte
> > 0xffff880040000000-0xffff888000000000 511G pud
> > 0xffff888000000000-0xffffc20000000000 58880G pgd
> >
> > Signed-off-by: Yinghai Lu <yinghai@...nel.org>
>
> Acked-by: Suresh Siddha <suresh.b.siddha@...el.com>
applied to tip/x86/urgent, thanks guys!
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists