Skip to content
Commit b492e95b authored by Jens Axboe's avatar Jens Axboe
Browse files

pipe: set lower and upper limit on max pages in the pipe page array



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: default avatarJens Axboe <jens.axboe@oracle.com>
parent 35f3d14d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment