For faster navigation, this Iframe is preloading the Wikiwand page for zram.

zram

zram
编程语言C
操作系统Linux
类型Linux核心功能
许可协议GNU通用公共许可证
网站kernel.org

zram(也称为zRAM,先前称为compcache)是Linux核心的一项功能,可提供虚拟内存压缩。zram通过在RAM内的压缩块设备上分页,直到必须使用硬盘上的交换空间,以避免在磁盘上进行分页,从而提高性能。由于zram可以用内存替代硬盘为系统提供交换空间的功能,zram可以在需要交换/分页时让Linux更好利用RAM,在物理内存较少的旧电脑上尤其如此[1][2]

即使RAM的价格相对较低(截至2014年2月 (2014-02)),zram仍有利于嵌入式设备上网本和其它相似的低端硬件设备。这些设备通常使用固态存储,它们由于其固有性质而寿命有限,因而避免以其提供交换空间可防止其迅速磨损。此外,使用zRAM还可显著降低Linux系统用于交换的I/O[3][4]

zram于3.14合并入Linux内核主线,并于2014年3月30日发布[5]。截至发布于2014年6月8日的Linux内核3.15,zram可支持LZ4压缩算法,而LZO仍然作为默认的压缩后端。内核3.15中的修改还改进了性能,以及经由sysfs切换压缩算法的能力[6]

Google在Chrome OS中使用zram,它也成为了Android 4.4设备的一个选项[7][8]。此外,Lubuntu于13.10开始使用zram[9]。截至2012年12月 (2012-12),Ubuntu考虑为小内存的计算机默认启用zram[10]

参见

[编辑]

参考

[编辑]
  1. ^ Increased performance in Linux with zram (virtual swap compressed in ram). webupd8.org. 2 October 2011 [8 November 2011]. (原始内容存档于2022-02-14). 
  2. ^ compcache Compressed Caching for Linux. code.google.com. 27 April 2010 [11 November 2011]. (原始内容存档于2013-01-17). 
  3. ^ ZRAM Might Finally Be Moved Out Of Linux Staging. Phoronix. 2013-08-14 [2014-02-09]. (原始内容存档于2021-01-26). 
  4. ^ zRAM Is Still Hoping For A Promotion. Phoronix. 2013-11-25 [2014-02-09]. (原始内容存档于2021-03-09). 
  5. ^ Linux kernel 3.14, Section 1.2. zram: Memory compression mechanism considered stable. kernelnewbies.org. 2014-03-30 [2014-04-01]. (原始内容存档于2021-01-15). 
  6. ^ Linux kernel 3.15, Section 1.7. zram: LZ4 compression support, improved performance. kernelnewbies.org. 2014-06-08 [2014-06-15]. (原始内容存档于2018-06-11). 
  7. ^ Larabel, Michael. Google is Enabling zram for Chrome OS By Default. chromestory.com. 28 March 2013 [29 March 2013]. (原始内容存档于2019-11-30). 
  8. ^ Google, Android KitKat | Android Developers页面存档备份,存于互联网档案馆
  9. ^ Next Lubuntu provided with zram enabled! – LinuxVillage (en). linuxvillage.org. 17 October 2013 [10 November 2013]. (原始内容存档于2013年11月10日). 
  10. ^ Dinsan, Francis. Ubuntu Linux Considers Greater Usage of zRAM. 8 December 2012 [30 October 2013]. (原始内容存档于2018-08-30). 

外部链接

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
zram
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?