Patent ID: 9665512
Date: 2017-05-30
CPC Classifications: G06F

Claim:
1. A computer-implemented method for tuning memory in presence of asymmetrical memory transfer costs comprising: assigning a threshold value asynchronously, by a memory tuner, to a memory consumer; assigning a bias value to the threshold value, by the memory tuner; monitoring, by the memory tuner, an ability to free memory by the memory consumer; determining, by the memory tuner, whether to reclaim memory of the memory consumer; in response to a determination to reclaim memory of the memory consumer, directing, by the memory tuner, the memory consumer to reclaim the memory of the memory consumer; determining whether, when reclaiming the memory of the memory consumer, the memory consumer exhibits at least one of a time out or a completion of the reclaim after a first predetermined amount of time; in response to a determination that, when reclaiming the memory of the memory consumer, the memory consumer exhibits at least one of a time out or a completion of the reclaim after the first predetermined amount of time: in response to a determination that, when reclaiming the memory of the memory consumer, the memory consumer does not exhibit at least one of a time out or a completion of the reclaim after the first predetermined amount of time: updating per memory consumer control values, by the memory tuner; logically partitioning the memory of the memory consumer, by the memory tuner, according to both an ability of the memory consumer to free the memory and a defined ratio that divides the memory used by the memory consumer into at least a first portion and a second portion; subsequent to directing, by the memory tuner, the memory consumer to reclaim the memory of the memory consumer, reclaiming, by the memory consumer, memory from the second portion; and subsequent to reclaiming, by the memory consumer, memory from the second portion, replenishing, by the memory consumer, the second portion of the memory freed by the memory consumer asynchronously from the first portion in a manner that maintains the defined ratio.