Can MPI oversubscribing crash the system?
===

I have implemented a sample MPI application with a Producer and a Consumer. The producer runs on a process with rank 0 and the consumer will be running on all the non-zero ranks. The consumer will be spawning consumer worker threads to process the messages generated by the producer. The consumer threads are split into a receiver thread and worker threads.

The consumer receiver thread executes recv and upon receive passes the message to be consumed by the consumer worker which after performing the computation, sends the processed message back to the Producer(root).

I am running this code on my dual core machine. What I am noticing is that when I execute my application using `mpirun -np 2`, the application is performing just fine for any number of generated messages by the producer. When I try running the application with `mpirun -np 4`, the application crashes after processing a couple of runs.

Has somebody encountered this issue before? It would be great to get some insight into why this might be happenning.

Thanks 