A system and method of adaptively reconfiguring a pool of buffers are
provided. The buffers are initially configured to a size (i.e., a current
size). Each time data is placed in the buffers by an application program,
it is determined whether the size of the data is greater than the current
size of the buffers. If the size of the data is greater than the current
size of the buffers, the buffers are reconfigured to the size of the data
if the number of times data of that size is stored in the buffers is
greater than a first threshold. If, however, the size of the data is
smaller than the current size of the buffers, the buffers may be
reconfigured to the size of the data if the number of times data of that
size is stored in the buffers is smaller than a second threshold.