Zram: Difference between revisions
Sorry for reverting, but the Transcendent memory article in its current state is highly confusing to the readers – once untangled, linking it here will be perfectly fine |
Not sure zram is an option in Android 4.4 (or later). I think it's just turned on, but you can optionally tune it (there are apps for that), not sure if apps themselves tune bahavior as it is global affecting all apps, something else is: OEMs building the |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 50: | Line 50: | ||
}}</ref> |
}}</ref> |
||
Google uses zram in [[Chrome OS]] |
Google uses zram in [[Chrome OS]] since 2013 update<!-- what version? or are they just auto-updated anyway? --><ref name="chromestory"> {{cite web|url = http://www.chromestory.com/2013/03/google-enabling-zram-for-chrome-os-by-default/|title = Google is Enabling zram for Chrome OS By Default|accessdate=29 March 2013||last=Larabel |first=Michael |website=chromestory.com |date=28 March 2013}}</ref> and it is also used in [[Android (operating system)|Android]] since version 4.4.<ref>Google, [http://developer.android.com/about/versions/kitkat.html Android KitKat | Android Developers]</ref> Also, [[Lubuntu]] started using zram with version 13.10.<ref>{{cite web|url=http://linuxvillage.org/en/2013/10/next-lubuntu-provided-with-zram-enabled/ |title=Next Lubuntu provided with zram enabled! – LinuxVillage (en) |website=linuxvillage.org |date=17 October 2013|accessdate=10 November 2013}}</ref> {{As of|2012|12}}, Ubuntu has considered enabling zram by default on computers with small amounts of installed RAM.<ref name="phoronix"> {{cite web|url=http://www.phoronix.com/scan.php?page=news_item&px=MTI0NjQ/|title=Ubuntu Linux Considers Greater Usage of zRAM|accessdate=30 October 2013||last=Dinsan |first=Francis |date=8 December 2012}}</ref> |
||
== Other operating systems == |
|||
This code in not usable in [[Windows]] (or [[OS X]]/[[iOS]]), but an August 10, 2015 update to [[Windows 10]] also compresses RAM, with code included the so-called "Fast Ring" of the "[[Windows Insider]] Preview".<ref name="Build 10525">{{cite web|last=Aul |first=Gabe |url=http://blogs.windows.com/bloggingwindows/2015/08/18/announcing-windows-10-insider-preview-build-10525/ |title=Announcing Windows 10 Insider Preview Build 10525 |work=Blogging Windows |publisher=Microsoft |date=August 18, 2015 |accessdate=August 18, 2015}}</ref> OS X also compresses RAM using the [[WKdm algorithm]].<ref>http://arstechnica.com/apple/2013/10/os-x-10-9/17/#compressed-memory</ref><ref>https://www.usenix.org/legacy/publications/library/proceedings/usenix01/cfp/wilson/wilson_html/node23.html</ref> |
|||
== See also == |
== See also == |
Revision as of 12:49, 19 August 2015
Written in | C |
---|---|
Operating system | Linux |
Type | Linux kernel features |
License | GNU General Public License |
Website | kernel |
zram (also called zRAM and, initially, compcache) is a Linux kernel feature that provides a form of virtual memory compression. zram increases performance by avoiding paging to disk and using a compressed block device in RAM instead, inside which paging takes place until it is necessary to use the swap space on a hard disk drive. Since using RAM is an alternative way to provide swapping on RAM, zram allows Linux to make more use of RAM when swapping/paging is required, especially on older computers with less RAM installed.[1][2]
Even when the cost of RAM is low, zram still offers advantages for low-end hardware devices such as embedded devices and netbooks. Such devices usually use flash-based storage that has limited lifespan due to its nature, which is also used to provide swap space. The reduction in swap usage as a result of using zram effectively reduces the amount of wear placed on such flash-based storage, resulting in prolonging its usable life. Also, using zram results in a significantly reduced I/O for Linux systems that require swapping.[3][4]
zram was merged into the Linux kernel mainline in kernel version 3.14, released on 30 March 2014.[5] As of Linux kernel version 3.15, released on 8 June 2014, zram supports LZ4 compression algorithm, while LZO remains as the default compression backend. Changes in kernel 3.15 also provide performance improvements, as well as the ability to switch the compression algorithm via sysfs.[6]
Google uses zram in Chrome OS since 2013 update[7] and it is also used in Android since version 4.4.[8] Also, Lubuntu started using zram with version 13.10.[9] As of December 2012[update], Ubuntu has considered enabling zram by default on computers with small amounts of installed RAM.[10]
Other operating systems
This code in not usable in Windows (or OS X/iOS), but an August 10, 2015 update to Windows 10 also compresses RAM, with code included the so-called "Fast Ring" of the "Windows Insider Preview".[11] OS X also compresses RAM using the WKdm algorithm.[12][13]
See also
References
- ^ "Increased performance in Linux with zram (virtual swap compressed in ram)". webupd8.org. 2 October 2011. Retrieved 8 November 2011.
- ^ "compcache Compressed Caching for Linux". code.google.com. 27 April 2010. Retrieved 11 November 2011.
- ^ "ZRAM Might Finally Be Moved Out Of Linux Staging". Phoronix. 2013-08-14. Retrieved 2014-02-09.
- ^ "zRAM Is Still Hoping For A Promotion". Phoronix. 2013-11-25. Retrieved 2014-02-09.
- ^ "Linux kernel 3.14, Section 1.2. zram: Memory compression mechanism considered stable". kernelnewbies.org. 2014-03-30. Retrieved 2014-04-01.
- ^ "Linux kernel 3.15, Section 1.7. zram: LZ4 compression support, improved performance". kernelnewbies.org. 2014-06-08. Retrieved 2014-06-15.
- ^ Larabel, Michael (28 March 2013). "Google is Enabling zram for Chrome OS By Default". chromestory.com. Retrieved 29 March 2013.
{{cite web}}
: Cite has empty unknown parameter:|1=
(help) - ^ Google, Android KitKat | Android Developers
- ^ "Next Lubuntu provided with zram enabled! – LinuxVillage (en)". linuxvillage.org. 17 October 2013. Retrieved 10 November 2013.
- ^ Dinsan, Francis (8 December 2012). "Ubuntu Linux Considers Greater Usage of zRAM". Retrieved 30 October 2013.
{{cite web}}
: Cite has empty unknown parameter:|1=
(help) - ^ Aul, Gabe (August 18, 2015). "Announcing Windows 10 Insider Preview Build 10525". Blogging Windows. Microsoft. Retrieved August 18, 2015.
- ^ http://arstechnica.com/apple/2013/10/os-x-10-9/17/#compressed-memory
- ^ https://www.usenix.org/legacy/publications/library/proceedings/usenix01/cfp/wilson/wilson_html/node23.html
External links
- Compcache, Compressed Caching for Linux
- Compcache: in-memory compressed swapping, May 26, 2009, LWN.net, by Nitin Gupta
- In-kernel memory compression, April 3, 2013, LWN.net, by Dan Magenheimer
- The Compression Cache: Virtual Memory Compression for Handheld Computers, March 16, 2000, by Michael J. Freedman