Fragmented Inode Space and Performance of Policy Scans
Hi Experts, I'm worrying about creating independent filesets which start to get in the way of one another: Let's pretend I create independent "fileset1" with a new inode space and preallocate say 1 million inodes. I start pushing files in to fileset1. I also start pushing files in to the root fileset. When fileset1 fills up, and because I've not specified a maximum number of inodes at creation time, presumably the file system manager gets on the case and preallocates more inodes as needed for fileset1. But while fileset1 has been filling up, I've also been filling up the root fileset (pretend I put 5 million files in there by the time fileset1 filled up). Now what happens? I'm guessing the FS manager starts chopping out sections of the root fileset beyond the 6 million region and marking them as independent and belonging to fileset1, in much the same way as it extends the allocated inode space when the file system starts running low. I hope this happens anyway. Let's say it does. So, now what about performance when running policy engine scans? I'm wanting to speed things up by restricting the policy scan to fileset1 (because I know that's where I put my special files). So I write the rules to select files and give them to mmapplypolicy. Does performance go down the drain as my once neatly arranged inode space is fragmented by not having enough inodes preallocated to begin with? Imagine fileset1 and the root fileset filling continuously at a similar rate and constantly "overtaking" one another in the inode space... does the performance advantage of independence start to go away rapidly? Cheers, Luke. -- Luke Raimbach IT Manager Oxford e-Research Centre 7 Keble Road, Oxford, OX1 3QG +44(0)1865 610639
Luke, Thanks for your question. Independent filesets and their inodes are not implemented the way you might be imagining or guessing. Suppose you have two independent filesets "root" and "fset2" in the same GPFS file system. It is true that all the inode records (typically 512 bytes each - see mmcrfs) go into the same special file. BUT if you look at any given metadata allocation block --metadata-block-size (defaults to 256K) you'll only see inodes for either "root" or "fset2" not both in the same block. Moreover we try to "pre"-allocate several blocks of inodes for the same independent fileset contiguously - so that typically GPFS can do one seek and then read several blocks of inodes from the same independent fileset. So there can be performance advantages to using independent filesets and restricting your mmapplypolicy scans to just the fileset you need. To gain maximal advantage, use the following form of the command: mmapplypolicy /gpfs/path-to-the-directory-tree-I-want-to-scan --scope {fileset | inodespace } ... An inodespace is the set of all inodes in an independent fileset. An inodespace may contain several "dependent" filesets.
I've always wondered also what the decision point is to make new inode tables per fileset. Sounds like the main benefit is scope of mmapplypolicy ( and other commands maybe ) and subblocks being grouped together for performance reasons. Is that right? Are there other benefits like portability or grouping a fileset's inode table into specific failure groups (in the system pool) etc? Any downsides? ( for example: now you have more overall metadata reads.. or only a limited number of inode tables.. or total number of inodes in the system is higher due to overallocation on N tables ? ) -Zach On Tue, Mar 17, 2015 at 10:22 AM, Marc A Kaplan <makaplan@us.ibm.com> wrote:
Luke,
Thanks for your question. Independent filesets and their inodes are not implemented the way you might be imagining or guessing.
Suppose you have two independent filesets "root" and "fset2" in the same GPFS file system. It is true that all the inode records (typically 512 bytes each - see mmcrfs) go into the same special file. BUT if you look at any given metadata allocation block --metadata-block-size (defaults to 256K) you'll only see inodes for either "root" or "fset2" not both in the same block.
Moreover we try to "pre"-allocate several blocks of inodes for the same independent fileset contiguously - so that typically GPFS can do one seek and then read several blocks of inodes from the same independent fileset.
So there can be performance advantages to using independent filesets and restricting your mmapplypolicy scans to just the fileset you need. To gain maximal advantage, use the following form of the command:
mmapplypolicy /gpfs/path-to-the-directory-tree-I-want-to-scan --scope {fileset | inodespace } ...
An inodespace is the set of all inodes in an independent fileset. An inodespace may contain several "dependent" filesets.
[image: Marc A Kaplan] _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Zach Giles zgiles@gmail.com
It’s also required for per-fileset snapshots, which are useful if you have differing snapshot requirements or want the ability to flush high-churn snapshots that are consuming an unexpected amount of space, but with better resolution than a whole filesystem. -Paul Sanchez From: gpfsug-discuss-bounces@gpfsug.org [mailto:gpfsug-discuss-bounces@gpfsug.org] On Behalf Of Zachary Giles Sent: Tuesday, March 17, 2015 11:49 AM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] Fragmented Inode Space and Performance of Policy Scans I've always wondered also what the decision point is to make new inode tables per fileset. Sounds like the main benefit is scope of mmapplypolicy ( and other commands maybe ) and subblocks being grouped together for performance reasons. Is that right? Are there other benefits like portability or grouping a fileset's inode table into specific failure groups (in the system pool) etc? Any downsides? ( for example: now you have more overall metadata reads.. or only a limited number of inode tables.. or total number of inodes in the system is higher due to overallocation on N tables ? ) -Zach On Tue, Mar 17, 2015 at 10:22 AM, Marc A Kaplan <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> wrote: Luke, Thanks for your question. Independent filesets and their inodes are not implemented the way you might be imagining or guessing. Suppose you have two independent filesets "root" and "fset2" in the same GPFS file system. It is true that all the inode records (typically 512 bytes each - see mmcrfs) go into the same special file. BUT if you look at any given metadata allocation block --metadata-block-size (defaults to 256K) you'll only see inodes for either "root" or "fset2" not both in the same block. Moreover we try to "pre"-allocate several blocks of inodes for the same independent fileset contiguously - so that typically GPFS can do one seek and then read several blocks of inodes from the same independent fileset. So there can be performance advantages to using independent filesets and restricting your mmapplypolicy scans to just the fileset you need. To gain maximal advantage, use the following form of the command: mmapplypolicy /gpfs/path-to-the-directory-tree-I-want-to-scan --scope {fileset | inodespace } ... An inodespace is the set of all inodes in an independent fileset. An inodespace may contain several "dependent" filesets. [Marc A Kaplan] _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org<http://gpfsug.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss -- Zach Giles zgiles@gmail.com<mailto:zgiles@gmail.com>
Ah. that's a good point about the snapshots. On Tue, Mar 17, 2015 at 12:01 PM, Sanchez, Paul <Paul.Sanchez@deshaw.com> wrote:
It’s also required for per-fileset snapshots, which are useful if you have differing snapshot requirements or want the ability to flush high-churn snapshots that are consuming an unexpected amount of space, but with better resolution than a whole filesystem.
-Paul Sanchez
*From:* gpfsug-discuss-bounces@gpfsug.org [mailto: gpfsug-discuss-bounces@gpfsug.org] *On Behalf Of *Zachary Giles *Sent:* Tuesday, March 17, 2015 11:49 AM *To:* gpfsug main discussion list *Subject:* Re: [gpfsug-discuss] Fragmented Inode Space and Performance of Policy Scans
I've always wondered also what the decision point is to make new inode tables per fileset.
Sounds like the main benefit is scope of mmapplypolicy ( and other commands maybe ) and subblocks being grouped together for performance reasons. Is that right?
Are there other benefits like portability or grouping a fileset's inode table into specific failure groups (in the system pool) etc?
Any downsides? ( for example: now you have more overall metadata reads.. or only a limited number of inode tables.. or total number of inodes in the system is higher due to overallocation on N tables ? )
-Zach
On Tue, Mar 17, 2015 at 10:22 AM, Marc A Kaplan <makaplan@us.ibm.com> wrote:
Luke,
Thanks for your question. Independent filesets and their inodes are not implemented the way you might be imagining or guessing.
Suppose you have two independent filesets "root" and "fset2" in the same GPFS file system. It is true that all the inode records (typically 512 bytes each - see mmcrfs) go into the same special file. BUT if you look at any given metadata allocation block --metadata-block-size (defaults to 256K) you'll only see inodes for either "root" or "fset2" not both in the same block.
Moreover we try to "pre"-allocate several blocks of inodes for the same independent fileset contiguously - so that typically GPFS can do one seek and then read several blocks of inodes from the same independent fileset.
So there can be performance advantages to using independent filesets and restricting your mmapplypolicy scans to just the fileset you need. To gain maximal advantage, use the following form of the command:
mmapplypolicy /gpfs/path-to-the-directory-tree-I-want-to-scan --scope {fileset | inodespace } ...
An inodespace is the set of all inodes in an independent fileset. An inodespace may contain several "dependent" filesets.
[image: Marc A Kaplan] _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
--
Zach Giles zgiles@gmail.com
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Zach Giles zgiles@gmail.com
participants (4)
-
Luke Raimbach -
Marc A Kaplan -
Sanchez, Paul -
Zachary Giles
