[PATCH] zram-swap: enable swap discard

Rui Salvaterra rsalvaterra at gmail.com
Thu Jun 25 09:32:52 EDT 2020


Hi, Emil,

On Thu, 25 Jun 2020 at 13:57, Emil Muratov <gpm at hotplug.ru> wrote:
>
> Could you, please, describe you test case scenarios and measurements
> where you've hit memory waste for zram dev when swap shrinks?

I don't have a specific procedure to test this, but I believe I showed
you proof that it's a good idea. I'm sure the reason discard isn't the
default is because people actually use swap on SSD, and repeated
discard commands will wear the flash storage too much.
If you want to merge it, fine. If you don't, it's fine too, I'll just
keep it in my tree.

Cheers,
Rui



More information about the openwrt-devel mailing list