Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to map virtual memory to physical memory. I need to be able to do this in order to write a memory diagnostic program. The linux version is 2.6.36.4

share|improve this question

closed as not a real question by Wesley, Michael Hampton, Dave M, Khaled, mgorven Mar 20 '13 at 16:34

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Not reliably. The mapping can change at any time. By the time you have the information, it can already be obsolete. –  David Schwartz Mar 19 '13 at 23:51

1 Answer 1

No.

If you are writing a memory diagnostic routine you really need to stick your fingers into the kernel space to do it - it's pretty much impossible to do in user space (the VM space is relocatable and can be anywhere in physical memory - or not in physical memory at all).

For that matter there's no reason for you to write a memory diagnostic program - this is a solved problem and the tools that have been written (and tested over many years) will be superior to your first-attempt solution, so you should use them.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.