Buffer Underrun and Overrun Scenarios

Written by Stephen Bucaro


---------------------------------------------------------- Permission is granted forrepparttar below article to forward, reprint, distribute, use for ezine, newsletter, website, offer as free bonus or part of a product for sale as long as no changes are made andrepparttar 107696 byline, copyright, andrepparttar 107697 resource box below is included. ----------------------------------------------------------

Buffer Underrun and Overrun Scenarios

By Stephen Bucaro

Buffer underrun and buffer overrun are occurrences that can result in some very frustrating errors. This is not a "how-to" article about fixing buffer underrun and buffer overrun errors, but a basic description of what a buffer is, why we need buffers, and what causes buffer underrun and buffer overrun.

Buffer Underrun

The most common occurrence of buffer underrun is CD recorders. Let's imagine an example of a CD recording session. The computer has an ATA hard drive capable of transferring data at a rate of 8 MBps (Mega Bytes per second). The CD recorder has a recording rate of 8 MBps. Everything should work fine, right?

Note: The data transfer rates mentioned in this article do not apply to any specific device. They're just for purposes of discussion.

The 8 MBps specification forrepparttar 107698 hard drive is for "burst" mode. In other words, it can transfer data at a rate of 8 MBps for only a few seconds. Thenrepparttar 107699 transfer rate drops much lower, and ifrepparttar 107700 hard drive hasn't been maintained, for example it has not been defragmented recently,repparttar 107701 transfer rate can drop even lower.

Whereas a hard drive can skip from cluster to cluster while reading and writing, a CD recorder must burnrepparttar 107702 data track in a continuous stream without stopping. The design of a CD recorder requires a "sustained" transfer rate.

When two devices that operate at different transfer rates must communicate, we can make them work together by placing a buffer between them. A buffer is a block of memory, like a bucket for bytes. When you startrepparttar 107703 CD recording session,repparttar 107704 hard drive begins fillingrepparttar 107705 buffer. Whenrepparttar 107706 buffer is almost full,repparttar 107707 CD recorder begins drawing bytes out ofrepparttar 107708 buffer.

If everything goes smoothly,repparttar 107709 hard drive will be able to keep enough bytes inrepparttar 107710 buffer so thatrepparttar 107711 speedy CD recorder won't emptyrepparttar 107712 buffer. Ifrepparttar 107713 buffer runs dry,repparttar 107714 CD recorder has no data to burn intorepparttar 107715 CD, so it stops. Buffer underrun error.

We can reducerepparttar 107716 chances of buffer underrun by configuring a larger buffer. Thenrepparttar 107717 hard drive will be able to put more bytes inrepparttar 107718 bucket beforerepparttar 107719 CD recorder starts drawing them out. However, sometimes you can't increaserepparttar 107720 size ofrepparttar 107721 buffer becauserepparttar 107722 computer doesn't have a large amount of RAM installed. Whenrepparttar 107723 computer needs more RAM, it uses "virtual" RAM. That is, it allocates part ofrepparttar 107724 hard disk and pretends like that's RAM. Now, even though you've increasedrepparttar 107725 size ofrepparttar 107726 buffer, you have causedrepparttar 107727 hard drive to work even slower.

Buffer Underrun and Overrun Scenarios

Buffer Overrun

The most common occurrence of buffer overrun is video recorders. Let's imagine an example of a video camera connected to a computer. The video camera records at a data rate of 168 MBps. The computer monitor is capable of displaying data at a rate of only 60 MBps. We have a big problem, right?

OEComplete – A Personal Information Manager

Written by CellarStone INC.


OEComplete – A Personal Information Manager OEComplete is a utility for managingrepparttar personal information ofrepparttar 107695 user. It is designed to be flexible and affordable even forrepparttar 107696 home user. OEComplete allows setting up appointments and tasks, and creates notes for easy reference. Recurrence, reminders and attachment enhancerepparttar 107697 competence in addition to import and export facility. For example, a weekly status meeting can be set to recur every Friday evening and remind you ofrepparttar 107698 same any time before it, just by a single setting. Users of Outlook Express particularly benefit from it, having an appointment scheduler and task manager along with their emails. OEComplete starts automatically when you start Outlook Express while Outlook Express can be opened from OEComplete also.

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use