Patent ID: 8024543

Claim:
A memory management method for a memory system of a mobile device, the method comprising: initializing memory blocks of the memory system when the mobile device is powered on, and obtaining statistical data of a peak utilization rate and an average fragmentation rate of each memory block after a preset time interval; adjusting memory configuration of the memory blocks if a preset statistical count of obtaining the statistical data has been reached, the adjusting comprising: adjusting configuration of each memory block of type P 1 having a maximum peak utilization rate and each memory block of type P 2 having a minimum peak utilization rate, residual parts of said each memory block of type P 2 constituting a memory block R 1 ; adjusting a size of each memory block of type P 3 whose peak utilization rate is greater than a preset peak utilization rate and the average fragmentation rate is a maximum, or adjusting a size of each memory block of type P 4 whose size is largest among the memory blocks whose size is less than a size of a memory block of type P 3 , according to an effective utilization size of said each memory block of the type P 3 , residual parts of said each memory block of the type P 3 or P 4 constituting a memory block R 2 ; and merging the memory blocks R 1 and R 2 to form one or more memory blocks of the type Pl, the residual parts constituting a memory block R 3 , wherein the memory block R 3 is used to merge with the memory blocks R 1 and R 2 when the memory system is adjusted at a next time.