-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Starting up and shutting down VMs recently became extremely slow #4927
Comments
@marmarek, I'm not sure if setting "minimal qube memory" in the Global Settings GUI is actually working correctly. Is there any way to verify this on the command line? |
It's set in |
How many files do you have in |
Can the /etc/lvm/archive directory just be deleted? I am not really experiencing this issue, but I have over 5000 items in /etc/lvm/archive. I saw in /etc/lvm/lvm.conf there is two parameters "retain_min" and "retain_days". That is set to 10 and 30. Is there an lvm command that we can use that will automatically trim /etc/lvm/archive according to to that setting in lvm.conf? |
I think it is done according to those limits already. The thing is, it's totally possible that lvm will produce 5k files in 30 days. |
That was it! I had well over 120k files in there. Removing all It looks like there's no way to set a maximum retention time in https://serverfault.com/questions/653261/lvm-archive-and-backup-files-not-purging So, I've created a daily cron job to delete files older than one day,
Thanks, @marmarek! I'll leave this open in case you want to take action on it, if it might |
Long ago I wrote a script to take care of this... forgot it was even an issue:
|
I think this may be the same as #2963 |
I originally thought so too (as you can see from our collapsed comments on there), but then I thought it must be different, because #2963 was opened so long ago without any corroborating reports or other activity, whereas my slowdown ramped up rather quickly and was so severe that anyone else experiencing the same thing would surely have reported it. Anyway, I don't know whether they're the same. #2963 doesn't really contain enough information for me to tell. |
Automated announcement from builder-github The package
|
Those files may easily accumulate in large quantities, to the point where just listing the /etc/lvm/archive directory takes a long time. This affects every lvm command call, so every VM start/stop. Those archive files are rarely useful, as Qubes do multiple LVM operations at each VM startup, so older data is really out of date very quickly. Automatically remove files in /etc/lvm/archive older than one day. Fixes QubesOS/qubes-issues#4927 Fixes QubesOS/qubes-issues#2963 (cherry picked from commit 2ec29a4)
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
Qubes OS version
R4.0
Affected component(s) or functionality
Unknown
Brief summary
Starting up and shutting down VMs used to take only a few seconds. Now it takes over 30 seconds.
To Reproduce
This happens every time I start up or shut down a VM. Attempting to shut down many running VMs (
qvm-shutdown --wait --all
) can take 10 minutes, whereas before it used to take less than a minute.While the VMs are running, all operations inside of them are very fast and responsive. Dom0 is also very fast and responsive. Only starting up and shutting down VMs seems to be affected.
Expected behavior
VM startup and shutdown in <5s (which was the case until recently).
Actual behavior
VM startup and shudown in >30s.
Additional context
This started pretty recently. I suspect that it was caused by a recent update. Here are the packages that have recently been updated in dom0 on my system (the version given is the version I currently have installed):
2019-03-16:
2019-03-19:
Solutions you've tried
I have tried:
None of these had any noticeable effect on startup or shutdown time (still slow).
Relevant documentation you've consulted
N/A
Related, non-duplicate issues
I originally thought this was #2963. Please see the collapsed comments there for previous discussion.
The text was updated successfully, but these errors were encountered: