fsync: giving up on dirty on ufs partitions running vfs_write_suspend()
Andreas Longwitz
longwitz at incore.de
Thu Sep 21 16:51:50 UTC 2017
Gary Jennejohn schrieb:
>> So the spent time in vop_stdfsync() is 0,24 sec in the worst case I
>> found using DELAY with 1 ms. I would prefer this solution. My first
>> appoach (simple bumping maxres from 1000 to 100000) is also ok, but max
>> spend time will be raise up to 0,5 sec. Perhaps you like something like
>>
>> if( maxretry < 1000 && maxretry % 10 = 0)
> ^ ==
>> DELAY(waitns);
>>
>
> The argument to DELAY is in micro-seconds.
>
Thanks for your hint.
Correct is
waitns = 1000;
if( maxretry < 1000 && maxretry % 10 == 0)
DELAY(waitns);
Andreas Longwitz
More information about the freebsd-fs
mailing list