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

  • Home
  • SEARCH
  • 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 162167
In Process

The Archive Base Latest Questions

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

If there are like 1,000,000 individual files (mostly 100k in size) in a single

  • 0

If there are like 1,000,000 individual files (mostly 100k in size) in a single directory, flatly (no other directories and files in them), is there going to be any compromises in efficiency or disadvantages in any other possible ways?

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

    ARG_MAX is going to take issue with that… for instance, rm -rf * (while in the directory) is going to say ‘too many arguments’. Utilities that want to do some kind of globbing (or a shell) will have some functionality break.

    If that directory is available to the public (lets say via ftp, or web server) you may encounter additional problems.

    The effect on any given file system depends entirely on that file system. How frequently are these files accessed, what is the file system? Remember, Linux (by default) prefers keeping recently accessed files in memory while putting processes into swap, depending on your settings. Is this directory served via http? Is Google going to see and crawl it? If so, you might need to adjust VFS cache pressure and swappiness.

    Edit:

    ARG_MAX is a system wide limit to how many arguments can be presented to a program’s entry point. So, lets take ‘rm’, and the example ‘rm -rf *’ – the shell is going to turn ‘*’ into a space delimited list of files which in turn becomes the arguments to ‘rm’.

    The same thing is going to happen with ls, and several other tools. For instance, ls foo* might break if too many files start with ‘foo’.

    I’d advise (no matter what fs is in use) to break it up into smaller directory chunks, just for that reason alone.

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

Sidebar

Related Questions

There are are 150 000 records in my comments table and about 1000 new
Is there a way I can format for example: 0000000000 into (000)000-0000? I'm returning
I have a phone number (000) 000-0000, I would like to convert it back
In the setup dialog for the Like-Button, there are only two options for layout:
I have a personnel database of 10,000 individuals. I am developing a PHP CMS
I have a cube with a typical snapshot structure and daily granularity (like inventory
I'm developing a shopping comparison website, and the project is in a very advanced
I am defining some CSS classes which, when applied to a table, will generate
I have been running into OutOfMemory Exceptions while trying to load an 800MB text
TiddlyWiki is a great idea, brilliantly implemented. I'm using it as a portable personal

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.