“虚拟内存"与“虚拟内存"之间有什么区别?和“交换空间"? [英] What's the difference between "virtual memory" and "swap space"?

查看:318
本文介绍了“虚拟内存"与“虚拟内存"之间有什么区别?和“交换空间"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我虚拟内存交换空间有什么区别吗?

Can any one please make me clear what is the difference between virtual memory and swap space?

为什么我们说对于32位计算机,最大虚拟内存访问仅为4 GB?

And why do we say that for 32-bit machine maximum virtual memory access is 4 GB only?

推荐答案

简而言之,虚拟内存是运行进程可以使用的RAM和磁盘空间的组合.

Simply put, virtual memory is a combination of RAM and disk space that running processes can use.

交换空间是虚拟内存在硬盘上的部分,在RAM满时使用.

Swap space is the portion of virtual memory that is on the hard disk, used when RAM is full.

至于为什么将32位CPU限制为4GB虚拟内存,则可以很好地解决

As for why 32bit CPU is limited to 4gb virtual memory, it's addressed well here:

根据定义,32位处理器使用 32位参考位置 内存的每个字节. 2 ^ 32 = 4.2 十亿,这意味着一个内存地址 32位长只能指 42亿个唯一位置(即4 GB).

By definition, a 32-bit processor uses 32 bits to refer to the location of each byte of memory. 2^32 = 4.2 billion, which means a memory address that's 32 bits long can only refer to 4.2 billion unique locations (i.e. 4 GB).

这篇关于“虚拟内存"与“虚拟内存"之间有什么区别?和“交换空间"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆