{
"read": "2020-03-20T05:24:03.754425567Z",
"preread": "2020-03-20T05:24:02.752857441Z",
"pids_stats": {
"current": 1
},
"blkio_stats": {
"io_service_bytes_recursive": [],
"io_serviced_recursive": [],
"io_queue_recursive": [],
"io_service_time_recursive": [],
"io_wait_time_recursive": [],
"io_merged_recursive": [],
"io_time_recursive": [],
"sectors_recursive": []
},
"num_procs": 0,
"storage_stats": {},
"cpu_stats": {
"cpu_usage": {
"total_usage": 1841965540,
"percpu_usage": [
992402,
1665649,
1619827291,
2729087,
4554574,
5189767,
201081062,
5925708
],
"usage_in_kernelmode": 1620000000,
"usage_in_usermode": 200000000
},
"system_cpu_usage": 2611727730000000,
"online_cpus": 8,
"throttling_data": {
"periods": 0,
"throttled_periods": 0,
"throttled_time": 0
}
},
"precpu_stats": {
"cpu_usage": {
"total_usage": 1841965540,
"percpu_usage": [
992402,
1665649,
1619827291,
2729087,
4554574,
5189767,
201081062,
5925708
],
"usage_in_kernelmode": 1620000000,
"usage_in_usermode": 200000000
},
"system_cpu_usage": 2611719640000000,
"online_cpus": 8,
"throttling_data": {
"periods": 0,
"throttled_periods": 0,
"throttled_time": 0
}
},
"memory_stats": {
"usage": 234754048,
"max_usage": 268439552,
"stats": {
"active_anon": 0,
"active_file": 113635328,
"cache": 227082240,
"dirty": 197885952,
"hierarchical_memory_limit": 268435456,
"hierarchical_memsw_limit": 536870912,
"inactive_anon": 0,
"inactive_file": 113577984,
"mapped_file": 0,
"pgfault": 8976,
"pgmajfault": 0,
"pgpgin": 64152,
"pgpgout": 8749,
"rss": 0,
"rss_huge": 0,
"total_active_anon": 0,
"total_active_file": 113635328,
"total_cache": 227082240,
"total_dirty": 197885952,
"total_inactive_anon": 0,
"total_inactive_file": 113577984,
"total_mapped_file": 0,
"total_pgfault": 8976,
"total_pgmajfault": 0,
"total_pgpgin": 64152,
"total_pgpgout": 8749,
"total_rss": 0,
"total_rss_huge": 0,
"total_unevictable": 0,
"total_writeback": 0,
"unevictable": 0,
"writeback": 0
},
"failcnt": 19,
"limit": 268435456
},
"name": "/keen_elbakyan",
"id": "8c601a0d84047b079b4e409c0fd3197efc1ce80bd964c472f49cbf769517ee5d",
"networks": {
"eth0": {
"rx_bytes": 5610,
"rx_packets": 39,
"rx_errors": 0,
"rx_dropped": 0,
"tx_bytes": 0,
"tx_packets": 0,
"tx_errors": 0,
"tx_dropped": 0
}
}
}
Description
The
MEMORY USAGEandMEM %columns indocker statsdon't include RAM used bytmpfsfilesystems.Steps to reproduce the issue:
ddprocess is killed after exhausting thememory/shm-sizelimits and the RAM resident filesystem now contains a200Mish file:docker statsDescribe the results you received:
Describe the results you expected:
The
MEM USAGEandMEM %columns in the above table to be around200Mish and78%ish.Output of
docker version:Output of
docker info:Details
Additional details:
Output of
For the
/tmpcontainer{ "read": "2020-03-20T05:24:03.754425567Z", "preread": "2020-03-20T05:24:02.752857441Z", "pids_stats": { "current": 1 }, "blkio_stats": { "io_service_bytes_recursive": [], "io_serviced_recursive": [], "io_queue_recursive": [], "io_service_time_recursive": [], "io_wait_time_recursive": [], "io_merged_recursive": [], "io_time_recursive": [], "sectors_recursive": [] }, "num_procs": 0, "storage_stats": {}, "cpu_stats": { "cpu_usage": { "total_usage": 1841965540, "percpu_usage": [ 992402, 1665649, 1619827291, 2729087, 4554574, 5189767, 201081062, 5925708 ], "usage_in_kernelmode": 1620000000, "usage_in_usermode": 200000000 }, "system_cpu_usage": 2611727730000000, "online_cpus": 8, "throttling_data": { "periods": 0, "throttled_periods": 0, "throttled_time": 0 } }, "precpu_stats": { "cpu_usage": { "total_usage": 1841965540, "percpu_usage": [ 992402, 1665649, 1619827291, 2729087, 4554574, 5189767, 201081062, 5925708 ], "usage_in_kernelmode": 1620000000, "usage_in_usermode": 200000000 }, "system_cpu_usage": 2611719640000000, "online_cpus": 8, "throttling_data": { "periods": 0, "throttled_periods": 0, "throttled_time": 0 } }, "memory_stats": { "usage": 234754048, "max_usage": 268439552, "stats": { "active_anon": 0, "active_file": 113635328, "cache": 227082240, "dirty": 197885952, "hierarchical_memory_limit": 268435456, "hierarchical_memsw_limit": 536870912, "inactive_anon": 0, "inactive_file": 113577984, "mapped_file": 0, "pgfault": 8976, "pgmajfault": 0, "pgpgin": 64152, "pgpgout": 8749, "rss": 0, "rss_huge": 0, "total_active_anon": 0, "total_active_file": 113635328, "total_cache": 227082240, "total_dirty": 197885952, "total_inactive_anon": 0, "total_inactive_file": 113577984, "total_mapped_file": 0, "total_pgfault": 8976, "total_pgmajfault": 0, "total_pgpgin": 64152, "total_pgpgout": 8749, "total_rss": 0, "total_rss_huge": 0, "total_unevictable": 0, "total_writeback": 0, "unevictable": 0, "writeback": 0 }, "failcnt": 19, "limit": 268435456 }, "name": "/keen_elbakyan", "id": "8c601a0d84047b079b4e409c0fd3197efc1ce80bd964c472f49cbf769517ee5d", "networks": { "eth0": { "rx_bytes": 5610, "rx_packets": 39, "rx_errors": 0, "rx_dropped": 0, "tx_bytes": 0, "tx_packets": 0, "tx_errors": 0, "tx_dropped": 0 } } }For the
/dev/shmcontainer{ "read": "2020-03-20T05:32:09.684746601Z", "preread": "2020-03-20T05:32:08.683481358Z", "pids_stats": { "current": 1 }, "blkio_stats": { "io_service_bytes_recursive": [], "io_serviced_recursive": [], "io_queue_recursive": [], "io_service_time_recursive": [], "io_wait_time_recursive": [], "io_merged_recursive": [], "io_time_recursive": [], "sectors_recursive": [] }, "num_procs": 0, "storage_stats": {}, "cpu_stats": { "cpu_usage": { "total_usage": 1494756157, "percpu_usage": [ 822498, 856679, 558496, 8284470, 200931734, 1192872, 1278601167, 3508241 ], "usage_in_kernelmode": 1270000000, "usage_in_usermode": 200000000 }, "system_cpu_usage": 2615624390000000, "online_cpus": 8, "throttling_data": { "periods": 0, "throttled_periods": 0, "throttled_time": 0 } }, "precpu_stats": { "cpu_usage": { "total_usage": 1494756157, "percpu_usage": [ 822498, 856679, 558496, 8284470, 200931734, 1192872, 1278601167, 3508241 ], "usage_in_kernelmode": 1270000000, "usage_in_usermode": 200000000 }, "system_cpu_usage": 2615616430000000, "online_cpus": 8, "throttling_data": { "periods": 0, "throttled_periods": 0, "throttled_time": 0 } }, "memory_stats": { "usage": 234721280, "max_usage": 268439552, "stats": { "active_anon": 0, "active_file": 0, "cache": 233029632, "dirty": 0, "hierarchical_memory_limit": 268435456, "hierarchical_memsw_limit": 536870912, "inactive_anon": 232894464, "inactive_file": 0, "mapped_file": 0, "pgfault": 8976, "pgmajfault": 0, "pgpgin": 65604, "pgpgout": 8741, "rss": 0, "rss_huge": 0, "total_active_anon": 0, "total_active_file": 0, "total_cache": 233029632, "total_dirty": 0, "total_inactive_anon": 232894464, "total_inactive_file": 0, "total_mapped_file": 0, "total_pgfault": 8976, "total_pgmajfault": 0, "total_pgpgin": 65604, "total_pgpgout": 8741, "total_rss": 0, "total_rss_huge": 0, "total_unevictable": 0, "total_writeback": 0, "unevictable": 0, "writeback": 0 }, "failcnt": 30, "limit": 268435456 }, "name": "/infallible_engelbart", "id": "7066646c1a76b421db4ccee09d9bf6e2802203b42509b4138913bcf16a5132b1", "networks": { "eth0": { "rx_bytes": 5737, "rx_packets": 40, "rx_errors": 0, "rx_dropped": 0, "tx_bytes": 0, "tx_packets": 0, "tx_errors": 0, "tx_dropped": 0 } } }Addressing similar issues:
tmpfsis not correct since the kernel can't just delete these files and so exhausting this resource will result in dead processes.