Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using unsquashfs to install live environments causes the environment to freeze using Calamares #299

Open
plougher opened this issue Jan 18, 2025 · 3 comments
Assignees
Milestone

Comments

@plougher
Copy link
Owner

plougher commented Jan 18, 2025

It has been reported by Neal Gompa ([email protected])

My only issue with it is that using unsquashfs to install
live environments causes the environment to freeze, which is not
great. This doesn't affect Anaconda, but it does affect Calamares
(which Fedora itself does not use).

Unsquashfs uses getrlimit() (equivalent to Bash ulimit -n) to get the maximum number of files that can be opened. It may be the case that opening that many files causes read operations to be throttled, causing the system to hang. Obviously a solution here is to set the maximum number of files to a smaller value before calling Unsquashfs. But Unsquashfs could probably open less files automatically without affecting performance.

This issue needs to be reproduced and investigated.

@plougher plougher self-assigned this Jan 18, 2025
@plougher plougher added this to the 4.7 release milestone Jan 18, 2025
@Conan-Kudo
Copy link

I will see if I can produce a test-case ISO for you to see this with. I had adjusted Calamares in Fedora to work around it, but fixing this would be better.

@plougher
Copy link
Owner Author

I will see if I can produce a test-case ISO for you to see this with. I had adjusted Calamares in Fedora to work around it, but fixing this would be better.

A test-case ISO would be a great help :-)

@yump
Copy link

yump commented Jan 19, 2025

I think the kernel has a general problem with unrelated tasks getting starved of CPU when there is heavy load in the I/O path. Last month I was btrfs receive-ing onto a disk with compress-force=zstd:12, and it lagged the GUI worse than any amount of SCHED_OTHER userspace CPU load.

Updating flatpaks often causes a few brief hiccups too, and of course there's the infamous USB stick stall problem.

IIRC Fedora kernels are CONFIG_PREEMPT_DYNAMIC now. Does the problem go away if you boot with preempt=full?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants