3 ms·
Thanks for your contribution. The reason I value HN so much is the willingness of inexperienced people to inform me of what Linux "should" do. # cd /sys/fs/c
by jeffbee 6y ago
Thanks for your contribution. The reason I value HN so much is the willingness of inexperienced people to inform me of what Linux "should" do.
# cd /sys/fs/cgroup/memory/
# mkdir lol-hackernewses
# cd lol-hackernewses
# echo 32000000 > memory.limit_in_bytes
# echo $$ > tasks
# find / > /dev/null
Killed
Memory cgroup stats for /lol-hackernewses:
anon 135168
file 11567104
kernel_stack 0
slab 19771392
sock 0
shmem 0
file_mapped 0
file_dirty 0
file_writeback 0
anon_thp 0
inactive_anon 0
active_anon 94208
inactive_file 5517312
active_file 5881856
unevictable 0
slab_reclaimable 19075072
slab_unreclaimable 696320
pgfault 14817
pgmajfault 2376
workingset_refault 25773
workingset_activate 3465
workingset_nodereclaim 0
pgrefill 969886
pgscan 971861
pgsteal 50508
pgactivate 913407
pgdeactivate 969886
pglazyfree 0
pglazyfreed 0
thp_fault_alloc 0
thp_collapse_alloc 0