A method of managing cache partitions provides a first pointer for higher
priority writes and a second pointer for lower priority writes, and uses
the first pointer to delimit the lower priority writes. For example,
locked writes have greater priority than unlocked writes, and a first
pointer may be used for locked writes, and a second pointer may be used
for unlocked writes. The first pointer is advanced responsive to making
locked writes, and its advancement thus defines a locked region and an
unlocked region. The second pointer is advanced responsive to making
unlocked writes. The second pointer also is advanced (or retreated) as
needed to prevent it from pointing to locations already traversed by the
first pointer. Thus, the pointer delimits the unlocked region and allows
the locked region to grow at the expense of the unlocked region.