cmcfarlen commented on code in PR #11871: URL: https://github.com/apache/trafficserver/pull/11871#discussion_r1850644203
########## 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: This should handle when numa.h is not available -- 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