Bug 74771
Summary: | Slab cache is nearly not freed if the system gets out of physical memory | ||
---|---|---|---|
Product: | Memory Management | Reporter: | sworddragon2 |
Component: | Other | Assignee: | Andrew Morton (akpm) |
Status: | NEW --- | ||
Severity: | normal | CC: | vincent |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 3.13.9 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
sworddragon2
2014-04-24 18:16:19 UTC
I have the same issue with 4.19 under Debian/stable: Linux joooj 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux With "sync; echo 3 > /proc/sys/vm/drop_caches", I could slightly decrease the Slab values from Slab: 307464 kB SReclaimable: 232808 kB SUnreclaim: 74656 kB to Slab: 285440 kB SReclaimable: 211832 kB SUnreclaim: 73608 kB but though I have 303908 KB available according to "free", I can't allocate 200 MB: joooj:~> memhog 200M ................zsh: killed memhog 200M In the kernel logs: [...] Feb 03 12:48:31 joooj kernel: Mem-Info: Feb 03 12:48:31 joooj kernel: active_anon:13436 inactive_anon:13539 isolated_anon:0 active_file:10 inactive_file:10 isolated_file:0 unevictable:2400 dirty:0 writeback:5 unstable:0 slab_reclaimable:52958 slab_unreclaimable:18448 mapped:1083 shmem:8 pagetables:1239 bounce:0 free:1052 free_pcp:0 free_cma:0 [...] Feb 03 12:48:31 joooj kernel: Out of memory: Kill process 18345 (memhog) score 182 or sacrifice child Feb 03 12:48:31 joooj kernel: Killed process 18345 (memhog) total-vm:207148kB, anon-rss:92052kB, file-rss:1372kB, shmem-rss:0kB Feb 03 12:48:31 joooj kernel: oom_reaper: reaped process 18345 (memhog), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB |