mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
326d7c1b3b
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> |
||
---|---|---|
.. | ||
crypto | ||
atomic64.c | ||
bio.c | ||
blkdev.c | ||
closure.c | ||
crc64.c | ||
crc64table.h | ||
fs.c | ||
generic-radix-tree.c | ||
int_sqrt.c | ||
kstrtox.c | ||
kstrtox.h | ||
kthread.c | ||
llist.c | ||
mean_and_variance.c | ||
mempool.c | ||
preempt.c | ||
ratelimit.c | ||
rhashtable.c | ||
sched.c | ||
semaphore.c | ||
seq_buf.c | ||
shrinker.c | ||
siphash.c | ||
string_helpers.c | ||
string.c | ||
timer.c | ||
wait.c | ||
workqueue.c | ||
xxhash.c | ||
zstd_compress_module.c | ||
zstd_decompress_module.c |