-
Notifications
You must be signed in to change notification settings - Fork 174
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
ARM: failed to determine memory area for node: open /sys/devices/system/memory/block_size_bytes: no such file or directory #336
Comments
Hi @wanyaoqi thanks for submitting this issue. You can turn off these warnings. For ARM, topology memory information may not be available due to platform limitations. |
Hi @jaypipes , thanks for your reply. The problem is get numa node physical memory size, others topo info is works. |
@wanyaoqi we already do that :) ghw/pkg/memory/memory_linux.go Lines 113 to 119 in 227643e
|
@jaypipes Okay, but function ghw/pkg/memory/memory_linux.go Lines 60 to 71 in 227643e
|
AreaForNode should call memTotalPhysicalBytes like this:
|
@wanyaoqi gotcha. I will push a fix shortly. :) thank you! |
`/sys/devices/system/memory` does not exist on linux/arm systems that do not support memory hotplug. This means that the `/sys/devices/system/memory/block_size_bytes` file also does not exist and that is the file that we use to determine the physical RAM associated with a RAM module affined to a NUMA node. This commit updates the logic in `pkg/memory.AreaForNode` on linux platforms to tolerate the error returned by `memoryBlockSizeBytes()` when `/sys/devices/system/memory/block_size_bytes` does not exist and set a memory `Area`'s `TotalPhysicalBytes` value to the value of `TotalUsableBytes`. Issue #336 Signed-off-by: Jay Pipes <jaypipes@gmail.com>
`/sys/devices/system/memory` does not exist on linux/arm systems that do not support memory hotplug. This means that the `/sys/devices/system/memory/block_size_bytes` file also does not exist and that is the file that we use to determine the physical RAM associated with a RAM module affined to a NUMA node. This commit updates the logic in `pkg/memory.AreaForNode` on linux platforms to tolerate the error returned by `memoryBlockSizeBytes()` when `/sys/devices/system/memory/block_size_bytes` does not exist and set a memory `Area`'s `TotalPhysicalBytes` value to the value of either the syslog-determined physical memory total or `TotalUsableBytes`. Issue #336 Signed-off-by: Jay Pipes <jaypipes@gmail.com>
I guess this issue can be closed? 😄 |
topology.New()
will report:WARNING: failed to determine memory area for node: open /sys/devices/system/memory/block_size_bytes: no such file or directory
ARM no /sys/devices/system/memory directory.
As the this comment: kata-containers/runtime#796 (comment)
ARM not support memory hotplug,and i can't get physical memory from sysfs.
Is there any way around this problem
The text was updated successfully, but these errors were encountered: