# Pre-Allocate Storage for a Rolling Buffer

Media Server must allocate storage for a rolling buffer before it can write encoded video to the buffer. Allocating storage is not instantaneous so to ensure that Media Server can start recording from a stream immediately, pre-allocate storage before you start a session.

To pre-allocate storage in the rolling buffer

- Send the `PreAllocateStorage` action to Media Server:

  `http://localhost:14000/action=PreAllocateStorage`

  For more information about this action, refer to the Media Server Reference.

_FT_HTML5_bannerTitle.htm