A memory resource optimization apparatus, comprising: a memory, configured to store one or more instructions, a processor, coupled to the memory, characterized in that the processor, when executing said one or more instructions, carries out: acquiring performance data of each program in a working set, wherein the performance data of each program is a variation that is generated when a preset performance indicator of each program varies with a capacity of an allocated last level cache, LLC, resource; categorizing each program according to the performance data of each program and the memory access frequency, obtained by means of statistics collection, of each program; selecting, according to categorization of each program in the working set and a preset decision policy, a page coloring-based partitioning policy corresponding to the working set, wherein the page coloring-based partitioning policy comprises a page coloring-based collaborative partitioning policy for performing page coloring-based partitioning on both the LLC and a dynamic random access memory bank, DRAM Bank; and writing the page coloring-based partitioning policy corresponding to the working set to an operating system kernel, wherein the operating system kernel performs corresponding page coloring-based partitioning processing for the working set. a memory, configured to store one or more instructions, a processor, coupled to the memory, characterized in that the processor, when executing said one or more instructions, carries out: acquiring performance data of each program in a working set, wherein the performance data of each program is a variation that is generated when a preset performance indicator of each program varies with a capacity of an allocated last level cache, LLC, resource; categorizing each program according to the performance data of each program and the memory access frequency, obtained by means of statistics collection, of each program; selecting, according to categorization of each program in the working set and a preset decision policy, a page coloring-based partitioning policy corresponding to the working set, wherein the page coloring-based partitioning policy comprises a page coloring-based collaborative partitioning policy for performing page coloring-based partitioning on both the LLC and a dynamic random access memory bank, DRAM Bank; and writing the page coloring-based partitioning policy corresponding to the working set to an operating system kernel, wherein the operating system kernel performs corresponding page coloring-based partitioning processing for the working set. acquiring performance data of each program in a working set, wherein the performance data of each program is a variation that is generated when a preset performance indicator of each program varies with a capacity of an allocated last level cache, LLC, resource; categorizing each program according to the performance data of each program and the memory access frequency, obtained by means of statistics collection, of each program; selecting, according to categorization of each program in the working set and a preset decision policy, a page coloring-based partitioning policy corresponding to the working set, wherein the page coloring-based partitioning policy comprises a page coloring-based collaborative partitioning policy for performing page coloring-based partitioning on both the LLC and a dynamic random access memory bank, DRAM Bank; and writing the page coloring-based partitioning policy corresponding to the working set to an operating system kernel, wherein the operating system kernel performs corresponding page coloring-based partitioning processing for the working set.