Buffer underrun

Buffer underrun

In computing, buffer underrun or buffer underflow is a state occurring when a buffer used to communicate between two devices or processes is fed with data at a lower speed than the data is being read from it. This requires the program or device reading from the buffer to pause its processing while the buffer refills. This can cause undesired and sometimes serious side effects, since the data being buffered is generally not suited to stop-start access of this kind.

General causes and solutions

The term should not be confused with buffer overflow, a condition where a portion of memory being used as a buffer has a fixed size but is filled with more than that amount of data. Whereas buffer "overflows" are usually the result of programming errors, and thus preventable, buffer "underruns" are often the result of transitory issues on the "connection" which is being buffered—either a connection between two processes, with others competing for CPU time; or a physical link, with devices competing for bandwidth.

The simplest guard against such problems is to increase the size of the buffer—if an incoming data stream needs to be read at 1 bit per second, a buffer of 10 bits would allow the connection to be blocked for up to 10 seconds before failing, whereas one of 60 bits would allow a blockage of up to a minute. However, this requires more memory to be available to the process or device, which can be expensive. It also assumes that the buffer starts full—requiring a potentially significant pause before the reading process begins—and that it will always be full unless the connection is currently blocked. This latter caveat means that if the data does not, on average, arrive significantly "faster" than it is needed, any "blockages" on the connection will be cumulative—so that "dropping" one bit every minute on our hypothetical connection would lead to the 60-bit buffer underrunning if the connection remained active for an hour.

CD and DVD recording issues

Buffer underruns can cause serious problems during CD/DVD burning, because once the laser is on, it cannot stop and resume flawlessly; thus the pause needed by the underrun can cause the data on the disc to become invalid. Since the buffer is generally being filled from a relatively slow source, such as a hard disk or another CD/DVD, a heavy CPU or memory load from other concurrent tasks can easily exhaust the capacity of a small buffer. Therefore, a technique called buffer underrun protection was implemented by various individual CD/DVD writer vendors, under various trademarks, such as Plextor BurnProof, Yamaha SafeBurn, JustLink or Seamless Link. With this technique, the laser is indeed able to stop writing for any amount of time and resume when the buffer is full again. The gap between successive writes is extremely small. [http://www.ricoh.com/drive/asia/justlink/j_06.html]

Another way to protect against the problem, when using rewritable media (CD-RW, DVD-RW, DVD-RAM), is to use the UDF file system, which organizes data in smaller "packets", referenced by a single, updated address table, which can therefore be written in shorter bursts.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Buffer Underrun —   [dt. »Leerlaufen des Puffers«] der, Fehler beim Schreiben (Brennen) einer CD R oder einer CD RW. Viele, vor allem ältere Schreibverfahren benötigen einen kontinuierlichen Datenstrom. Schwankungen in der Datenübertragung gleicht dabei ein… …   Universal-Lexikon

  • Buffer underrun — Im Computerbereich ist ein Buffer Underrun die Situation, in der ein Datenpuffer, der von einer Quelle beschrieben und von anderer Seite ausgelesen wird, plötzlich leer ist, weil die Quelle nicht schnell genug Daten liefert. Inhaltsverzeichnis 1… …   Deutsch Wikipedia

  • Buffer-Underrun — Im Computerbereich ist ein Buffer Underrun die Situation, in der ein Datenpuffer, der von einer Quelle beschrieben und von anderer Seite ausgelesen wird, plötzlich leer ist, weil die Quelle nicht schnell genug Daten liefert. CD/DVD Brennproblem… …   Deutsch Wikipedia

  • buffer underrun — buferio ištuštėjimas statusas T sritis informatika apibrėžtis Klaida, kai ↑buferyje nebėra programos veikimui būtinų duomenų. Įvyksta, kai duomenys į buferį nespėjami tiekti, o juos apdorojanti programa negali laukti, pavyzdžiui, kai duomenys… …   Enciklopedinis kompiuterijos žodynas

  • Buffer underrun — (Computers) error that occurs when a stream of data recorded on a CD is slower than the laser burning the CD (due to poor software or limited buffer memory in the CD drive) …   English contemporary dictionary

  • underrun — noun a) A condition in which fewer products are delivered or produced than had been ordered. b) A condition in which the read/write buffer is fed with data at a slower rate than required; a …   Wiktionary

  • Data buffer — In computer science, a buffer is a region of a physical memory storage used to temporarily hold data while it is being moved from one place to another. Typically, the data is stored in a buffer as it is retrieved from an input device (such as a… …   Wikipedia

  • Optical disc recording technologies — Optical discs Optical disc Optical disc drive Optical disc authoring Authoring software Recording technologies Recording modes Packet writing Optical media types …   Wikipedia

  • Subdesbordamiento de búfer — En informática un subdesbordamiento de búfer (Buffer underflow/underrun) es un problema aritmético, esto sucede cuando un búfer carga su información (flujo de datos) a una velocidad más baja que el procesamiento de la misma, esto hace que el… …   Wikipedia Español

  • Tecnologías de grabación de discos ópticos — Las grabadoras de CD y DVD tienen historia respecto a las tecnologías de grabación. Frecuentemente, las tecnologías actuales no son compatibles con las anteriores. En primer lugar, explicaremos los distintos modos de grabación. Para el CD tenemos …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”