bcachefs-tools/linux
Daniel Hill 326d7c1b3b 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>
2023-11-24 19:54:11 -05:00
..
crypto
atomic64.c
bio.c Update bcachefs sources to 84f132d569 bcachefs: fsck: Break walk_inode() up into multiple functions 2023-06-27 19:38:18 -04:00
blkdev.c Handle -EAGAIN from io_submit() 2023-09-29 01:27:59 -04:00
closure.c Update bcachefs sources to 783085c3cc44 kbuild: Allow gcov to be enabled on the command line 2023-11-22 16:55:06 -05:00
crc64.c
crc64table.h
fs.c Update bcachefs sources to 84f132d569 bcachefs: fsck: Break walk_inode() up into multiple functions 2023-06-27 19:38:18 -04:00
generic-radix-tree.c
int_sqrt.c
kstrtox.c
kstrtox.h
kthread.c Run shrinkers when pthread_create fails 2023-07-20 21:28:03 -04:00
llist.c
mean_and_variance.c Update bcachefs sources to 31c09369cd six locks: Fix an unitialized var 2023-05-25 22:25:34 -04:00
mempool.c
preempt.c
ratelimit.c
rhashtable.c
sched.c
semaphore.c
seq_buf.c Update bcachefs sources to ea93c26e98 fixup! bcachefs: We can handle missing btree roots for all alloc btrees 2023-02-09 18:36:24 -05:00
shrinker.c improve kmalloc performance 2023-11-24 19:54:11 -05:00
siphash.c
string_helpers.c Update bcachefs sources to ea93c26e98 fixup! bcachefs: We can handle missing btree roots for all alloc btrees 2023-02-09 18:36:24 -05:00
string.c
timer.c
wait.c
workqueue.c
xxhash.c
zstd_compress_module.c
zstd_decompress_module.c