| CPC G06F 3/0631 (2013.01) [G06F 3/0619 (2013.01); G06F 3/0679 (2013.01)] | 16 Claims |

|
1. A memory management method comprising:
allocating, by a processor, a partial area of a memory as a reserved area during booting;
allocating another partial area of the memory as a normal area during booting;
identifying, by the processor, a contiguous memory allocation (CMA) area in the reserved area;
identifying, by the processor, a number of free pages in the CMA;
comparing the number of free pages in the CMA area with a first reference value;
comparing the number of free pages in the CMA area with a second reference value;
adjusting, by the processor, a size of the CMA area; and
allocating, by the processor, to a process, a portion of the memory in the adjusted CMA area corresponding to a required size indicated by a CMA request of the process,
wherein the adjusting the size of the CMA area comprises increasing the size of the CMA area based on the number of free pages in the CMA area being less than the first reference value and decreasing the CMA area based on the number of free pages in the CMA area being greater than the second reference value,
wherein the second reference value is greater than the first reference value, and
wherein the increasing the size of the CMA area comprises converting a movable block that is outside the CMA area to a CMA within the CMA area.
|