]> git.sesse.net Git - bcachefs-tools-debian/commit
Change memory reclaim
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 19 Dec 2022 19:47:42 +0000 (14:47 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 19 Dec 2022 19:47:42 +0000 (14:47 -0500)
commite2670a38d1ad6038d64687cb1d585349508e06d7
tree070543582e146c33280a5dbeadbc9c8c79ac2005
parent71111771690f244d13650c73d52ff601ad914d95
Change memory reclaim

 - Spin up a background thread to call the shrinkers every 1 second
 - Memory allocations will only call reclaim after a failed allocation,
   not every single time

This will be a major performance boost on allocation intensive
workloads.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
include/linux/slab.h
linux/shrinker.c