On Thu, Oct 02, 2025 at 11:57:44PM +0200, Marius Schwarz wrote: > Am 02.10.25 um 20:55 schrieb Chris Murphy: > > Large firmware take longer to read from disk, must be fully decompressed > > and dearchived because cpio. And it's possible that the initramfs remains > > resident in memory indefinitely - I don't know whether it's garbage > > collected or when or how. Is it subject to eviction by swap? No idea. We > > should find out. > > > > The initramfs ist the "real" os booting. It chroots into the mounted "/" you > know, but it's still there. When you shutdown, the sysroot "/" is unmounted > and a few other ressources are given free. Now, the initramfs is gone from > memory, which does not matter anymore ;)
This is not quite true. We mount the real root on /sysroot in the initrd, and then use pivot_root.2 to flip the two roots, and then the initrd root is cleaned up. Dracut keeps some files around in /run/initramfs, but it's generally only a handful of files. So no significant memory is wasted. Zbyszek -- _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] 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/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
