pipe: set lower and upper limit on max pages in the pipe page array
authorJens Axboe <jens.axboe@oracle.com>
Wed, 19 May 2010 19:03:16 +0000 (21:03 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 19:12:52 +0000 (21:12 +0200)
We need at least two to guarantee proper POSIX behaviour, so
never allow a smaller limit than that.

Also expose a /proc/sys/fs/pipe-max-pages sysctl file that allows
root to define a sane upper limit. Make it default to 16 times the
default size, which is 16 pages.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

No differences found