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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:02:08+00:00 2026-06-09T13:02:08+00:00

I have created a virtual file system(very simular to fat) based on two files.

  • 0

I have created a virtual file system(very simular to fat) based on two files.

  1. First file – allocation table.

It store information about files allocation(actually it is not files but donnt cares about it)

Each record has following structure:

  1. Name – fixed size(100 bytes). first 4 bytes is string length
  2. Length – 4 bytes, total length of file
  3. StartCluster – 4 bytes id of start cluster
  4. EndCluster – 4 bytes id of end cluster

Each entry has fixed size and i have hashtable in memory which helps me to found position of each entry.

  1. Second file – Virtual drive

VD based on clusters. Each cluster has fixed size – 256 bytes. Last 4 bytes are pointer to next cluster in file chain.

The problem is very slow speed when im trying to read all files. How can i improve perfomance? Is there any tips to fast reading from hard drive.

For example: Is it good idea to read file by big blocks? When i read even a little part of file, file is cached by OS right? And in next time i just take data from memory not from HD?

Well i have a few such questions where i can get answers?

  • 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-09T13:02:11+00:00Added an answer on June 9, 2026 at 1:02 pm

    Some options;

    • You could enlarge your cluster size (256 bytes is small, most OS’es use 4KB+ for a cluster these days)

    • If you read all files, you could do a sort based on startCluster so you read files in the order that they are physically close to each other on disk. So whenever the OS fetches a 4K+ block it is more likely you will need other parts of it with the next file.

    • You could defrag your virtual disk file

    • You seem confident it is a diskread issue. Did you check that what you do with the file after you just read it isn’t the slow part?

    • A lot of random access is where SSD storage shines. Move the virtual disk to an SSD

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

Sidebar

Related Questions

I'm working on a virtual file system which isn't disk based, kind of like
I have created an android application that calls (using kSOAP library) a SOAP based
I have created two imageViews promatically as shown below: public void createImageViews(Integer count){ ImageView[]
I have a script that creates file system in a file on a linux
I have created MutexCondition class like this /*MutexCondtion.h file*/ #ifndef MUTEXCONDITION_H_ #define MUTEXCONDITION_H_ #include
I have just created an ASP.NET C# project and a virtual directory for it
I have a very old linux system and installed java and play framework. When
I am about to implement a custom VFS (virtual file system) for a Netburner
So for my programming class we have had a project to create a virtual
I have created a QWidget with a bunch of QToolButtons in it and I

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.