Re: Disable btrfs memory swap file

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

 



Samuel Sieb wrote:
> On 6/26/23 20:48, Jeffrey Walton wrote:
>> Hi Everyone,
>> 
>> I've got a Fedora 38 install (upgrade from F37). The install happened
>> with Anaconda. Anaconda created the compressed memory swap file. I
>> resized the disk and added a proper swap partition. Now I need to
>> modify /etc/fstab and disable the compressed memory swap file. In the
>> screen text below, /dev/nvme0n1p4 is the new partition.
>> 
>> My Google-fu really sucks today. I cannot find a discussion of it.
>> 
>> How do I modify fstab to remove the compressed memory swap file?
> 
> Why would you want to?
> 
> The easiest way would be to remove the "zram-generator" package.  I don't
> know off-hand how to disable a generator.

I think the zram-generator.conf file provides two methods
(one is effectively the same as you've suggested ;).

    $ cat /usr/lib/systemd/zram-generator.conf
    # This config file enables a /dev/zram0 device with the default settings:
    # — size — same as available RAM or 8GB, whichever is less
    # — compression — most likely lzo-rle
    #
    # To disable, uninstall zram-generator-defaults or create empty
    # /etc/systemd/zram-generator.conf file.
    [zram0]
    zram-size = min(ram, 8192)

The other would be something like:

    sudo sh -c '>/etc/systemd/zram-generator.conf'

If the file doesn't already exist, `sudo touch ...` would be
even simpler, of course.

-- 
Todd

Attachment: signature.asc
Description: PGP signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-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/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux