Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2017 18:51:45 +0200
From:      Andreas Longwitz <longwitz@incore.de>
To:        gljennjohn@gmail.com, freebsd-fs@freebsd.org
Subject:   Re: fsync: giving up on dirty on ufs partitions running vfs_write_suspend()
Message-ID:  <59C3EE21.1010401@incore.de>
In-Reply-To: <20170921125858.64ffe077@ernst.home>
References:  <201709110519.v8B5JVmf060773@chez.mckusick.com>	<59BD0EAC.8030206@incore.de>	<20170916183117.GF78693@kib.kiev.ua>	<59C37F46.80509@incore.de> <20170921125858.64ffe077@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59C3EE21.1010401>