forked from numactl/numactl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error Info on 32bit: root@intel-x86:~# numademo -t -e 1M Configured Nodes does not match available memory nodes That's because sizeof(long)=4Word, but sizeof(long long)=8Word on 32bit. So (long long) assigning to (long) maybe cause overflow. long numa_node_size(int node, long *freep) { ... long sz = numa_node_size64_int(node, &f2); return sz; ... } long long numa_node_size64(int node, long long *freep) { ... } Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
- Loading branch information
Hongzhi.Song
authored and
Andi Kleen
committed
Sep 20, 2019
1 parent
034ad86
commit a7c4bc7
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters