Hi.
My server cpu is Core 2 Duo
This CPU has two cores
These two core to assigned to any program is it possible?
For example.
core(1)=Apache
core(2)=Samba
CPU allocation
CPU allocation
man taskset
However, consider the case where another task that is not bound with cpu affinity is running on cpu 0, now apache has to wait for that to finish before it can run. Without cpu affinity set, it could have been dispatched on cpu 1 instead and would run sooner.
However, consider the case where another task that is not bound with cpu affinity is running on cpu 0, now apache has to wait for that to finish before it can run. Without cpu affinity set, it could have been dispatched on cpu 1 instead and would run sooner.