Chris Samuel wrote:
----- "Eugene Loh" <Eugene.Loh@Sun.COM> wrote:
This is an important discussion.
Indeed! My big fear is that people won't pick up the significance
of the change and will complain about performance regressions
in the middle of an OMPI stable release cycle.
2) The proposed OMPI bind-to-socket default is less severe. In the
general case, it would allow multiple jobs to bind in the same way
without oversubscribing any core or socket. (This comment added to
the trac ticket.)
That's a nice clarification, thanks. I suspect though that the
same issue we have with MVAPICH would occur if two 4 core jobs
both bound themselves to the first socket.
Okay, so let me point out a second distinction from MVAPICH: the default policy would be to spread out over sockets.
Let's say you have two sockets, with four cores each. Let's say you submit two four-core jobs. The first job would put two processes on the first socket and two processes on the second. The second job would do the same. The loading would be even.
I'm not saying there couldn't be problems. It's just that MVAPICH2 (at least what I looked at) has multiple shortfalls. The binding is to fill up one socket after another (which decreases memory bandwidth per process and increases chances of collisions with other jobs) and binding is to core (increasing chances of oversubscribing cores). The proposed OMPI behavior distributes over sockets (improving memory bandwidth per process and reducing collisions with other jobs) and binding is to sockets (reducing changes of oversubscribing cores, whether due to other MPI jobs or due to multithreaded processes). So, the proposed OMPI behavior mitigates the problems.
It would be even better to have binding selections adapt to other bindings on the system.
In any case, regardless of what the best behavior is, I appreciate the point about changing behavior in the middle of a stable release. Arguably, leaving significant performance on the table in typical situations is a bug that warrants fixing even in the middle of a release, but I won't try to settle that debate here.