diff options
author | 2025-03-04 00:04:08 +0100 | |
---|---|---|
committer | 2025-03-04 09:46:07 +0100 | |
commit | 46af8e2406c27cc2f21094983697ff872102065f (patch) | |
tree | ecbf7233cedd550ffbb53f101214c8b222069539 /fs/pidfs.c | |
parent | pipe: drop an always true check in anon_pipe_write() (diff) | |
download | wireguard-linux-46af8e2406c27cc2f21094983697ff872102065f.tar.xz wireguard-linux-46af8e2406c27cc2f21094983697ff872102065f.zip |
pipe: cache 2 pages instead of 1
User data is kept in a circular buffer backed by pages allocated as
needed. Only having space for one spare is still prone to having to
resort to allocation / freeing.
In my testing this decreases page allocs by 60% during a kernel build.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20250303230409.452687-3-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/pidfs.c')
0 files changed, 0 insertions, 0 deletions