The invention is suitable for the technical field of memory resource calling, and provides a memory resource calling optimization method and
system. The method comprises the following steps: comprehensively monitoring memory resources to obtain memory
monitoring data, scheduling and analyzing the memory
monitoring data, and generating a distribution call notification or a
recovery call notification; obtaining program request information and memory state information according to the allocation call notification, and allocating the target
memory block to perform memory resource configuration; determining a plurality of adjacent idle memories according to the
recovery calling notification, and compressing and recovering the plurality of adjacent idle memories; and when a preset fragment arrangement condition is met, identifying a plurality of dispersed memory fragments, and integrating the plurality of memory fragments into an available
memory block. According to the method, the problems of more memory fragments, low
utilization rate and poor flexibility in the prior art can be solved, more efficient memory allocation and
recovery can be realized, the memory fragments are reduced, the
utilization rate of the memory is improved, and meanwhile, the adaptability of a
system to different memory requirements is enhanced.