|| ||Hariprasad Nellitheertha <email@example.com>|
|| ||Linux Kernel Mailing List <firstname.lastname@example.org>,
|| ||[RFC] Obtaining memory information for kexec/kdump|
|| ||Thu, 24 Mar 2005 11:19:20 +0530|
|| ||"Eric W. Biederman" <email@example.com>,
Andrew Morton <firstname.lastname@example.org>|
The topic of creating a common interface across
architectures for obtaining system RAM information has been
discussed on lkml and fastboot for a while now. Kexec needs
information about the entire physical RAM present in the
system while kdump needs information on the memory that the
kernel has booted with.
The /proc/iomem interface is insufficient because its
behavior varies across architectures.
- on i386, /proc/iomem reflects the memory that the system
has booted with. But, it does not reflect memory above 4GB.
- on x86_64, /proc/iomem reflects the entire physical memory
present irrespective of how much memory the kernel has
- on ppc64, /proc/iomem does not reflect system RAM at all.
The patches that follow provide two views in the proc file
system so we have a common mechanism of extracting this
- A map of the entire physical memory present, irrespective
of whether the system has been booted with mem= or memmap=
options. This view comes up as /proc/physmem.
- A map of the memory currently used by the kernel. This map
can be accessed as /proc/activemem. This view will vary from
the previous one depending upon the values provided by mem=
or memmap= options.
Since the patches made use of the "resource" struct to store
and retrieve this information, some modifications were
needed to convert the "start" and "end" fields of struct
resource to u64. The first patch of the series makes this
conversion. The rest of the patches provide the code for the
The patches are for the i386 and x86_64 architectures and
Kindly review and comment on the patches.
Thanks and Regards, Hari
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/