We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We get report that during 100M connections tests, the function lc_lib:get_sys_memory_usage() is very slow as following.
lc_lib:get_sys_memory_usage()
iex([email protected])9> :timer.tc(&:load_ctl.get_sys_memory/0) {9624, {0.8642148373449763, 134799187968}} iex([email protected])10> :timer.tc(&:load_ctl.get_sys_memory/0) {717, {0.8661882218141999, 134799187968}} iex([email protected])11> :timer.tc(&:load_ctl.get_sys_memory/0) {609, {0.8671846375495222, 134799187968}} iex([email protected])12> :timer.tc(&:load_ctl.get_sys_memory/0) {4690, {0.8890156894153435, 134799187968}} iex([email protected])13> :timer.tc(&:load_ctl.get_sys_memory/0) {617, {0.890001986632739, 134799187968}} iex([email protected])14> :timer.tc(&:load_ctl.get_sys_memory/0) {64898181, {0.8134260153112319, 134799187968}}
10/20 nodes runs into this issue.
Reading Cgroup/ cgroupv2/ or /proc/meminfo from shell is fast.
/proc/meminfo
iex([email protected])18> :erlang.statistics(:run_queue_lengths) |> IO.inspect(limit: :infinity) [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
We suspect it relates to the large number of erlang ports. (~5M / node)
Likely it is caused by memsup
memsup
iex([email protected])18> :timer.tc(&:memsup.get_system_memory_data/0) {13702147, [ available_memory: 86003736576, buffered_memory: 119590912, cached_memory: 4353019904, free_memory: 81441886208, free_swap: 0, system_total_memory: 134799183872, total_memory: 134799183872, total_swap: 0 ]}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
We get report that during 100M connections tests, the function
lc_lib:get_sys_memory_usage()
is very slow as following.Impacted nodes
10/20 nodes runs into this issue.
Read from shell
Reading Cgroup/ cgroupv2/ or
/proc/meminfo
from shell is fast.runq length:
We suspect it relates to the large number of erlang ports. (~5M / node)
cause
Likely it is caused by
memsup
The text was updated successfully, but these errors were encountered: