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

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

问题描述

谁能告诉我虚拟内存交换空间有什么区别?

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 a 32-bit machine the maximum virtual memory accessible 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天全站免登陆