A system for selecting a subset of issued flash storage commands to
improve processing time for command execution. A plurality of ports
stores a first plurality of command identifiers and are associated with
the plurality of ports. Each of the first plurality of arbiters selects
an oldest command identifier among command identifiers within each
corresponding port resulting in a second plurality of command
identifiers. A second arbiter makes a plurality of selections from the
second plurality of command identifiers based on command identifier age
and the priority of the port. A session identifier queue stores commands
associated with the plurality of selections among other commands forming
a third plurality of commands. A microcontroller selects an executable
command from the third plurality of commands for execution based on an
execution optimization heuristic. After execution of the command, the
command identifier in the port is cleared.