Commit 6cfb5b7a authored by Reem Bahsoun's avatar Reem Bahsoun

prevents thread from being pinned to core 8, to avoid L2 L1 overlap

parent a5bf6c78
......@@ -57,10 +57,10 @@ void *aerial_vnf_nr_p7_thread_start(void *ptr)
int s;
cpu_set_t cpuset;
CPU_SET(8, &cpuset);
s = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset);
if (s != 0)
printf("failed to set afinity\n");
// CPU_SET(8, &cpuset);
// s = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset);
// if (s != 0)
// printf("failed to set afinity\n");
pthread_attr_t ptAttr;
if (pthread_attr_setschedpolicy(&ptAttr, SCHED_RR) != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment