A method for adjusting a memory configuration parameter, comprising: obtaining a plurality of pieces of resource pressure, wherein the plurality of pieces of resource pressure are used to indicate a plurality of requirements for memory compression; and adjusting the memory configuration parameter based on the plurality of pieces of resource pressure; wherein, when the memory configuration parameter comprises a memory swap parameter, and the plurality of pieces of resource pressure comprise input/output pressure and memory swap space pressure, the adjusting the memory configuration parameter based on the plurality of pieces of resource pressure comprises: reducing the memory swap parameter when the input/output pressure decreases and the memory swap space pressure decreases; or adjusting the memory swap parameter to a preset value when the input/output pressure increases and the memory swap space pressure decreases; and wherein, when the memory configuration parameter comprises the memory swap parameter, and the plurality of pieces of resource pressure comprise processor pressure and the input/output pressure, the adjusting the memory configuration parameter based on the plurality of pieces of resource pressure comprises: reducing the memory swap parameter when the input/output pressure decreases and the processor pressure increases; or adjusting the memory swap parameter to a preset value when the input/output pressure increases and the processor pressure increases. obtaining a plurality of pieces of resource pressure, wherein the plurality of pieces of resource pressure are used to indicate a plurality of requirements for memory compression; and adjusting the memory configuration parameter based on the plurality of pieces of resource pressure; wherein, when the memory configuration parameter comprises a memory swap parameter, and the plurality of pieces of resource pressure comprise input/output pressure and memory swap space pressure, the adjusting the memory configuration parameter based on the plurality of pieces of resource pressure comprises: reducing the memory swap parameter when the input/output pressure decreases and the memory swap space pressure decreases; or adjusting the memory swap parameter to a preset value when the input/output pressure increases and the memory swap space pressure decreases; and wherein, when the memory configuration parameter comprises the memory swap parameter, and the plurality of pieces of resource pressure comprise processor pressure and the input/output pressure, the adjusting the memory configuration parameter based on the plurality of pieces of resource pressure comprises: reducing the memory swap parameter when the input/output pressure decreases and the processor pressure increases; or adjusting the memory swap parameter to a preset value when the input/output pressure increases and the processor pressure increases. reducing the memory swap parameter when the input/output pressure decreases and the memory swap space pressure decreases; or adjusting the memory swap parameter to a preset value when the input/output pressure increases and the memory swap space pressure decreases; and wherein, when the memory configuration parameter comprises the memory swap parameter, and the plurality of pieces of resource pressure comprise processor pressure and the input/output pressure, the adjusting the memory configuration parameter based on the plurality of pieces of resource pressure comprises: reducing the memory swap parameter when the input/output pressure decreases and the processor pressure increases; or adjusting the memory swap parameter to a preset value when the input/output pressure increases and the processor pressure increases. reducing the memory swap parameter when the input/output pressure decreases and the processor pressure increases; or adjusting the memory swap parameter to a preset value when the input/output pressure increases and the processor pressure increases. <EOS>