Latest memory setting virtual xp Weblinks:
- 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
Let's see if this is true. I have a machine with 1GB of physical memory: $ free total used free shared buffers cached Mem: 1035736 996412 39324 0 252808 368224 -/+ buffers/cache: 375380 660356 Swap: 12937128 23420 12913708- 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- 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- 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 isModify a c prog about a virtual memory manager ... (Budget $20-$100, Required Skills: C C, Programming)Summary: I have a notebook with the new Intel duo chip running XP MCE SP-2 with 2G ... ram and a 120 HD. ... My HD is partitioned into a system partition and a data partition. ... Should virtual memory be placed on both partitions or is placement on one ...- 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
FREE NEWSLETTER
|
| Latest News, and Special Offers on Memory enter your name and email address here: |
|
|
|
|