Hello, does anyone know why with GPFS 4.x, there is inode size 4096B by default. Is there any problem with, e.g., only 1024B inode size? -- Lukáš Hejtmánek
You need 4K nodes to store encryption keys. You can also put other useful things in there, like extended attributes and (possibly) the entire file. Are you worried about wasting space? -- Stephen
On Mar 15, 2017, at 5:50 AM, Lukas Hejtmanek <xhejtman@ics.muni.cz <mailto:xhejtman@ics.muni.cz>> wrote:
Hello,
does anyone know why with GPFS 4.x, there is inode size 4096B by default.
Is there any problem with, e.g., only 1024B inode size?
-- Lukáš Hejtmánek _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org <http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss <http://gpfsug.org/mailman/listinfo/gpfsug-discuss>
On Wed, Mar 15, 2017 at 08:22:22AM -0400, Stephen Ulmer wrote:
You need 4K nodes to store encryption keys. You can also put other useful things in there, like extended attributes and (possibly) the entire file.
Are you worried about wasting space?
well, I have 1PB of capacity for data disks and 3TB of capacity for metadata (SSD). With 512B inodes, this ration seemed to be quite ok, while with 4k inodes, I run out of free space on SSD pretty fast. So I'm thinking about re-creating file system with smaller inode size. I don't think I will ever need encryption keys. -- Lukáš Hejtmánek
Hello, On Wed, Mar 15, 2017 at 01:09:07PM +0000, Luis Bolinches wrote:
My 2 cents. Before even thinking too much on that path I would check the following - What the is physical size on those SSD if they are already 4K you won't "save" anything
size of what?
- Do you use small (>3.5Kb) files? If so I would still keep 4K inodes - Check if 512 can hold NSDv2 format, from top of my head it cannot but pls check. If so, do you want to use a format that anyway is going to fade away and lose the goodies that format brings? I am sure few other pros (and cons) can be put on but I would start with those 3
I was thinking about 1024B inodes. Is this still not enough for NSDv2 format? -- Lukáš Hejtmánek
Lukas, One other thing to consider is the storage of data inside the inode itself for very small files. GPFS has the ability to use the remaining [kilo]bytes of the inode to store the data of the file whenever the file is small enough to fit in. Anyone correct me if I am wrong, but with 4k inodes, you can store up to (4096-128 header) 3968 bytes of data. (without ILM) So regarding the size of the files you intend to store into your filesystem, it might be very interesting to take advantage of the performance of your SSD's to store small files. Regards, Dieter -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Lukas Hejtmanek Sent: Wednesday, March 15, 2017 1:37 PM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] default inode size On Wed, Mar 15, 2017 at 08:22:22AM -0400, Stephen Ulmer wrote:
You need 4K nodes to store encryption keys. You can also put other useful things in there, like extended attributes and (possibly) the entire file.
Are you worried about wasting space?
well, I have 1PB of capacity for data disks and 3TB of capacity for metadata (SSD). With 512B inodes, this ration seemed to be quite ok, while with 4k inodes, I run out of free space on SSD pretty fast. So I'm thinking about re-creating file system with smaller inode size. I don't think I will ever need encryption keys. -- Lukáš Hejtmánek _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Wed, Mar 15, 2017 at 01:12:44PM +0000, GORECKI, DIETER wrote:
One other thing to consider is the storage of data inside the inode itself for very small files. GPFS has the ability to use the remaining [kilo]bytes of the inode to store the data of the file whenever the file is small enough to fit in.
Anyone correct me if I am wrong, but with 4k inodes, you can store up to (4096-128 header) 3968 bytes of data. (without ILM)
So regarding the size of the files you intend to store into your filesystem, it might be very interesting to take advantage of the performance of your SSD's to store small files.
I agree it would, however, I have 30 % free capacity on SSDs only right now (with some snapshots and ~70M files). So I'm afraid I have to either change the rotational disks to hold metadata as well or do not create more files/snapshots or decrease the inode size. I cannot add more SSDs as I do not have free disk slots in HW. -- Lukáš Hejtmánek
Another thing to consider is how many disk block pointers you have room for in the inode, and when you'll need to add additional indirect blocks. Ref: http://files.gpfsug.org/presentations/2016/south-bank/ D2_P2_A_spectrum_scale_metadata_dark_V2a.pdf If I understand that presentation correctly.. a block pointer is 12 bytes, so a 1 KB inode can hold approximately 70 block pointers -- ie. any file larger than 70 blocks will need additional indirect blocks to hold the addresses, requiring minimum one additional sub-block. With a 1 MB blocksize filesystem (data and metadata), files between 75 MB and 3 GB will need 1x inode and 1x indirect block = 1 KB + 32 KB metadata space. If your files are smaller than 75 MB, the address pointers fit in the 1K inode. If you have 4 KB inode, files smaller than 340 MB will fit all pointers in the inode. -jf On Wed, Mar 15, 2017 at 2:26 PM, Lukas Hejtmanek <xhejtman@ics.muni.cz> wrote:
On Wed, Mar 15, 2017 at 01:12:44PM +0000, GORECKI, DIETER wrote:
One other thing to consider is the storage of data inside the inode itself for very small files. GPFS has the ability to use the remaining [kilo]bytes of the inode to store the data of the file whenever the file is small enough to fit in.
Anyone correct me if I am wrong, but with 4k inodes, you can store up to (4096-128 header) 3968 bytes of data. (without ILM)
So regarding the size of the files you intend to store into your filesystem, it might be very interesting to take advantage of the performance of your SSD's to store small files.
I agree it would, however, I have 30 % free capacity on SSDs only right now (with some snapshots and ~70M files). So I'm afraid I have to either change the rotational disks to hold metadata as well or do not create more files/snapshots or decrease the inode size. I cannot add more SSDs as I do not have free disk slots in HW.
-- Lukáš Hejtmánek _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
You can set inode size to any one of 512, 1024, 2048 or 4096 when you mmcrfs. Try it on a test system. You want all the metadata of a file to fit into the inode. Also small files, and small directories, can be stored in their inodes. On a test file system you can examine how much of an inode is occupied with which data and metadata using the inode subcommand of the tsdbfs command. (Root only, and usual cautions -- use only to look, if you make a mistake patching - I told you not to do that!) inode number of any path is easily discovered with the standard ls -ild pathname command
On Mar 15, 2017, at 8:37 AM, Lukas Hejtmanek <xhejtman@ics.muni.cz> wrote:
On Wed, Mar 15, 2017 at 08:22:22AM -0400, Stephen Ulmer wrote:
You need 4K nodes to store encryption keys. You can also put other useful things in there, like extended attributes and (possibly) the entire file.
Are you worried about wasting space?
well, I have 1PB of capacity for data disks and 3TB of capacity for metadata (SSD).
With 512B inodes, this ration seemed to be quite ok, while with 4k inodes, I run out of free space on SSD pretty fast. So I'm thinking about re-creating file system with smaller inode size.
I don't think I will ever need encryption keys.
What’s the average file size? Every file that is less than *about* 3.5K will wind up in the (4k) inode itself. Also check the HW sector size of the SSDs (many are 4K now). If that’s the case, you’ll actually be much more efficient from an access point of view with 4K inodes. If you don’ t have 1PB of data yet (or won’t in the next year or so), you can always expand the system pool with more SSDs in the future. It’s not scary to pick another size — it works just fine, but you’re about to create a filesystem that will be a pain in the rear to change. It will take a long time to move/backfill even a few hundred TB of data if you change you mind later. You’ll definitely give up (possibly future) features by choosing not 4K, but you’ve got the flexibility to do so. :) Liberty, -- Stephen
On Wed, Mar 15, 2017 at 09:36:24AM -0400, Stephen Ulmer wrote:
What’s the average file size? Every file that is less than *about* 3.5K will wind up in the (4k) inode itself.
average file size is about 4MB.
Also check the HW sector size of the SSDs (many are 4K now). If that’s the case, you’ll actually be much more efficient from an access point of view with 4K inodes.
HW sector size reported by disk array is 512B. SSD itself uses 4k though, however, Linux thinks it is only 512B.
If you don’ t have 1PB of data yet (or won’t in the next year or so), you can always expand the system pool with more SSDs in the future.
I cannot. I don't have free HW slots.
It’s not scary to pick another size — it works just fine, but you’re about to create a filesystem that will be a pain in the rear to change. It will take a long time to move/backfill even a few hundred TB of data if you change you mind later. You’ll definitely give up (possibly future) features by choosing not 4K, but you’ve got the flexibility to do so. :)
But at least I will have space to store metadata :) -- Lukáš Hejtmánek
I'm not sure because I've not tried it but if you chose an inode size less than 4K does the FS still show as being 4K aligned? If it doesn't this could prevent you from expanding the metadata capacity of the FS in the future because in a non 4k aligned fs GPFS won't let you add 4K sector size LUNS that contain metadata. -Aaron On 3/15/17 9:46 AM, Lukas Hejtmanek wrote:
On Wed, Mar 15, 2017 at 09:36:24AM -0400, Stephen Ulmer wrote:
What’s the average file size? Every file that is less than *about* 3.5K will wind up in the (4k) inode itself.
average file size is about 4MB.
Also check the HW sector size of the SSDs (many are 4K now). If that’s the case, you’ll actually be much more efficient from an access point of view with 4K inodes.
HW sector size reported by disk array is 512B. SSD itself uses 4k though, however, Linux thinks it is only 512B.
If you don’ t have 1PB of data yet (or won’t in the next year or so), you can always expand the system pool with more SSDs in the future.
I cannot. I don't have free HW slots.
It’s not scary to pick another size — it works just fine, but you’re about to create a filesystem that will be a pain in the rear to change. It will take a long time to move/backfill even a few hundred TB of data if you change you mind later. You’ll definitely give up (possibly future) features by choosing not 4K, but you’ve got the flexibility to do so. :)
But at least I will have space to store metadata :)
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
participants (7)
-
Aaron Knister -
GORECKI, DIETER -
Jan-Frode Myklebust -
Luis Bolinches -
Lukas Hejtmanek -
Marc A Kaplan -
Stephen Ulmer
