A method for processing a memory, the method being carried out in an electronic device, the method comprising: determining a plurality of reclaimable memory pages occupied by an application to be processed; the method characterized by: determining a reclaiming proportion corresponding to the application to be processed, wherein the reclaiming proportion represents a proportion of memory pages to be reclaimed in the plurality of reclaimable memory pages; determining a reclaiming number according to the plurality of reclaimable memory pages and the reclaiming proportion, wherein the reclaiming number is a product between a total number of the plurality of reclaimable memory pages and the determined reclaiming proportion; and selecting the reclaiming number of reclaimable memory pages from the plurality of reclaimable memory pages and reclaiming the reclaiming number of memory pages; characterized in that determining the reclaiming proportion corresponding to the application to be processed comprises: determining restarting durations and an application type of the application to be processed, the application type indicating correspondences between restarting durations for the application to be processed and reclaiming proportions, each restarting duration indicating a duration taken for restarting the application to be processed after a reclaiming proportion of the plurality of reclaimable memory pages of the application to be processed is reclaimed; and determining a reclaiming proportion corresponding to the application to be processed according to a reclaiming model corresponding to the application type. determining a plurality of reclaimable memory pages occupied by an application to be processed; the method characterized by: determining a reclaiming proportion corresponding to the application to be processed, wherein the reclaiming proportion represents a proportion of memory pages to be reclaimed in the plurality of reclaimable memory pages; determining a reclaiming number according to the plurality of reclaimable memory pages and the reclaiming proportion, wherein the reclaiming number is a product between a total number of the plurality of reclaimable memory pages and the determined reclaiming proportion; and selecting the reclaiming number of reclaimable memory pages from the plurality of reclaimable memory pages and reclaiming the reclaiming number of memory pages; determining a reclaiming proportion corresponding to the application to be processed, wherein the reclaiming proportion represents a proportion of memory pages to be reclaimed in the plurality of reclaimable memory pages; determining a reclaiming number according to the plurality of reclaimable memory pages and the reclaiming proportion, wherein the reclaiming number is a product between a total number of the plurality of reclaimable memory pages and the determined reclaiming proportion; and selecting the reclaiming number of reclaimable memory pages from the plurality of reclaimable memory pages and reclaiming the reclaiming number of memory pages; characterized in that determining the reclaiming proportion corresponding to the application to be processed comprises: determining restarting durations and an application type of the application to be processed, the application type indicating correspondences between restarting durations for the application to be processed and reclaiming proportions, each restarting duration indicating a duration taken for restarting the application to be processed after a reclaiming proportion of the plurality of reclaimable memory pages of the application to be processed is reclaimed; and determining a reclaiming proportion corresponding to the application to be processed according to a reclaiming model corresponding to the application type. determining restarting durations and an application type of the application to be processed, the application type indicating correspondences between restarting durations for the application to be processed and reclaiming proportions, each restarting duration indicating a duration taken for restarting the application to be processed after a reclaiming proportion of the plurality of reclaimable memory pages of the application to be processed is reclaimed; and determining a reclaiming proportion corresponding to the application to be processed according to a reclaiming model corresponding to the application type.