> On Wed, Dec 08, 2010 at 07:20:24AM -0500, Chris Mason wrote:
> >
> > Usually the trick to reproducing filesystem corruptions is adding memory
> > pressure. The corruption is probably a bad interaction between reads
> > and writes, and we need to make sure the reads actually happen.
> >
> >
http://oss.oracle.com/~mason/pin_ram.c
> >
> > gcc -Wall -o pin_ram pin_ram.c
> >
> > pin_ram -m 80%-of-your-ram-in-mb
>
> Implemented in xfstests about 10 years ago:
>
>
http://git.kernel.org/?p=fs/xfs/xfstests-dev.git;a=blob;f=src/usemem.c;h=b8794a6b209ce...