Re: [patch 1/7] documentation and scripts

From: Akinobu Mita
Date: Fri Oct 13 2006 - 13:47:17 EST


On Thu, Oct 12, 2006 at 02:37:13PM -0700, Andrew Morton wrote:

> So I wonder if it'd be better to make this have units of "one millionth",
> or simply make this tunable "1/(probability of failure)". So setting it to
> 1,000,000 gives you one failure per million calls, on average.

/debug/*/interval is available for this purpose.
The combination of below commands gives one failure per million calls.

# echo 1000000 > /debug/failslab/interval
# echo 100 > /debug/failslab/probability

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/