Re: [PATCH] brd: detect zero writes for saving ram

From: Akinobu Mita
Date: Sat Feb 07 2015 - 10:18:49 EST


2015-02-08 0:03 GMT+09:00 Akinobu Mita <akinobu.mita@xxxxxxxxx>:
> This introduces a module parameter to detect zero writes and not to
> allocate memory. Read requests for unallocated (unwritten) region
> end up by reading zero. So this can save zeroed memory consumption
> with extra overhead for the detection.
>
> This feature is useful for testing filesystems and user programs to
> huge files without huge real storage. So this change also extends
> the upper limit on the size of the RAM disk.

I have just noticed about zram and I'll check I can use it instead.
--
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/