Zram: Difference between revisions
note zRAM in android kitkat |
ahem |
||
Line 12: | Line 12: | ||
== Use == |
== Use == |
||
Google uses zRAM in [[Chrome OS]] and [[Android]] 4.4.<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 |publisher = Chrome Story |date = 28 March 2013}}</ref>Google, [http://developer.android.com/about/versions/kitkat.html Android KitKat | Android Developers]<ref> |
Google uses zRAM in [[Chrome OS]] and [[Android]] 4.4.<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 |publisher = Chrome Story |date = 28 March 2013}}</ref>Google, [http://developer.android.com/about/versions/kitkat.html Android KitKat | Android Developers]</ref> |
||
Ubuntu is considering enabling zRAM by default on machines with less RAM installed.<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> |
Ubuntu is considering enabling zRAM by default on machines with less RAM installed.<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> |
Revision as of 23:26, 31 October 2013
zram is a module of the Linux kernel, previously called "compcache". zram increases performance by avoiding paging on disk and instead uses a compressed block device in RAM in which paging takes place until it is necessary to use the swap space on the hard disk drive. Since using RAM is faster than using disks, 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 though the cost of RAM hardware is relatively low this feature still offers advantages for netbooks and other lower-powered laptops, virtualization and in the case of embedded devices, especially those that use flash memories that have a limited lifespan, dependent on write-use and thus wear out quickly when used as a swap device.[2]
Efficiency
According to the Gentoo Linux wiki, zRAM typically averages a 3:1 ratio - that is 3Gb of virtual RAM into only 1Gb of physical memory.[citation needed]
Use
Google uses zRAM in Chrome OS and Android 4.4.[3]Google, Android KitKat | Android Developers</ref>
Ubuntu is considering enabling zRAM by default on machines with less RAM installed.[4]
References
- ^ a b "Increased performance in Linux with zram (virtual swap compressed in ram)". Web Upd8. 2 October 2011. Retrieved 8 November 2011.
{{cite news}}
:|first=
missing|last=
(help) - ^ a b Google Code (27 April 2010). "compcache Compressed Caching for Linux". Retrieved 11 November 2011.
{{cite web}}
:|last=
has generic name (help) - ^ Larabel, Michael (28 March 2013). "Google is Enabling zRAM for Chrome OS By Default". Chrome Story. Retrieved 29 March 2013.
{{cite web}}
: Cite has empty unknown parameter:|1=
(help) - ^ 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)
External links
- Compcache, Compressed Caching for Linux
- Nitin Gupta, Compcache: in-memory compressed swapping, LWN, May 26, 2009
- Dan Magenheimer, In-kernel memory compression, LWN, April 3, 2013