WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LWN article on the various memory compression methods  (Read 5687 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
LWN article on the various memory compression methods
« on: April 11, 2013, 01:26:52 PM »
http://lwn.net/Articles/545244/

It details the differences between zram, zcache and zswap.
The only barriers that can stop you are the ones you create yourself.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: LWN article on the various memory compression methods
« Reply #1 on: April 11, 2013, 04:15:08 PM »
Very interesting, thanks

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: LWN article on the various memory compression methods
« Reply #2 on: April 12, 2013, 09:23:21 AM »
How it all relates to TC:

We use zram by default, and ship zcache so it can be configured by the user if needed.

The name of the bootcode, nozswap, comes from back when zram was called compcache.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: LWN article on the various memory compression methods
« Reply #3 on: July 20, 2013, 02:39:33 AM »
We use zram by default, and ship zcache so it can be configured by the user if needed.

The name of the bootcode, nozswap, comes from back when zram was called compcache.

As zswap just has been introduced in main - while zram and zcache remain in staging at current - I'd like to suggest considering renaming the "nozswap" boot code, in order to avoid (future) confusion.

For reference:
http://cateee.net/lkddb/web-lkddb/ZSWAP.html
http://cateee.net/lkddb/web-lkddb/ZRAM.html
http://cateee.net/lkddb/web-lkddb/ZCACHE.html
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: LWN article on the various memory compression methods
« Reply #4 on: July 20, 2013, 08:16:02 AM »
Yes, with the 5.0 major release breaking the existing use would be more acceptable. Any suggestions for a good, short name? I'm out of them for the moment.
The only barriers that can stop you are the ones you create yourself.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: LWN article on the various memory compression methods
« Reply #5 on: July 20, 2013, 02:56:37 PM »
I'm not sure that's descriptive enough, as you can use zram on your own as a compressed ramdisk to store anything.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: LWN article on the various memory compression methods
« Reply #6 on: July 20, 2013, 06:55:27 PM »
True, but the way I understand it, "no*" boot codes would often refer to preventing some feature from being activated and configured with particular defaults at boot time, while not excluding a later activation with a potentially different configuration by user after boot.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)