Latest limited memory virtual Weblinks:
- 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
Unless of course the memory is swapped out at the moment, which is entirely possible after a fresh malloc() of a big chunk of memory. Correct- Re: how to get physical memory address from virtual memory address
Not true. When the respective page is swapped out, there is no physical address associated to given virtual address.- Re: how to get physical memory address from virtual memory address
Hari wrote: There isn't one. You haven't allocated any physical memory, so the kernel doesn't give you any. DS- 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- Re: how to get physical memory address from virtual memory address
So what happens if you 'malloc' more memory than is physically present? What happens if three programs each 'malloc' a block that is equal in size to half of physical memory? What would be the point of swap if this were the case? Yes, it can change at any time. It can even change such that there is not one. And because Linux is demand paged, when you first allocate or- Method, apparatus and system for dynamically reassigning memory from one virtual machine to another
A method, apparatus and system enable a virtual machine manager (VMM) to dynamically reassign memory from one virtual machine (VM) to another. The VMM may generate a message to the VM to which the memory is currently assigned and inform the device that the memory is shutting down. The current...
FREE NEWSLETTER
|
| Latest News, and Special Offers on Memory enter your name and email address here: |
|
|
|
|