CPC G06F 9/4406 (2013.01) [G06F 3/0608 (2013.01); G06F 3/0653 (2013.01); G06F 3/0673 (2013.01); G06F 9/4401 (2013.01); G06F 9/442 (2013.01); G06F 9/485 (2013.01); G06F 9/5016 (2013.01); G06F 11/1438 (2013.01)] | 13 Claims |
1. A non-transitory machine-readable medium having instructions stored therein, which when executed by a data processing system, cause the data processing system to perform a method for memory management, the method comprising:
monitoring, by a memory usage monitor executed by the data processing system, a memory usage of a program;
monitoring, by a state monitor executed by the data processing system, an operating state of the program;
in response to determining that the operating state of the program is an active state and the memory usage of the program exceeds a first predetermined threshold, performing a first memory usage reduction action, wherein when the program is in the active state, the program maintains an inter-process call (IPC) communication session with at least one kernel component of an operating system; and
in response to determining that the operating state of the program is an inactive state and the memory usage of the program exceeds a second predetermined threshold, performing a second memory usage reduction action.
|