Re: zswap: should we use zsmalloc as default allocator?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, Jan 10, 2025, at 3:28 AM, Vitaly Zaitsev via devel wrote:
> On 09/01/2025 23:42, Chris Murphy wrote:
>> Do I still need to enable zswap with the kernel param? Or can it all be done by the service unit?
>
> No. It will be enabled automatically since the zswap-cli.conf 
> configuration file already has the enabled=Y option by default, and 
> zswap can be enabled or disabled on the fly.
>
> There is a manual page with documentation: man zswap-cli.

I've been using this for a couple of days and it's working fine.  The default configuration file uses 

max_pool_percent=15
compressor=zstd
zpool=zsmalloc
accept_threshold_percent=90
shrinker_enabled=Y

Reported compression ratio is 4.22. Documentation says zbud compression ratio is fixed at 2:1. So zstd/zsmalloc is an obvious improvement. We're already using zstd elsewhere in Fedora.

Should we update https://fedoraproject.org/wiki/Zswap to reflect using this package? I like the systemd service unit approach, which then pokes sysfs appropriately.



-- 
Chris Murphy
-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux