Re: Btrfs reserve metadata problem

2018-01-02 Thread Qu Wenruo
On 2018年01月03日 09:55, robbieko wrote: > Hi Qu, > > Do you have a patch to reduce meta rsv ? Not exactly, only for qgroup. [PATCH v2 10/10] btrfs: qgroup: Use independent and accurate per inode qgroup rsv But that could provide enough clue to implement a smaller meta rsv. My current safe

Re: Btrfs reserve metadata problem

2018-01-02 Thread robbieko
Hi Qu, Do you have a patch to reduce meta rsv ? Hi Peter Grandi, 1. all files have been initialized with dd, No need to change any metadata. 2. my test with Total volume size 190G, used 128G, available 60G, but only 60 MB dirty pages. According to the meta rsv rules, 1GB free space up

Re: Btrfs reserve metadata problem

2018-01-02 Thread Peter Grandi
> When testing Btrfs with fio 4k random write, That's an exceptionally narrowly defined workload. Also it is narrower than that, because it must be without 'fsync' after each write, or else there would be no accumulation of dirty blocks in memory at all. > I found that volume with smaller free

Re: Btrfs reserve metadata problem

2018-01-02 Thread Qu Wenruo
On 2018年01月02日 15:51, robbieko wrote: > Hi All, > > When testing Btrfs with fio 4k random write, I found that volume with > smaller free space available has lower performance. > > It seems that the smaller the free space of volume is, the smaller > amount of dirty page filesystem could have. >

Btrfs reserve metadata problem

2018-01-01 Thread robbieko
Hi All, When testing Btrfs with fio 4k random write, I found that volume with smaller free space available has lower performance. It seems that the smaller the free space of volume is, the smaller amount of dirty page filesystem could have. There are only 6 MB dirty pages when free space of