This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8590|Reply: 0

How many files can you put in a folder on a Windows server?

[Copy link]
Posted on 9/29/2019 10:53:43 AM | | | |
How many files can you put under a folder

I don't know about this problem, but we can do a test to see how many files can be placed under the folder.

So how to test such a problem, it is obvious that it is unrealistic for us to create files one by one, there is not so much time, and this method is too stupid. Here we will use the batch command, create a new bat file, and then copy the code "for /l %%a in (1,1,10000000000000000000000000) do echo text> %%a.txt", save and exit. This code means to create 10000000000000000000 files from 1.txt under the folder.



After double-clicking on this batch file in the hard drive of the FAT32 file format, we waited patiently for a while, and we found that when creating the 65535th file, the prompt "Unable to create directory or file" appeared, which is indicativeYou can put up to 65,535 files under the next folder in the FAT32 file format

So how many files can be stored in a folder in the hard disk of NTFS file format, we can also use the above batch processing to test, but let's tell you the answer first.You can store 4294967295 files under the next file home in the NTFS file formatYou need to have at least 16.7TB of free disk to complete this test, so you don't have to worry about how many files can be put under a folder.

How many files can a folder hold in a Windows server without affecting the speed of reading files?

How many files can I put in a folder on a Windows server without affecting the reading speed of files such as php/nodejs/java? The way to read a file is to know the file name, read it directly, without going through the folder. Still want to know about the Linux system?
1. The maximum number of files under Windows is related to the file system being used in detail
2. In terms of reading efficiency, the operating system stores directory files in the index, which is the same as mysql primary key search, which has not too much impact, but it must be that the more data, the slower the speed.
3. Linux I use centos system, I don't know the rest, file system management is limited by two limits, disk space and inode capacity. That is to say, the meta information of the files under linux (file name, author, creation time) is stored in the inode, once I encountered a disk space occupying 12%, but the disk refused to access, and the result was that the tmp directory was not cleaned regularly, resulting in too many small files, resulting in the capacity of the inode running out. The capacity of the inode can be set manually when partitioning.





Previous:God of Wealth Consolidation Station Backup Source Code Network Disk Making Money Source Code - Network Disk Source with Demonstration to Make Money...
Next:The supreme mobile phone bombards the source code with a new interface
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com