sublocks per block in GPFS 5.0
Hello Everyone, I am a little bit confused with the number of sub-blocks per block-size of 16M in GPFS 5.0. In the below documentation, it mentions that the number of sub-blocks per block is 16K, but "only for Spectrum Scale RAID" https://developer.ibm.com/storage/2018/01/11/spectrum-scale-variant-sub-bloc... However, when i created the filesystem “without” spectrum scale RAID. I still see that the number of sub-blocks per block is 1024. mmlsfs <filesystem> --subblocks-per-full-block flag value description ------------------- ------------------------ ----------------------------------- --subblocks-per-full-block 1024 Number of subblocks per full block So May i know if the sub-blocks per block-size really 16K? or am i missing something? Regards, Lohit
Apparently, a small mistake in that developer works post. I always advise testing of new features on a scratchable system... Here's what I see on my test system: #mmcrfs mak -F /vds/mn.nsd -A no -T /mak -B 16M -f 1K -i 1K Value '1024' for option '-f' is out of range. Valid values are 4096 through 524288. # mmcrfs mak -F /vds/mn.nsd -A no -T /mak -B 16M -f 4K -i 1K (runs okay) # mmlsfs mak flag value description ------------------- ------------------------ ----------------------------------- -f 4096 Minimum fragment (subblock) size in bytes -i 1024 Inode size in bytes -I 32768 Indirect block size in bytes ... -B 16777216 Block size ... -V 18.00 (5.0.0.0) File system version ... --subblocks-per-full-block 4096 Number of subblocks per full block ... From: valleru@cbio.mskcc.org To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 03/30/2018 12:21 PM Subject: [gpfsug-discuss] sublocks per block in GPFS 5.0 Sent by: gpfsug-discuss-bounces@spectrumscale.org Hello Everyone, I am a little bit confused with the number of sub-blocks per block-size of 16M in GPFS 5.0. In the below documentation, it mentions that the number of sub-blocks per block is 16K, but "only for Spectrum Scale RAID" https://developer.ibm.com/storage/2018/01/11/spectrum-scale-variant-sub-bloc... However, when i created the filesystem “without” spectrum scale RAID. I still see that the number of sub-blocks per block is 1024. mmlsfs <filesystem> --subblocks-per-full-block flag value description ------------------- ------------------------ ----------------------------------- --subblocks-per-full-block 1024 Number of subblocks per full block So May i know if the sub-blocks per block-size really 16K? or am i missing something? Regards, Lohit_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Thanks Mark, I did not know, we could explicitly mention sub-block size when creating File system. It is no-where mentioned in the “man mmcrfs”. Is this a new GPFS 5.0 feature? Also, i see from the “man mmcrfs” that the default sub-block size for 8M and 16M is 16K. +‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+ | Block size | Subblock size | +‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+ | 64 KiB | 2 KiB | +‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+ | 128 KiB | 4 KiB | +‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+ | 256 KiB, 512 KiB, 1 MiB, 2 | 8 KiB | | MiB, 4 MiB | | +‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+ | 8 MiB, 16 MiB | 16 KiB | +‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐+ And you could create more than 1024 sub-blocks per block? and 4k is size of sub-block for 16M? That is great, since 4K files will go into data pool, and anything less than 4K will go to system (metadata) pool? Do you think - there would be any performance degradation for reducing the sub-blocks to 4K - 8K, from the default 16K for 16M filesystem? If we are not loosing any blocks by choosing a bigger block-size (16M) for filesystem, why would we want to choose a smaller block-size for filesystem (4M)? What advantage would smaller block-size (4M) give, compared to 16M with performance since 16M filesystem could store small files and read small files too at the respective sizes? And Near Line Rotating disks would be happy with bigger block-size than smaller block-size i guess? Regards, Lohit On Mar 30, 2018, 12:45 PM -0400, Marc A Kaplan <makaplan@us.ibm.com>, wrote:
subblock
Look at my example, again, closely. I chose the blocksize as 16M and subblock size as 4K and the inodesize as 1K.... Developer works is a good resource, but articles you read there may be incomplete or contain mistakes. The official IBM Spectrum Scale cmd and admin guide documents, are "trustworthy" but may not be perfect in all respects. "Trust but Verify" and YMMV. ;-) As for why/how to choose "good sizes", that depends what objectives you want to achieve, and "optimal" may depend on what hardware you are running. Run your own trials and/or ask performance experts. There are usually "tradeoffs" and OTOH when you get down to it, some choices may not be all-that-important in actual deployment and usage. That's why we have defaults values - try those first and leave the details and tweaking aside until you have good reason ;-)
Folks, Also quoting a previous post: Thanks Mark, I did not know, we could explicitly mention sub-block size when creating File system. It is no-where mentioned in the “man mmcrfs”. Is this a new GPFS 5.0 feature? Also, i see from the “man mmcrfs” that the default sub-block size for 8M and 16M is 16K. Specifying the number of subblocks per block or the subblock size in mmcrfs is not currently supported. The subblock size is automatically chosen based on the block size, as described in 'Table 1. Block sizes and subblock sizes' in 'man mmcrfs'. Felipe ---- Felipe Knop knop@us.ibm.com GPFS Development and Security IBM Systems IBM Building 008 2455 South Rd, Poughkeepsie, NY 12601 (845) 433-9314 T/L 293-9314 From: "Marc A Kaplan" <makaplan@us.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 03/30/2018 02:48 PM Subject: Re: [gpfsug-discuss] sublocks per block in GPFS 5.0 Sent by: gpfsug-discuss-bounces@spectrumscale.org Look at my example, again, closely. I chose the blocksize as 16M and subblock size as 4K and the inodesize as 1K.... Developer works is a good resource, but articles you read there may be incomplete or contain mistakes. The official IBM Spectrum Scale cmd and admin guide documents, are "trustworthy" but may not be perfect in all respects. "Trust but Verify" and YMMV. ;-) As for why/how to choose "good sizes", that depends what objectives you want to achieve, and "optimal" may depend on what hardware you are running. Run your own trials and/or ask performance experts. There are usually "tradeoffs" and OTOH when you get down to it, some choices may not be all-that-important in actual deployment and usage. That's why we have defaults values - try those first and leave the details and tweaking aside until you have good reason ;-) _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
participants (3)
-
Felipe Knop -
Marc A Kaplan -
valleru@cbio.mskcc.org
