Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6762003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:15:41+00:00 2026-05-26T14:15:41+00:00

I’v written some software that writes live video streams to disk. At a certain

  • 0

I’v written some software that writes live video streams to disk. At a certain point (4 streams of 1024×768 at 10fps) the program dies – it’s not out of RAM and it’s not the CPU – so I’m guessing that it’s the Hard Disk that can’t write the data fast enough (there’s no error, it just stops working). Basically is there a way to find out if the hard drive is about to fall over (write buffer full)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:15:41+00:00Added an answer on May 26, 2026 at 2:15 pm

    Well, it is not the disk write error. There’s a simple explanation for what you see, you are actually out of RAM.

    File writes are normally very fast in Windows. A memory-to-memory copy, it writes the file data into the file system cache. Which then takes it merry time writing the data to the slow hard drive. It also optimizes the writes to disk, writing them in cylinder order so that the disk write head movement is optimized.

    This works very well. Unless you relentlessly write so much file data that the cache fills up to capacity. Write speed then falls off a cliff. From about 5 gigabytes per second to 50 megabytes per second. Or less, depending on how fragmented the drive is. Head seek speed is a factor too but there isn’t much variability between drives, it is largely determined by how fast the disk platters spin. A 10,000 rpm drive performs better than a 7,200 rpm drive since it doesn’t have to wait as long for the right sector to arrive at the write head.

    The size of the file system cache is determined by the amount of RAM you have in the machine. Which does need to be shared with the RAM required by other processes. Same idea as a RAM disk, but much smarter. About one gigabyte is typical on a 32-bit operating system. Getting more requires a 64-bit operating system with enough RAM installed.

    But more RAM probably isn’t going to solve your problem, it will just take longer to fill up the cache. At some point, you do either need a much smarter video stream encoder so the data is compressed better. Or a faster hard drive. Ask about that at superuser.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.