Re: [PATCH] failslab - failmalloc for slab allocator



On Sun, 13 Aug 2006 18:22:19 +0800
Akinobu Mita <mita@xxxxxxxxxxxxxxxx> wrote:

This patch is not intended for inclusion. But I could find
several interesting crashes.

The idea behind failslab is to demonstrate what really happens if
slab allocation fails. The idea of failslab is completely taken
from failmalloc (http://www.nongnu.org/failmalloc/).

boot option:

failslab=<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 memory can be allocated
safely in bytes.

examples:

failslab=100,10,-1,0

slab allocation (kmalloc, kmem_cache_alloc,..) fails once per 10 times.

We would benefit from having some faul-injection capabilities in the
mainline kernel.

- kmalloc failures

- alloc_pages() failures

- disk IO errors (there are rumours of a DM module for this, but I
haven't seen it).

They would need to be lightweight, clean and enabled/configured at runtime,
not at boot time.

This would end up being a fairly complex project.
-
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/



Relevant Pages

  • [PATCH] failslab - failmalloc for slab allocator
    ... The idea of failslab is completely taken ... specifies how often it should fail in percent. ... slab allocation fails once per 10 times. ...
    (Linux-Kernel)
  • Re: ActiveState module failures
    ... Here's a selection of suspicious reports from the 5.8 A section. ... causes a cascade of failures. ... Practically everything in Apache:: fails due to some missing prerequisite. ...
    (comp.lang.perl.modules)
  • [PATCH] MN10300: Fix kernel build failures when using gcc-4.x
    ... Fix some build failures when using gcc-4.x for MN10300. ... __get_userfails to build because the pointer points to a const and ...
    (Linux-Kernel)
  • Re: Beware the automatic toilet
    ... too many failures and his automatic toilet cuts his balls off ... The aim is achieved through rationing of electricity. ... Suppose, such a 'gamer' fails... ... anymore and he is not breeding anymore. ...
    (sci.research.careers)
  • Re: How can I do a 100% bullet proof Save?
    ... > Norm ... > delete file fails, or the final rename, the bad result will arise. ... There's still a cascade of failures possible if the write fails and then ...
    (microsoft.public.vc.mfc)