tlichwala commented on code in PR #11871:
URL: https://github.com/apache/trafficserver/pull/11871#discussion_r1854204429


##########
include/iocore/eventsystem/EThread.h:
##########
@@ -691,6 +698,17 @@ EThread::Metrics::decay() -> self_type &
   return *this;
 }
 
+inline int
+EThread::get_numa_node()
+{
+  if (this->numa_node == -1) {
+    unsigned int cpu, node;
+    getcpu(&cpu, &node);
+    this->numa_node = node;
+  }
+  return this->numa_node;

Review Comment:
   The getcpu() function is included in the numactl package. Adding a 
conditional directive should solve this issue.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to