I have alreadyÂ implementedÂ test/sleep code but the main problem is with the broadcasts that send out the SIMD instructions, because these are blocking and when the system is idle, its these guys who consume the CPU while waiting for work.
Helps quite a bit (thanks Jeff) in that it makes yield moreÂ aggressiveÂ but theÂ fundamentalÂ problem still remains.
A non-blocking broadcast would fix it, and/or a good scheduler.
Do other MPI's use busy loops so extensively in there comms?
From: Jeff Squyres <jsquyres_at_[hidden]>
To: Open MPI Users <users_at_[hidden]>
Sent: Friday, 2 September 2011 9:45 PM
Subject: Re: [OMPI users] High CPU usage with yield_when_idle =1 on CFS
This might also be in reference to the issue that shed_yield() really does nothing in recent Linux kernels (there was big debate about this at kernel.org).Â
IIRC, there's some kernel parameter that you can tweak to make it behave better, but I'm afraid I don't remember what it is.Â Some googling might find it...?
On Sep 1, 2011, at 10:06 PM, Eugene Loh wrote:
> On 8/31/2011 11:48 PM, Randolph Pullen wrote:
>> I recall a discussion some time ago about yield, the Completely F%âd Scheduler (CFS) and OpenMPI.
>> My system is currently suffering from massive CPU use while busy waiting.Â This gets worse as I try to bump up user concurrency.
>> I am running with yield_when_idle but its not enough.
>> Is there anything else I can do to release some CPU resource?
>> I recall seeing one post where usleep(1) was inserted around the yields, is this still feasible?
>> I'm using 1.4.1 - is there a fix to be found in upgrading?
>> Unfortunately I am stuckÂ with the CFS as I need Linux.Â Currently its Ubuntu 10.10 with 184.108.40.206
> I think OMPI doesn't yet do (much/any) better than what you've observed.Â You might be able to hack something up yourself.Â In something I did recently, I replaced blocking sends and receives with test/nanosleep loops.Â An "optimum" solution (minimum latency, optimal performance at arbitrary levels of under and oversubscription) might be elusive, but hopefully you'll quickly be able to piece together something for your particular purposes.Â In my case, I was lucky and the results were very gratifying... my bottleneck vaporized for modest levels of oversubscription (2-4 more processes than processors).
> users mailing list
For corporate legal information go to:
users mailing list