1. A memory comprising: a plurality of garbage collection units; and a controller configured to determine whether to select a garbage collection unit of the plurality of garbage collection units for garbage collection based on a variable threshold number of the plurality of garbage collection units to garbage collect.