Coder Social home page Coder Social logo

qgroup scan causes system lockups and software crashes, disabling quotas disables size measurement of snapshots. Is there a way to make this work? about snapper HOT 3 CLOSED

pallaswept avatar pallaswept commented on September 28, 2024
qgroup scan causes system lockups and software crashes, disabling quotas disables size measurement of snapshots. Is there a way to make this work?

from snapper.

Comments (3)

aschnell avatar aschnell commented on September 28, 2024 2

You should be able to make snapper not doing quota rescans by having limits with no range (e.g. NUMBER_LIMIT=10 instead of 10-20) and using --disable-used-space with snapper ls. Likely not
setting QGROUP in the config have the same effect. But in the end disabling quota is simpler.

Unfortunately otherwise you are right.

from snapper.

pallaswept avatar pallaswept commented on September 28, 2024

You should be able to make snapper not doing quota rescans by having limits with no range (e.g. NUMBER_LIMIT=10 instead of 10-20) and using --disable-used-space with snapper ls. Likely not setting QGROUP in the config have the same effect. But in the end disabling quota is simpler.

Unfortunately otherwise you are right.

Thanks so much for the direct answer. Thanks especially for the tip about using fixed limits (not ranges), I'll give that a shot and see if it has a positive impact, but you have given me some hope :) OpenSUSE TW is using ranges by default, so that might part of my problem.

Most of the time the gqroup scans are a result of automated background processes, so I can't intervene by adding that parameter. At least now I know that I can try and fix my settings up, and if that fails, I need to make a decision between the lesser of the two evils, and should it come to that, I think I will just disable quotas for now.

I really appreciate your quick reply and your candor, you've taken a weight off my shoulders. Have a good one until next time!

from snapper.

pallaswept avatar pallaswept commented on September 28, 2024

For the record, indeed changing from ranges to fixed values, relieved the problems with constant qgroup scans locking up the system. However this simply uncovered similar behaviour from btrfs-cleaner and btrfs-transaction. Researching the problem, everywhere I read, said essentially the same thing - quotas don't behave well once you have a lot of snapshots. The Arch wiki literally begins its section on BTRFS quotas with a giant red warning to this effect, and then links to kernel documentation warning of the same. to quote the linux kernel's own documentation:

Combining quota with (too many) snapshots of subvolumes can cause performance problems, for example when deleting snapshots.

Finally I came across official documentation regarding the matter, on OpenSUSE at least - https://www.suse.com/support/kb/doc/?id=000020696 and the advice was to apply the workaround of disabling quotas. I've gone ahead and done that, unfortunately, as I can see their useful nature, but their performance penalty is beyond acceptable.

I don't believe they should be enabled on openSUSE by default when they are known to be broken.

from snapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.