A method, system, and program for managing memory page requests in a
multi-processor data processing system determines a threshold value of
available memory, and dynamically adjusts an allocation time to fulfill a
page request if the available memory is below a threshold value. The
allocation time to fulfill the page request is based upon a percentage of
available memory pages once a page stealer commences a scan for pages. An
allocation wait time is inversely proportionally adjusted depending upon
the percentage of available memory. The allocation wait time has a
duration that increases in time as the percentage of available memory
decreases and decreases in time as the percentage of available memory
increases. More specifically, an average time per page to allocate a page
including a scan time for the scan in computing the average time is
determined. Then a tunable value is applied to the average time to
determine a wait time. In a preferred embodiment, user defined values are
received that would control the allocation wait time before fulfilling a
page request.