[MPICH] Finalize on SHM

Xie Min xmxmxie at gmail.com
Thu Dec 14 11:24:46 CST 2006


I am studying MPICH2 source code.

In mpid_finalize(), a Close protocol will be start when VC's state is
ACTIVE, and when PKT_CLOSE is acked, MPIDI_CH3_Connection_terminate()
will be called to decrease MPIDI_Outstanding_close_ops, and
MPIDI_CH3U_VC_WaitForClose() will return when
MPIDI_Outstanding_close_ops change to 0. But I noticed that in
MPIDI_CH3_Connection_terminate(), if VC is a SHM channel, the VC will
be removed from shm_reading_list and shm_writing_list before
MPIDI_CH3U_Handle_connection() is called, while in CH3_Finalize(),
MPIDI_CH3U_Finalize_sshm() will be called to recycle SHM memory, but
because the closed VC is not in shm_reading_list and shm_writing_list
anymore, SHM memory of this VC cannot be recycled. It this a bug?

Thanks!


Min Xie




More information about the mpich-discuss mailing list