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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:12:45+00:00 2026-06-13T08:12:45+00:00

In the memory based computing model, the only running time calculations that need to

  • 0

In the memory based computing model, the only running time calculations that need to be done can be done abstractly, by considering the data structure.

However , there aren’t alot of docs on high performance disk I/o algorithms. Thus I ask the following set of questions:

1) How can we estimate running time of disk I/o operations? I assume there is a simple set of constants which we might add for looking up a value on disk, rather than in memory…

2) And more specifically, what is the difference between performance for accessing a specific index in a file? Is this a constant time operation? Or does it depend on how “far down” the index is?

3) Finally… how does the JVM optimize access of indexed portions of a file?

And… as far as resources — in general… Are there any good idioms or libraries for on disk data structure implementations?

  • 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-06-13T08:12:45+00:00Added an answer on June 13, 2026 at 8:12 am

    1) how can we estimate running time of disk I/o operations? I assume there is a simple set of constants which we might add for looking up a value on disk, rather than in memory…

    In chapter 6 of Computer Systems: A Programmer’s Perspective they give a pretty practical mathematical model for how long it takes to read some data from a typical magnetic disk.

    To quote the last page in the linked pdf:

    Putting it all together, the total estimated access time is
    Taccess = Tavg seek + Tavg rotation + Tavg transfer
            = 9 ms      + 4 ms          + 0.02 ms
            = 13.02 ms
    
    This example illustrates some important points:
    • The time to access the 512 bytes in a disk sector is dominated by the seek time and the rotational
    latency. Accessing the first byte in the sector takes a long time, but the remaining bytes are essentially
    free.
    • Since the seek time and rotational latency are roughly the same, twice the seek time is a simple and
    reasonable rule for estimating disk access time.
    

    *note, the linked pdf is from the authors website == no piracy

    Of course, if the data being accessed was recently accessed, there’s a decent chance it’s cached somewhere in the memory heiarchy, in which case the access time is extremely small(practically, “near instant” when compared to disk access time).

    2)And more specifically, what is the difference between performance for accessing a specific index in a file? Is this a constant time operation? Or does it depend on how “far down” the index is?

    Another seek + rotation amount of time may occur if the seeked location isnt stored sequentially nearby. It depends where in the file you’re seeking, and where that data is physically stored on the disk. For example, fragmented files are guaranteed to cause disk seeks to read the entire file.

    Something to keep in mind is that even though you may only request to read a few bytes, the physical reads tend to occur in multiples of a fixed size chunks(the sector size), which ends up in cache. So you may later do a seek to some nearby location in the file, and get lucky that its already in cache for you.

    Btw- The full chapter in that book on the memory hierarchy is pure gold, if you’re interested in the subject.

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

Sidebar

Related Questions

On a ARM based system running Linux, I have a device that's memory mapped
I have Fortran-based 3D column-major order array flattened into linear memory. What formula/algorithm can
This is about memory-based IPC (like to LocalService example) but for two apps running
I am using a jQuery Based Memory Game on my site. You can restart
I have a fairly memory intensive process that can cause the heap size to
gprof says that my high computing app spends 53% of its time inside std::vector
Mysql has memory based data engines, which means it keeps the data in RAM.
My application builds many objects in memory based on filenames (among other string based
I'm writing a simple linked list based memory manager in the form: ...Header|Block|Header|Block... with
My application is document based and memory usage per document is quite high in

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.