i'm confused about virtual memory

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
icealys6
Posts: 5
Joined: Wed Aug 06, 2014 9:20 pm

i'm confused about virtual memory

Post by icealys6 »

msdn sais that windows uses the high 1 or 2 gb of VAS for the system. And, that 2 gb of VAS is used by the process. I'm confused, does the system map itself into VAS? what does the system use the high 2gb for?

How does the OS keep track of how much memory its using? does it make a call to the memory controller to find out or does it keep track by some other means?
Last edited by icealys6 on Wed Aug 20, 2014 1:41 pm, edited 1 time in total.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: i'm confused about virtual memory

Post by Combuster »

How would you want to run kernel or application code if it wasn't there?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
alexfru
Member
Member
Posts: 1112
Joined: Tue Mar 04, 2014 5:27 am

Re: i'm confused about virtual memory

Post by alexfru »

icealys6 wrote:How does the OS keep track of how much memory its using?
Same way it keeps track of users, files and other things: data structures. Those pesky lists, stacks, trees and hash tables. Did you expect there to be magic? :)
Post Reply