Distributed shared memory systems have become popular as a means of utilizing clusters of computers for solving large applications. We have developed a high-performance DSM at Wayne State University. To improve the performance of our DSM, we have developed a memory hierarchy simulator that allows us to compare various techniques very quickly and with much less effort. This paper describes our simulator, DSMSim. We show that the simulator’s performance closely matches the real system and demonstrate potential performance gains of up to 60 percent after adding optimization features to the simulator. The simulator also accepts the same code as the Software Distributed Shared Memory.