Questions tagged [numactl]

numactl runs processes with a specific NUMA scheduling or memory placement policy.

The policy is set for command and inherited by all of its children. In addition it can set persistent policy for shared memory segments or files.

Use -- before command if using command options that could be confused with numactl options.

Valid node specifiers

all All nodes

number  Node number

number1{,number2}   Node number1 and Node number2

number1-number2 Nodes from number1 to number2

! nodes Invert selection of the following specificati
29 questions
1
vote
1 answer

numactl and move_pages mismatch

I have developed a simple program to test in which NUMA node a page is, based on this question. The problem is that comparing my program results with numactl -H on a Xeon E5-2698 v4 (two NUMA nodes) shows different outputs. numactl -H…
DrNoob
  • 75
  • 1
  • 7
1
vote
1 answer

numaif.h: MPOL_LOCAL undeclared for use in mbind

According to the mbind man page, one possible mode is MPOL_LOCAL, which places the memory region in the same node of the CPU that triggered the allocation: #include #include #include #include #define N…
João Neto
  • 1,732
  • 17
  • 28
1
vote
1 answer

How to reset numastat statistics? (other than rebooting)

When running the command numastat to see the hits, misses, foreign, etc. The counters keep increasing while running some tests. I could make the difference between two tests to get the statistics for that test, but is there a way to reset them to…
pf440
  • 21
  • 5
1
vote
1 answer

pysys startProcess with numactl

numactl is a process which can set processor affinity. it takes the process in which to pin to a cpu as a parameter: numactl -physcpubind 0 I can successfully run my process using the pysys startProcess…
awaugh
  • 75
  • 1
  • 6
1
vote
0 answers

NUMA page_migration performance issue

I'm running java application with ~80GB of memory-mapped files, which should be accessible via TCP, using AWS r3.8xlarge for that (I have it reserved, so migrating to non-NUMA architecture is not an option, at least right now) and have the following…
Stanislav Levental
  • 2,165
  • 1
  • 14
  • 28
0
votes
0 answers

How can numactl cpunodebind work properly with isolated cpus?

My process has one high frequency thread and several low frequency threads. I want to bind the high frequency thread A on an isolated cpu 18 (of NUMA node 0), and other low frequency threads on other non-isolated cpu…
0
votes
1 answer

What is the meaning of size for the numactl --hardware output

Does anyone know the exact meaning of "node size" for "numactl --hardware" output. I'm asking because I expected this memory value to be fixed but it changes slightly on some of my hosts. There have been no changes to the numa profile. e.g. $…
0
votes
1 answer

The db2prereqcheck utility could not find the library file libnuma.so.1. on ubi7/ubi:latest docker image

i have a problem to install numactl-libs (or libnuma.so.1) on a ubi7/ubi:latest Docker image to run the db2 installation. I have built a Docker image for db2 and wanted to test whether the DB2 installation runs successfully. However, I get the…
Brahim
  • 13
  • 1
  • 5
0
votes
0 answers

does local variables get allocated on different numa node?

If we have an application which has two memory allocations malloc and numa_alloc(1) (assume we have two numa nodes 0 & 1), malloc shall be using memory on node 0 and numa_alloc shall be allocated on node 1. In this application if we have local…
valmiki
  • 701
  • 9
  • 24
0
votes
1 answer

MongoDB and NUMA

MongoDB write performance is really slow on this machine with NUMA. I went through this https://docs.mongodb.com/manual/administration/production-notes/ . I disabled zone reclaim and started mongodb with numactl --interleave=all command as…
0
votes
1 answer

Core binding for particular rank execution in MPICH2 says sched_setaffinity: Invalid argument.

I'm working on HPC that has 144 cores. I have 24 nodes and every node has 6cpus. like node 0:0,1,2,3,4,5node 1: 6,7,8,9,10,11... Using Mpich2. I'm running my c ecxecutable like this. mpiexec -n 25 ./a.out In the a.out it will work as rank 0 makes…
Krunal
  • 1
  • 3
0
votes
1 answer

How to restricit my cpu affinity to a subset of the cpus available on a given machine?

I am working on a machine with 4 sockets with another person that launch performance tests on one precise socket and does not want anybody to iterfer with this socket. I would like to work transparently on the 3 remaining sockets. How could could I…
janou195
  • 1,175
  • 2
  • 10
  • 25
0
votes
1 answer

Binding two threads in subsequent groups of threads to the same core

In this application I have groups of N (POSIX) threads. The first group starts up, creates an object A, and winds down. A little bit later a new group with N threads starts up, uses A to create a similar object B, and winds down. This pattern is…
micans
  • 1,106
  • 7
  • 16
-1
votes
1 answer

numactl --localalloc on Mysql

I run mysql on 2*Intel 6226 Server. When I use numactl -N 0 --localalloc /usr/sbin/mysqld to start mysql service I find that the memory from node 1 is be used, which is different from using option numactl -N 0 -m 0 /usr/sbin/mysqld. Why numactl…
Jason Lee
  • 24
  • 6
1
2