[Anaconda-devel] lorax: fstrim by default for image installs

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

 



Hi,

I'm trying to track down why image installs still aren't being trimmed. It was implemented in lorax, and also the buildvm's in Fedora infra are using qemu discard=unmap, so it should just work (it works locally with virtio block devices, the virt-manager default).

Workstation Live x86 koji logs includes
https://kojipkgs.fedoraproject.org//packages/Fedora-Workstation-Live/Rawhide/20220721.n.0/data/logs/image/x86_64/program.log

Which shows

2022-07-22 00:41:33,905 INFO: Running... fstrim -v /mnt/sysimage/
2022-07-22 00:41:34,113 INFO: /mnt/sysimage/: 2.1 GiB (2205618176 bytes) trimmed
2022-07-22 00:41:34,113 DEBUG: Return code: 0

That's expected. However, it's no smaller than several weeks ago when discards weren't passing through from guest buildervm to the host with the sparse file. I'm still pondering how to track down how we can get a return code of 0, and yet the trim didn't actually do anything.

Next,  two examples of oz logs:
https://kojipkgs.fedoraproject.org//packages/Fedora-Cloud-Base/Rawhide/20220721.n.0/data/logs/image/oz-x86_64.log
https://kojipkgs.fedoraproject.org//packages/Fedora-Workstation/Rawhide/20220721.n.0/data/logs/image/oz-aarch64.log

But fstrim isn't mentioned, so I'm suspicious oz isn't including all the anaconda logs, which would be an oz bug.


--
Chris Murphy

_______________________________________________
Anaconda-devel mailing list -- anaconda-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to anaconda-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/anaconda-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux