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 4027378
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:05:22+00:00 2026-05-20T11:05:22+00:00

I’m interested in some low-level details on how disk seeks and writes works when

  • 0

I’m interested in some low-level details on how disk seeks and writes works when your working with two files concurrently.

I’m thinking of splitting an file that I currently do both read and writes on to two files to handle concurrency better. They’re are potentially heavily accessed at the same time.

a) Will performance be much worse because two files are accessed instead of one, even if disk seek times would from the start to the end of a big “all-in-one” file?

b) Can you somehow place two files after each other or “close to each other” on disk to improve their concurrent performance? (I guess this will be hard with disk fragmentation and all)

c) How does SSD drives affect this, since they don’t spin they should be pretty good for a solution like this right?

d) if you fire rapid i/o reads and writes at both files at the same time will the OS (Windows) optimize so that the disk the head doesn’t go back and forth too much?

I’m bit curious why some database/nosql solution seem so adamant in keeping things in a single file when using more than one seems to offer some advantages.

  • 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-20T11:05:23+00:00Added an answer on May 20, 2026 at 11:05 am

    a) No, the overhead is pretty much the same as if they were a single file.

    b) Not really, unless you know your usage pattern pretty much exactly. You can use FSCTL_MOVE_FILE in Windows if you need to move your files around, but I don’t recommend it because (1) you’d need administrator privileges, and (2) it’s really hard to figure out where to put the file, because each disk has different specs, and because you might end up having to basically build your own defragmentation engine.

    c) Yes, SSDs are the perfect solution to this! 🙂

    d) Native Command Queuing within the disk is designed to allow for this on SATA drives (it reorders up to 32 commands by the OS for better performance), and while it’s definitely helpful, it’s not quite as noticeable of a gain as you might think. The file system’s memory cache is a much more influential factor here — it caches your data in memory so that random writes can become more sequential (and faster).

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have thousands of HTML files to process using Groovy/Java and I need to
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have some data like this: 1 2 3 4 5 9 2 6
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.