Re: Suggestion: Anti-fragmentation safety catch (RFC)

2014-03-25 Thread Duncan
Martin posted on Tue, 25 Mar 2014 00:57:05 + as excerpted: https://btrfs.wiki.kernel.org/index.php/Mount_options autodefrag (since [kernel] 3.0) Will detect random writes into existing files and kick off background defragging. It is well suited to bdb or sqlite databases, but not

Suggestion: Anti-fragmentation safety catch (RFC)

2014-03-24 Thread Martin
Just an idea: btrfs Problem: I've had two systems die with huge load factors 100(!) for the case where a user program has unexpected to me been doing 'database'-like operations and caused multiple files to become heavily fragmented. The system eventually dies when data cannot be added to the

Re: Suggestion: Anti-fragmentation safety catch (RFC)

2014-03-24 Thread Duncan
Martin posted on Mon, 24 Mar 2014 19:47:34 + as excerpted: Possible fix: btrfs checks the ratio of filesize versus number of fragments and for a bad ratio either: [...] 3: Automatically defragments the file. See the autodefrag mount option. =:^) -- Duncan - List replies preferred.

Re: Suggestion: Anti-fragmentation safety catch (RFC)

2014-03-24 Thread Martin
On 24/03/14 20:19, Duncan wrote: Martin posted on Mon, 24 Mar 2014 19:47:34 + as excerpted: Possible fix: btrfs checks the ratio of filesize versus number of fragments and for a bad ratio either: [...] 3: Automatically defragments the file. See the autodefrag mount option. =:^)