Re: [patch 4/5] fail-injection capability for disk IO

Hans Reiser
2006-08-23T18:22:31Z

Andrew Morton wrote:
> On Wed, 23 Aug 2006 14:03:55 +0200
> Jens Axboe <axboe@suse.de> wrote:
>
>
>> On Wed, Aug 23 2006, Akinobu Mita wrote:
>>
>>> This patch provides fail-injection capability for disk IO.
>>>
>>> Boot option:
>>>
>>> fail_make_request=<probability>,<interval>,<times>,<space>
>>>
>>> <probability>
>>>
>>> specifies how often it should fail in percent.
>>>
>>> <interval>
>>>
>>> specifies the interval of failures.
>>>
>>> <times>
>>>
>>> specifies how many times failures may happen at most.
>>>
>>> <space>
>>>
>>> specifies the size of free space where disk IO can be issued
>>> safely in bytes.
>>>
>>> Example:
>>>
>>> fail_make_request=100,10,-1,0
>>>
>>> generic_make_request() fails once per 10 times.
>>>
>> Hmm dunno, seems a pretty useless feature to me.
>>
>
> We need it. What is the FS/VFS/VM behaviour in the presence of IO
> errors? Nobody knows, because we rarely test it. Those few times where
> people _do_ test it (the hard way), bad things tend to happen. reiserfs
> (for example) likes to go wobble, wobble, wobble, BUG.
>
The iron folks tested it, and we did better than other FS's. That said,
it seems like a valuable feature to me.