Am Sun, 14 May 2017 22:57:26 +0200 schrieb Lionel Bouton <lionel-subscript...@bouton.name>:
> I've coded one Ruby script which tries to balance between the cost of > reallocating group and the need for it. The basic idea is that it > tries to keep the proportion of free space "wasted" by being allocated > although it isn't used below a threshold. It will bring this > proportion down enough through balance that minor reallocation won't > trigger a new balance right away. It should handle pathological > conditions as well as possible and it won't spend more than 2 hours > working on a single filesystem by default. We deploy this as a daily > cron script through Puppet on all our systems and it works very well > (I didn't have to use balance manually to manage free space since we > did that). Note that by default it sleeps a random amount of time to > avoid IO spikes on VMs running on the same host. You can either edit > it or pass it "0" which will be used for the max amount of time to > sleep bypassing this precaution. > > Here is the latest version : https://pastebin.com/Rrw1GLtx > Given its current size, I should probably push it on github... Yes, please... ;-) > I've seen other maintenance scripts mentioned on this list so you > might something simpler or more targeted to your needs by browsing > through the list's history. -- Regards, Kai Replies to list-only preferred. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html