• Ka-Hing Cheung's avatar
    handle forget inline instead of in goroutine · 1ab97fb2
    Ka-Hing Cheung authored
    when we are under memory pressure, or echo 3 > /proc/sys/vm/drop_caches,
    kernel can send us many forget ops at the same time if we have lots of
    inodes in memory. Running them all in goroutines can lead to even more
    memory usage and eventually OOM.
    1ab97fb2
file_system.go 6.33 KB