Re: Memory Hardware checker on Linux (userlevel) 2.6



Geronimo W. Christ Esq wrote:
Bernhard Müller wrote:

Is using /dev/mem a viable choice?


No, because you don't know where in physical memory the kernel will have allocated it's pages, or what other memory it is using for caches or buffers.

This task is really not supposed to be done under the OS. Can't you do it in your bootloader instead ?

It should be part of a test suite that also includes several other functions (IO & communications, running on linux) and gives a summary report at the end.
I'd like to do all that in a single run, if possible.

--
Bernhard Mueller
bernhard dot mueller at
.



Relevant Pages

  • Re: Virtual memory - user space kernel space
    ... In the old days, all physical memory was mapped 1:1 to virtual addresses 0xc0000000 upwards, so the kernel could access everything directly. ... If you had more than 1GB of physical memory, you could recompile the kernel to start at 0x80000000 or even 0x40000000, to accomodate up to 2 or 3 GB of physical memory. ... Linux uses swap space in addition to physical memory, so having 1GB of physical memory and 2GB of swap space would allow you to use 3GB of virtual memory, distributed amongst the kernel and user processes. ... one for kernel and one for the currently active user process, the kernel's low 786432 entries are identical to the user process' low 786432 entries. ...
    (comp.os.linux.development.system)
  • [PATCH 7 of 8] x86: page.h: move things back to their own files
    ... Change your config file and compile the kernel ... * If you want more physical memory than this then see the CONFIG_HIGHMEM4G ... -static inline void clear_page ...
    (Linux-Kernel)
  • Re: Allocating kernel memory
    ... The kernel have a disk cache, ... > memory available within the kernel does not imply I do not understand ... >> to allocate high memory pages and map them into kernel ... > So you are saying that the kernel does not map all of physical memory ...
    (comp.os.linux.development.system)
  • Re: Where are defaults for kernel variables?
    ... Dag-Erling Smørgrav wrote: ... >>the problem is that the majority of kernel developers doesn't feel ... are _generally_ computed at boot time is certainly an exaggeration. ... nothing to do with physical memory size, have fixed defaults and have to ...
    (freebsd-stable)
  • Re: [Lhms-devel] RE: memory hotremove prototype, take 3
    ... >> assume physical memory address is not changed. ... >> I suppose that there are many case which the kernel and device drivers ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)