Virtual Memory Space

天大地大妈咪最大 提交于 2019-12-23 14:55:20

问题


What does the virtual memory space size depend on? Does it depend on the RAM or on the architecture or something else.


回答1:


Basically it depends on the architecture (32bit 64bit and so...). This is a very simplistic explanation of things, but so called "architecture" limits size of the virtual address space. For example, 32bit architecture will enable to address 2^31 memory addresses.

The size of the RAM will limit the amount of physical memory that can be used, but not the virtual address space. (potentially the Hard-drive can be used to extend the available physical memory)

Anyway I recommend to read the wiki page on virtual memory




回答2:


Very simply, virtual memory is just a way of letting your software use more memory addresses than there is actual physical memory, such that when the data being access isn't already hosted in physical memory it's transparently read in from disk, and when some more physical memory is needed to do things like that some of the current content of physical memory is temporarily written or "swapped" out to disk (e.g. the least-recently used memory). In other words, some of the physical memory becomes a kind of cache for a larger virtual memory space including hard disk.



来源:https://stackoverflow.com/questions/11810171/virtual-memory-space

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!