In a method for optimizing performance in a memory system, a data structure configured
to provide at least one free block of memory is received in the memory system.
At least one bucket of memory is released in a swap device of the memory system
corresponding to at least one free block of memory provided by the data structure.