diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2019-04-23 11:34:04 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2019-04-23 11:49:37 +0200 |
commit | 3a1be725326bfe637355c461bd77993c0fda2173 (patch) | |
tree | 0aa504209d859b01098fe112595c225eceb60e8d /docs/src | |
parent | 1c2dc9c8d10aff2d63734fb5cb01eefcc19f6e1b (diff) | |
download | libuv-3a1be725326bfe637355c461bd77993c0fda2173.tar.gz libuv-3a1be725326bfe637355c461bd77993c0fda2173.zip |
linux: read free/total memory from /proc/meminfo
It was reported that uv_get_free_memory() and uv_get_total_memory()
report the wrong values inside an lxc container.
Libuv calls sysinfo(2) but that isn't intercepted by lxc. /proc/meminfo
however is because /proc is a FUSE fs inside the container.
This commit makes libuv try /proc/meminfo first and fall back to
sysinfo(2) in case /proc isn't mounted.
Fixes: https://github.com/libuv/libuv/issues/2249
PR-URL: https://github.com/libuv/libuv/pull/2258
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions