[CentOS] Question: How to utilize multi-core CPUs

Mon Dec 24 01:11:10 UTC 2012
Eddie G. O'Connor Jr. <eoconnor25 at gmail.com>

On 12/23/2012 06:40 PM, fred smith wrote:
> On Sun, Dec 23, 2012 at 05:22:52PM -0600, Mike Watson wrote:
>> I've installed CentOS 6.3 on a quad-four box.  The model only indicated
>> dual core but CentOS is telling me there are four.  This is the first
>> multi-core Linux installation I've had. What is the best way to utilize
>> the multi-core CPUs? I'd like to distribute the load but I'm unsure how
>> to do that.
> Is it possible the motherboard is one of those that automatically unlocks
> hidden cores? sometimes, or so one hears, CPU vendors will lock some of
> the cores on a chip and sell it as having fewer cores than it actually
> has. The reasons usually given are either that some of the cores don't
> pass tests but the others do, or sometimes they need to fill gaps in
> production of the lower-end parts. some motherboards have technology
> (read: kludges) for discovering and unlocking such hidden cores. YMMV.
>
> As for how to utilize it, the LInux scheduler will assign programs to
> the cores as it sees fit. If the app you want to run is multi-threaded,
> its threads will be distributed across multiple cores if the scheduler
> thinks there are CPU cycles going to waste on some cores.
>
> I've heard that it is posible to tie a process to a specific core,
> but I have no idea how one does it in real life.
>
> Fred
>
I would think this is something you WOULDN'T want to do?...supposing 
that the core you tie a process to fails?....wouldn't that be something 
you'd like to avoid at all costs? I thought that was the whole premise 
for having multi-cores...not just for speed, but to also ensure that the 
processing power needed for multiple running apps was there and 
available. But these are just my own personal observations of course....


EGO II