Latest memory upgrade virtual Weblinks:
- 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).Hi Everyone, I have a question about the paging file size. If you upgrade your memory from 1 gig to 3 gigs. Should i change the size of my virtual memory?--Charter pipeline is like a box of chocolates, You never know what you are going to get! ..- Re: how to get physical memory address from virtual memory address
Hari wrote: Get it for what purpose? As it is process virtual memory, the physical address may change at any time due to paging activity!- Re: how to get physical memory address from virtual memory address
Hari wrote: You have to do this in the kernel. Firstly, the page obviously has to be nailed down (unswappable). Otherwise it has no fixed physical address. When paged out, it has no address at all, and may get a different physical address each time it is paged out. You can do this using the get_user_pages() kernel function, which will- Re: how to get physical memory address from virtual memory address
This is not a task that should be performed by the user-level process. You can't for example test the memory which is permanently mapped by kernel (which user-level process is not allowed to access). For memory diagnostics, tools specifically crafted for such tasks should be used (such as memtest86).- 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
Really? So what happens when the page is swapped out? It's still a valid virtual address, but there's no valid physical address behind it, until it's swapped back in by a page-fault or the prefetcher. -n
FREE NEWSLETTER
|
| Latest News, and Special Offers on Memory enter your name and email address here: |
|
|
|
|