Comments (3)
numastat -m
gets Hugepages memory just from /sys/devices/system/node/node$/meminfo
:
[root@localhost home]# cat /sys/devices/system/node/node0/meminfo
...
Node 0 HugePages_Total: 1
Node 0 HugePages_Free: 1
Node 0 HugePages_Surp: 0
I think we can get correct node hugepages memory from /sys/devices/system/node/node0/hugepages/
.
[root@localhost home]# ll /sys/devices/system/node/node0/hugepages/
total 0
drwxr-xr-x 2 root root 0 Dec 8 21:10 hugepages-1048576kB
drwxr-xr-x 2 root root 0 Dec 8 21:10 hugepages-2048kB
drwxr-xr-x 2 root root 0 Dec 8 21:10 hugepages-32768kB
drwxr-xr-x 2 root root 0 Dec 8 21:10 hugepages-64kB
[root@localhost home]# cd /sys/devices/system/node/node0/hugepages/
[root@localhost hugepages]# for i in `ls`; do echo $i; cat $i/nr_hugepages;done
hugepages-1048576kB
1
hugepages-2048kB
512
hugepages-32768kB
0
hugepages-64kB
0
[root@localhost hugepages]#
from numactl.
4 GB hugepage memory(2 x 1 GB Huge Pages, 1024 x 2 MB Huge Pages:
[root@localhost numactl]# cat /proc/cmdline
BOOT_IMAGE=/Image.gz root=/dev/mapper/openeuler-root ro rd.lvm.lv=openeuler/root rd.lvm.lv=openeuler/swap video=VGA-1:640x480-32@60me console=ttyAMA0 crashkernel=512M smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15 video=efifb:off earlycon default_hugepagesz=1G hugepagesz=1G hugepages=2 hugepagesz=2M hugepages=1024
[root@localhost numactl]# ./numastat -m
Per-node system memory usage (in MBs):
Node 0 Node 1 Total
--------------- --------------- ---------------
....
HugePages_Total 2048.00 2048.00 4096.00
HugePages_Free 2048.00 2048.00 4096.00
HugePages_Surp 0.00 0.00 0.00
...
After update system hugepages memory info from sysfs/node/hugepages directory, we can obtain correct system hugepages meminfo.
from numactl.
resolved.
from numactl.
Related Issues (20)
- Reference actions by commit SHA HOT 2
- usage of mbind, "maxnode" argument HOT 2
- Potential Bug: memcpy using msize/2 but using msize for performance calculation HOT 4
- Create next release HOT 6
- EINVAL for numa_set_schedaffinity HOT 2
- Add support for aarch64 clearcache HOT 2
- suppress printing "libnuma.c: Success" HOT 2
- get_mempolicy: Function not implemented HOT 5
- Add MemAvailable per node HOT 4
- better handling of CONFIG_NUMA=n / get_mempolicy: Function not implemented HOT 4
- Compilation errors for __NR_set_mempolicy_home_node HOT 1
- Fallback for `__NR_set_mempolicy_home_node` for architecture `__arm__` is missing HOT 2
- nuamdemo [random2] some result is not show after execute numodemo test HOT 1
- confused about library name in debian HOT 1
- setting membind: Invalid argument
- Format of node distances is hard to read on 4xGH200 system
- How to implement the weight interleaving memory allocation strategy? HOT 1
- Memory leakage occurs in the numa_distance function in dlopen mode HOT 6
- Provide options to easily select numa nodes of a particular CPU socket
- Any plan for a new release?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numactl.