{"id":3505,"date":"2019-02-12T16:09:18","date_gmt":"2019-02-12T16:09:18","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/1-utilities-and-user-commands\/cpubind\/"},"modified":"2025-07-21T12:16:43","modified_gmt":"2025-07-21T17:16:43","slug":"cpubind","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/10-standard-services\/cpubind\/","title":{"rendered":"cpubind"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Set or get the CPU affinity for a specified process or processes matching a given name on the system.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>cpubind<\/strong> &lt;-t | -p&gt; [-m cpumask]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 100%; height: 240px;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr style=\"height: 56px;\">\n<td style=\"width: 19.9334%; height: 56px;\">\n<p>-t<\/p>\n<\/td>\n<td style=\"width: 79.6466%; height: 56px;\">\n<p>Specify the name of the process; mutually exclusive with -p<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 19.9334%; height: 56px;\">\n<p>-p<\/p>\n<\/td>\n<td style=\"width: 79.6466%; height: 56px;\">\n<p>Specify the process ID of the task; mutually exclusive with -t<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 128px;\">\n<td style=\"width: 19.9334%; height: 128px;\">\n<p>-m cpumask<\/p>\n<\/td>\n<td style=\"width: 79.6466%; height: 128px;\">\n<p>Specify the bitwise mask of the CPU to run task on 1 bit per CPU, i.e.:<br \/>\n1=1st cpu<br \/>\n2=2nd cpu<br \/>\n3=1st &amp; 2nd cpu (if no -m is supplied the current cpu mask will be returned)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>cpubind<\/strong> -t processID -m 1<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>Specify only -t OR -p option, not both. If both are supplied, -t will be ignored. When using the -t option, it will affect ALL tasks that have a field that matches the task name. A maximum of 32 tasks can be affected. A maximum of 32 processors is supported.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p>&nbsp;<\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Set or get the CPU affinity for a specified process or processes matching a given name on the system. Enter: cpubind &lt;-t | -p&gt; [-m cpumask] Where: -t Specify the name of the process; mutually exclusive with -p -p Specify the process ID of the task; mutually exclusive with -t -m cpumask Specify the [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1950,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3505","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3505"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3505\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1950"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}