7: "numReadMissesServicedByModified", 8: "numWriteHits", 9: "numWriteMisses", 10: "numWriteOnSharedMisses", 11: "numWriteOnInvalidMisses", 12: "numInvalidatesSent", 13: "numInclusionMisses", 14: "numInclusionHits", 15: "numLLCMisses", 16: "numLLCHits" } plt.figure() plt.xlabel("Array Size") plt.ylabel("Read Requests") plt.plot(x, filter_array(MSI, 1), label="MSI Hits") plt.plot(x, filter_array(MESI, 1), label="MESI Hits") plt.plot(x, filter_array(MESIMG, 1), label="MESIMG Hits") plt.legend(loc="upper right") plt.show() plt.figure() plt.xlabel("Array Size") plt.ylabel("Miss Serviced by") plt.plot(x, filter_array(MSI, 6), label="Shared in MSI") plt.plot(x, filter_array(MESI, 6), label="Shared in MESI") plt.plot(x, filter_array(MESIMG, 6), label="Shared in MESIMG") plt.legend(loc="upper right") plt.show()
7: "numReadMissesServicedByModified", 8: "numWriteHits", 9: "numWriteMisses", 10: "numWriteOnSharedMisses", 11: "numWriteOnInvalidMisses", 12: "numInvalidatesSent", 13: "numInclusionMisses", 14: "numInclusionHits", 15: "numLLCMisses", 16: "numLLCHits" } plt.figure() plt.xlabel("Array Size") plt.ylabel("Read Requests") plt.plot(x, filter_array(MSI, 1), label="MSI Hits") plt.plot(x, filter_array(MESI, 1), label="MESI Hits") plt.plot(x, filter_array(MSI, 2), label="MSI Misses") plt.plot(x, filter_array(MESI, 2), label="MESI Misses") plt.legend(loc="upper right") plt.show() plt.figure() plt.xlabel("Array Size") plt.ylabel("Miss Serviced by") plt.plot(x, filter_array(MSI, 6), label="Shared in MSI") plt.plot(x, filter_array(MSI, 7), label="Modified in MSI") plt.plot(x, filter_array(MESI, 6), label="Shared in MESI") plt.plot(x, filter_array(MESI, 7), label="Modified in MESI") plt.legend(loc="upper right") plt.show()