All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: x86_64: wrong DirectMap kB
@ 2012-10-01 10:46 Jamie Gloudon
  2012-10-01 15:23 ` Hugh Dickins
  0 siblings, 1 reply; 6+ messages in thread
From: Jamie Gloudon @ 2012-10-01 10:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: hughd

Hey,

 Interesting. I am able to reproduce the same problem as you using mem=700M, which shows: 

DirectMap4k:        4096 kB
DirectMap2M:    18446744073709547520 kB

However, it appears to be normal without the boot parameter:

DirectMap4k:        4096 kB
DirectMap2M:    15708160 kB

What does your output looks like with the full amount on 3.6?

Jamie Gloudon

^ permalink raw reply	[flat|nested] 6+ messages in thread
* x86_64: wrong DirectMap kB
@ 2012-10-01  8:37 Hugh Dickins
  2012-10-02 14:19 ` Jan Beulich
  0 siblings, 1 reply; 6+ messages in thread
From: Hugh Dickins @ 2012-10-01  8:37 UTC (permalink / raw)
  To: Jan Beulich; +Cc: Yinghai Lu, Andi Kleen, Ingo Molnar, linux-kernel, x86

Jan,

I noticed yesterday that the DirectMap counts at the bottom of x86_64's
/proc/meminfo are wrong on v3.5 and v3.6.  For example, I happen to have
booted this laptop with mem=700M to run a test, but /proc/meminfo shows

DirectMap4k:        4096 kB
DirectMap2M:    18446744073709547520 kB

Or if I boot with the full amount of physical memory, the DirectMap
numbers do not add up to the full amount of physical memory, as they
used to do on v3.4 and before.

Whilst I've not yet tried reverting it, I strongly suspect your
20167d3421a0 "x86-64: Fix accounting in kernel_physical_mapping_init()".

Either it was a complete misunderstanding, totally bogus, and should
simply be reverted; or perhaps you really noticed something wrong in
your code inspection, but didn't get the fix quite right?

Hugh

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-02 18:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-01 10:46 x86_64: wrong DirectMap kB Jamie Gloudon
2012-10-01 15:23 ` Hugh Dickins
2012-10-01 15:43   ` Jamie Gloudon
  -- strict thread matches above, loose matches on Subject: below --
2012-10-01  8:37 Hugh Dickins
2012-10-02 14:19 ` Jan Beulich
2012-10-02 18:16   ` Hugh Dickins

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.