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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:18:51+00:00 2026-06-18T08:18:51+00:00

How can I increase the depth of an extent tree? How much space should

  • 0

How can I increase the depth of an extent tree? How much space should be allocated? To be more precise I only need the depth to be more than 1.

  • 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-18T08:18:52+00:00Added an answer on June 18, 2026 at 8:18 am

    In ext4, an inode uses 60 bytes to address 4 extents by default (12bytes for the header + 4*12bytes for the extents). Every extent can hold data up to 128MiB (by default).
    If a file is larger than 4*128MiB (> 512MiB) ext4 is building an extent tree for that. So you’ll reach depth = 1 with that.

    Now the question is when will you reach depth=2. I tried with a file of ~700MiB and checked the extent depth which was 1. Then I opened the fs-block indexed by the extent and analysed the header.

        0A F3 06 00 54 01 00 00 00 00 00 00 00
    

    It has the typical magic number of f30A and the next two bytes should indicate the number of extents. (in this case=6 which makes sense because 700/128 = 6).
    The next 2 bytes 0154 should indicate the maximum number of extents (according to the header information) which comes up to 340 in my case.

    -> so why 340? If we look at the actual fs-block size of ext4 the default is 4096 bytes.
    Each index consists of 12 bytes. 340*12 = 4080 + 12 for the header = 4092 so it is the max number of extent-info that can fit into this fs-block.

    If I interpret this correctly, you can save up to 340 other pointers/leaves/indexes in this fs-block. Each of these 340 refer to an extent (which can hold up to 128MiB)
    -> so it comes to: 340*128MiB ~ 43,5 GiB

    Additionally each inode can hold up to 4 extents. So I guess this number needs to be multiplied by 4 even though.

        -> so I think your file should be > 4*340*128MiB ~ 174GiB to reach depth=2
    

    I have not yet tested this hypothesis, but I will try it soon. Meanwhile if someone can proove me wrong, I’m happy as well. 🙂

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

Sidebar

Related Questions

I need a priority queue where I can increase or decrease the priority key.
I am trying to increase or decrease the displayed texts font. but can only
This isn't a question for a real-life project; I'm only curious. We can increase
I need to increase the max depth of recursion triggers in SQLite. I know
Is there any way by which I can increase the default width of the
Following a question posted here about how I can increase the speed on one
When you surf with your browser, you can increase or decrease the font dimension
How can I increase django execution time of a view. Some views of my
how can we increase or decrese the size of div on btn click in
I am developing an eCommerce website which contains around 2000-3000 products(no.can be increase 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.