The invention provides a detection optimization method and
system for a heterogeneous memory
system. The method is applied to the detection
optimization system for the heterogeneous memory
system comprising a main memory and target
byte addressing equipment. The detection
optimization system comprises an instruction marking
assembly and an
instrumentation assembly which are inserted into an application program running based on the heterogeneous memory system in an
instrumentation mode. The method comprises the following steps: based on an instruction marking component, detecting whether a
memory address accessed based on each first instruction contained in an application program is in an address interval of target
byte addressing equipment or not; if yes, recording the first instruction in a first instruction mark file; on the basis of the
instrumentation component, detecting whether each second instruction contained in the application program is matched with the first instruction mark file or not; if yes, the second instruction is subjected to instrumentation based on the first detection logic, and after instrumentation is completed, the target
byte addressing device is detected based on the first detection logic when it is detected that the application program accesses the target
byte addressing device based on the second instruction.