Page 1 of 1

CPU allocation

Posted: 2011/09/25 14:37:23
by RuRuRu612754
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

Posted: 2011/09/26 08:15:54
by TrevorH
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.