Patent ID: 7761656

Claim:
A method for managing access to a memory having a plurality of memory banks, the method comprising: identifying a given memory page requested by a current memory request, wherein the given memory page is in a given memory bank of the plurality of memory banks; determining whether the given memory page should be closed or left open based on a current prediction value corresponding to a history of recent memory accesses to the given memory bank; and once access to the given memory page for the current memory request has completed, performing one of: closing the given memory page in response to said determining resulting in a determination that the given memory page should be closed; or leaving open the given memory page in response to said determining resulting in a determination that the given memory page should be left open; and determining that none of one or more additional memory requests waiting to access the memory are requesting a memory page in the given memory bank; wherein said determining whether the given memory page should be closed or left open is performed in response to said determining that none of the one or more additional memory requests are requesting a memory page in the given memory bank.