summaryrefslogtreecommitdiff
path: root/libbcachefs/btree_trans_commit.c
diff options
context:
space:
mode:
authorDaniel Hill <daniel@gluo.nz>2023-11-21 01:43:52 +1300
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-24 19:54:11 -0500
commit326d7c1b3b8ff8e0bd1dda46ad83a5bf27080e21 (patch)
treeee936c8c615d4632da0ba1b5de03e94a306c5c3f /libbcachefs/btree_trans_commit.c
parentfbad1bfdf3ebbe70afd3f936de59fa3fc47614d7 (diff)
improve kmalloc performance
Reading from /proc/meminfo is really slow We don't want to start swapping to disk. Deceptively, memory available goes up when we start to swap to disk making performance even worse. To mitigate this: 1. replace reading from meminfo with proper system calls. 2. attempt to lock allocations in physical memory space. 3. check our own allocated memory instead of available memory. 4. still check available memory in the off chance we're trying to play nice with other apps. Signed-off-by: Daniel Hill <daniel@gluo.nz> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/btree_trans_commit.c')
0 files changed, 0 insertions, 0 deletions