Latest change memory virtual Weblinks:
- how to get physical memory address from virtual memory address
Hi , I am using Linux 2.4.20 Kernel. I am runing an application which will malloc and returns a virtual memory address. I need to get the physical memory address for that virtual memory address. How can I get that? Thanks in advance, -Hari- Phase change memory device
A phase change memory device, comprising a phase change memory device; a semiconductor substrate; a MOS transistor disposed at each intersection of a plurality of word lines and a plurality of bit lines arranged in a matrix form; a plurality of phase change memory elements for storing data of a...- Re: how to get physical memory address from virtual memory address
Hi all, Thanks for the response from you all. My aim is to execute SDRAM diagnostics code to find which part of SDRAM chip is failed. So in code, I am using malloc to allocte available free memory and then locking the memory using mlock. I think once the mlock is done the pages what ever is allocted during malloc will be in the- Re: how to get physical memory address from virtual memory address
Correct, if by "valid" you mean "mapped and present" so that touching the page doesn't give rise to an exception. However, there can be mapped pages which are not present. Change or disappear temporarily (become not present).- Re: how to get physical memory address from virtual memory address
The virtual address allocation *does not* allocate physical pages to the allocated block - you only get a slice of the address space of your process. The virtual address is connected (maybe temporarily) to a physical page when it's accessed and a page fault handler decides to give the physical addresses.- Re: how to get physical memory address from virtual memory address
What?? This is entirely incorrect. EVERY valid virtual address has an associated physical address. In the case of malloc-ed memory, that physical address will be in physical memory. Addressing the OP, while you are in user mode, the physical address can change at any time. The only reliable way to get the physical address is
FREE NEWSLETTER
|
| Latest News, and Special Offers on Memory enter your name and email address here: |
|
|
|
|