4 ms·
What are you putting in your container? A trivial container with non-bloated userspace should not take nearly that much memory.
by amluto 6y ago
What are you putting in your container? A trivial container with non-bloated userspace should not take nearly that much memory.
- jeffbee 6y agoThanks 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
- icedchai 6y ago"should"... Unfortunately, almost everything is bloated these days. My first Linux box, a 386SX/20, had only 4 megabytes of memory. I ran SLS Linux which installed off of roughly 20 floppies. I could compile C programs, and barely run X!
- anthk 6y agoTiny-X and fvwm with rxvt would run far better than any other VM + an XTerm.