Patent ID: 11989420

Abstract:
The present disclosure relates to the technical field of system-level memory test, and in particular, to a memory allocation method and apparatus, an electronic device, and a computer-readable storage medium. The method includes: obtaining a plurality of memory segments corresponding to a to-be-processed task, and determining a plurality of operation cores in an operation platform that executes the to-be-processed task; determining a first-capacity memory segment and a second-capacity memory segment in the plurality of memory segments according to the plurality of operation cores, wherein a memory capacity of the second-capacity memory segment is larger than a memory capacity of the first-capacity memory segment; allocating each first-capacity memory segment one by one to the operation cores, and determining remaining memory capacities corresponding to the operation cores respectively; and allocating the second-capacity memory segment to the operation cores according to the remaining memory capacities, to obtain a memory allocation result.