Skip to content

cgroup aware Base.Sys.cpu_info and Base.Sys.total_memory #24617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tanmaykm opened this issue Nov 15, 2017 · 3 comments · Fixed by #32280 or #46796
Closed

cgroup aware Base.Sys.cpu_info and Base.Sys.total_memory #24617

tanmaykm opened this issue Nov 15, 2017 · 3 comments · Fixed by #32280 or #46796
Labels
system:linux Affects only Linux

Comments

@tanmaykm
Copy link
Member

Not sure if it is possible, but it will be good to have Base.Sys.cpu_info and Base.Sys.total_memory aware of linux cgroups and report cgroup info instead.

It will also be useful when Julia is being run within a docker container with cgroup limits.

@ararslan ararslan added the system:linux Affects only Linux label Nov 16, 2017
@vtjnash
Copy link
Member

vtjnash commented Nov 17, 2017

I tried looking into this before, and tried to write down a few of my findings: #17987 (comment)

@vtjnash
Copy link
Member

vtjnash commented Apr 10, 2019

may be addressed by libuv/libuv#2249

@maleadt
Copy link
Member

maleadt commented Apr 21, 2021

This isn't really fixed: although #36479 introduced uses of uv_get_contrained_memory for setting-up the heap and managing collections, that information isn't exposed in the Sys module as requested here. Furthermore, with Linux distributions moving to cgroup2, uv_get_contrained_memory becomes useless unless libuv/libuv#2323 is merged. So I think we better re-open this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:linux Affects only Linux
Projects
None yet
4 participants