Latest memory virtual window Weblinks:
- Re: how to get physical memory address from virtual memory address
Of course, you are wrong. Virtual addresses /only/ have corresponding physical addresses when they are used in a memory reference. Pure "allocation" (malloc()) doesn't result in a memory reference, so no real address is assigned. (FWIW, this is why the OOM killer works the way it does - it kills processes that have allocated memory- 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
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
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- MemUse 0.4 - Memory and swap file monitor
If you want to know the state of your memory usage but don't want to install a complex program, MemUse could well be the solution you need. This program, in the form of a tiny 7KB executable doesn't require any installation and will show up a small display containing information about the physical and virtual memory both available and used. It's extremely simple to use and the only option that you have is to choose whether the window is always on top or not. Features of the program: Tiny executable Shows Memory Information (Physical and Virtual) Stay On Top option (System Menu) Windows XP Theme support Shows Physical percentage value in the title of the window Can show memory usage in KB- 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.
FREE NEWSLETTER
|
| Latest News, and Special Offers on Memory enter your name and email address here: |
|
|
|
|