Biggest file that will fit inside an inode?
What the largest file that will fit inside a 1K, 2K, or 4K inode? Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid
I think the guideline for 4K inodes is roughly 3.5KB depending on use of extended attributes, -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Oesterlin, Robert Sent: Wednesday, September 28, 2016 1:14 PM To: gpfsug main discussion list Subject: [gpfsug-discuss] Biggest file that will fit inside an inode? What the largest file that will fit inside a 1K, 2K, or 4K inode? Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
About 3.5 KiB if the inode is 4k and you are not using encryption (uses EA space) or large custom extended attributes, Scott Fadden Spectrum Scale - Technical Marketing Phone: (503) 880-5833 sfadden@us.ibm.com http://www.ibm.com/systems/storage/spectrum/scale From: "Oesterlin, Robert" <Robert.Oesterlin@nuance.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 09/28/2016 11:14 AM Subject: [gpfsug-discuss] Biggest file that will fit inside an inode? Sent by: gpfsug-discuss-bounces@spectrumscale.org What the largest file that will fit inside a 1K, 2K, or 4K inode? Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Pretty easy to determine experimentally, with a few trials.... And the answer is 3876 for an simple file with just a selinux EA which is apparently created by default on my test system. So apparently there are actually only 220 bytes of metadata in this case (4096-3876=220). As they say YMMV ;-) [root@bog-wifi cmvc]# mmlsfs yy -i flag value description ------------------- ------------------------ ----------------------------------- -i 4096 Inode size in bytes [root@bog-wifi isize]# stat i387[67] File: ‘i3876’ Size: 3876 Blocks: 0 IO Block: 262144 regular file File: ‘i3877’ Size: 3877 Blocks: 16 IO Block: 262144 regular file [root@bog-wifi isize]# ls -ild i3876 19406 -rw-r--r--. 1 root root 3876 Oct 3 10:39 i3876 tsdbfs yy inode 19406 Inode 19406 [19406] snap 0 (index 14 in block 303): Inode address: 1:511600 size 4096 nAddrs 323 indirectionLevel=INODE status=USERFILE objectVersion=2 generation=0x7C5599C4 nlink=1 owner uid=0 gid=0 mode=0200100644: -rw-r--r-- ... Data [3876]: 0000000000000000: 136D7B1F 1D29CA0C B59BC917 D9AE0220 *.m{..)..........* 0000000000000010: F18512CF 998AC02E DC6926FA 3FDC3EAF *.........i&.?.>.* ... 0000000000000F20: EFF02209 00000000 05077365 6C696E75 *..".......selinu* trailer: 0x20005993FD8 diskAddrs 323 xattrLen 48 (free 3856/3904) res 0,0,0 overflow pri 0 vers 0 nsub 0 repl 1/2 DA Null [0] id 0x5 prefLen 8 keyLen 7 key security.selinux len 37 val '756E636F6E66696E65645F753A6F626A6563745F723A756E6C6162656C65645F743 A733000'
On a non-SELINUX system the answer is 3968 of data in a 4K inode, just 128 bytes of metadata. Caution: it's possible in some future release, this could change ... I don't know of any plans, I'm just saying ... Inode 16346892 [16346892] snap 0 (index 12 in block 255420): Inode address: 6:123049056 size 4096 nAddrs 330 indirectionLevel=INODE status=USERFILE objectVersion=1 generation=0xC0156CB nlink=1 owner uid=0 gid=0 mode=0200100644: -rw-r--r-- blocksize code=5 (32 subblocks) lastBlockSubblocks=0 checksum=0xAD8E0B4B is Valid fileSize=3968 nFullBlocks=0 currentMetadataReplicas=1 maxMetadataReplicas=2 currentDataReplicas=1 maxDataReplicas=2 ... Data [3968]: 0000000000000000: BCA91252 2B64BEDC A7D7BA9D D5BE8C30 *...R+d.........0* ... 0000000000000F70: DA925E2F 16A68C01 03CA5E37 08D72B7F *..^/......^7..+.* trailer: is NULL
participants (4)
-
Bryan Banister -
Marc A Kaplan -
Oesterlin, Robert -
Scott Fadden
