CPU allocation

If it doesn't fit in another category, ask it here.
Post Reply
RuRuRu612754
Posts: 1
Joined: 2011/09/25 14:25:30

CPU allocation

Post by RuRuRu612754 » 2011/09/25 14:37:23

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

User avatar
TrevorH
Forum Moderator
Posts: 26956
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

CPU allocation

Post by TrevorH » 2011/09/26 08:15:54

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.

Post Reply

Return to “CentOS 5 - Miscellaneous Questions”