public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] A simple way to determine if the kernel needs HIGHMEM64G to be able to use all the installed memory
@ 2009-03-07 11:04 Ozan Çağlayan
  2009-03-07 19:30 ` Alexey Dobriyan
  0 siblings, 1 reply; 12+ messages in thread
From: Ozan Çağlayan @ 2009-03-07 11:04 UTC (permalink / raw)
  To: linux-kernel

Hi,

When the installed memory size is >= 4GB, kernel drops some messages like

Warning only 4GB of memory will be used
You have to enable HIGHMEM64G.

I checked that the message comes from arch/x86/init_32.c after checking
max_pfn.

I'm quite dumb about the internal structures of the kernel but, wouldn't it
be possible to create a simple read-only sysfs object like kexec_loaded
that will contain "1" when the kernel needs HIGHMEM64G to see all of the memory
and "0" when it doesn't?

I think that it would be a nice facility for distribution kernels to detect
the need for a PAE enabled 32-bit kernel by just reading some /sys/.. entry.

Thanks,

-- 

Ozan Çağlayan
<ozan_at_pardus.org.tr>

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

end of thread, other threads:[~2009-03-11 12:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07 11:04 [RFC] A simple way to determine if the kernel needs HIGHMEM64G to be able to use all the installed memory Ozan Çağlayan
2009-03-07 19:30 ` Alexey Dobriyan
2009-03-07 19:43   ` Ozan Çağlayan
2009-03-08 20:20     ` Andi Kleen
2009-03-09 13:42       ` [PATCH] x86: suggest running a 64bit kernel on LM capable machines with plenty memory Peter Zijlstra
2009-03-09 19:15         ` Andi Kleen
2009-03-10  9:37           ` Peter Zijlstra
2009-03-10 12:50             ` Andi Kleen
2009-03-10 13:21             ` Arjan van de Ven
2009-03-11 12:01               ` Peter Zijlstra
2009-03-11 12:38                 ` Andi Kleen
2009-03-11 11:47             ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox