[patch] zfs livelock and thread priorities

Kip Macy kmacy at freebsd.org
Thu Apr 30 17:13:42 UTC 2009


On Thu, Apr 30, 2009 at 8:55 AM, Ben Kelly <ben at wanderview.com> wrote:
> On Apr 30, 2009, at 3:19 AM, Kip Macy wrote:
>>
>> I have a system at work that I could lock up within minutes with
>> fsstress. With this patch the system is now stable with large numbers
>> of fsstress processes running.
>>
>> Provided I get the heads up from pjd, I will commit it.
>
> I found on my system that I could not zfs export my pool after running my
> load test with this patch.  To try to fix this I've updated the patch to
> delegate to vrele(9) instead of directly decrementing the vnode count.  I
> also modified the deferred operation to restart a full vrele(9) instead of
> calling VOP_INACTIVE since it occurred to me someone else might have grabbed
> the vnode while our task was on the queue.  I have only had time to run a
> short test, but it seems to avoid the problem so far.
>
> Can you retest with these changes?
>\

I'll try deferring the entire vrele.

-Kip


More information about the freebsd-current mailing list