PowerEdge: BTRFS file system causing lagging in SUSE Linux
Summary: SUSE Linux Enterprise Server with BTRFS file system as root may experience performance issue and is lagging intermittently.
Symptoms
Server is lagging or stopping responding for a few seconds, event minutes when run commands "ls," "mv."
Run command "top" to view real-time process status.
We can see processes btrfs-cleaner, or btrfs-transacti is running with 100% CPU.
Even thought boot from ISO and mount the root file system with BTRFS. It is also lagging intermittently.
Cause
There is a known performance issue that can occur where quotas are enabled and subvolume deletion occurs. For the problem to occur, the deletion has to include the removal and cleanup of a large shared subtree.
This means, if the subvolume being deleted is not a snapshot, it will not cause any problems. If the subvolume has undergone many changes but has almost no shared subtree with the original one, again there will be no problem. If the subvolume itself is small, then still no problem.
This problem is being discussed in an upstream thread with a view to creating a solution to the problem.
Resolution
An available workaround is to identify the btrfs file system in distress (sometimes it may be the root file system) and disable quotas on that file system using the following syntax:
# btrfs quota disable <filesystem>
For example, to disable quotas on the root file system:
# btrfs quota disable /