Item5: Max number of files possible are 2^32

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Enhancement Confirmed SMR    

Since inode bitmap was being maintained, there was an upper bound on number of inodes possible (which was set at 1 million). Allocation of each file resulted in linear search of inode list to get next free inode. This slowed creation of file when number of files became large (eg. linux untar). To prevent this from happening, and since we are no longet using inode bitmap, we need not have the upper limit on the number of files that can be created. Therefore, the searching of free inode was replaced by a static global max_inode_allocated variable that stored the inode number of the last inode that was allocation. Subseqient inode allocations were done by incrementing that counter. That counter is an integer, thus upper bounding the number of files that can be created to 2^32.

ItemTemplate edit

Summary Max number of files possible are 2^32
ReportedBy SaurabhKadekodi
AppliesTo SMR
Priority Enhancement
CurrentState Confirmed
WaitingFor
Topic revision: r1 - 24 Oct 2013, SaurabhKadekodi - This page was cached on 19 Apr 2024 - 18:45.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding PDLWiki? Send feedback