c - Is there any efficient way get the left physical memory in docker? -


my app program wants read free avail physical memory in docker.

currently,which means can think of, reading 2 values memory.limit_in_bytes , memory.usage_in_bytes 'cgroup' file in docker, figuring them out

free_memory = value memory.limit_in_bytes - memory.usage_in_bytes 

but slow.

is there efficient way free physical memory?

my app focuses on performance much.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -