CPU allocation

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

CPU allocation

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


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.


User avatar
Forum Moderator
Posts: 29451
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”