Policy scan against billion files for ILM/HSM
Hello, Does anyone have experience to do mmapplypolicy against billion files for ILM/HSM? Currently I'm planning/designing * 1 Scale filesystem (5-10 PB) * 10-20 filesets which includes 1 billion files each And our biggest concern is "How log does it take for mmapplypolicy policy scan against billion files?" I know it depends on how to write the policy, but I don't have no billion files policy scan experience, so I'd like to know the order of time (min/hour/day...). It would be helpful if anyone has experience of such large number of files scan and let me know any considerations or points for policy design. -- Masanori Mitsugi mitsugi@linux.vnet.ibm.com
It's definitely doable, and these days not too hard. Flash for metadata is the key. The basics of it are: * Latest GPFS for performance benefits. * A few 10's of TBs of flash ( or more ! ) setup in a good design.. lots of SAS, well balanced RAID that can consume the flash fully, tuned for IOPs, and available in parallel from multiple servers. * Tune up mmapplypolicy with -g somewhere-on-gpfs; --choice-algorithm fast; -a, -m and -n to reasonable values ( number of cores on the servers ); -A to ~1000 * Test first on a smaller fileset to confirm you like it. -I test should work well and be around the same speed minus the migration phase. * Then throw ~8 well tuned Infiniband attached nodes at it using -N, If they're the same as the NSD servers serving the flash, even better. Should be able to do 1B in 5-30m depending on the idiosyncrasies of above choices. Even 60m isn't bad and quite respectable if less gear is used or if they system is busy while the policy is running. Parallel metadata, it's a beautiful thing. On Tue, Apr 11, 2017 at 12:29 AM, Masanori Mitsugi <mitsugi@linux.vnet.ibm.com> wrote:
Hello,
Does anyone have experience to do mmapplypolicy against billion files for ILM/HSM?
Currently I'm planning/designing
* 1 Scale filesystem (5-10 PB) * 10-20 filesets which includes 1 billion files each
And our biggest concern is "How log does it take for mmapplypolicy policy scan against billion files?"
I know it depends on how to write the policy, but I don't have no billion files policy scan experience, so I'd like to know the order of time (min/hour/day...).
It would be helpful if anyone has experience of such large number of files scan and let me know any considerations or points for policy design.
-- Masanori Mitsugi mitsugi@linux.vnet.ibm.com
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Zach Giles zgiles@gmail.com
On Tue, 2017-04-11 at 00:49 -0400, Zachary Giles wrote: [SNIP]
* Then throw ~8 well tuned Infiniband attached nodes at it using -N, If they're the same as the NSD servers serving the flash, even better.
Exactly how much are you going to gain from Infiniband over 40Gbps or even 100Gbps Ethernet? Not a lot I would have thought. Even with flash all your latency is going to be in the flash not the Ethernet. Unless you have a compute cluster and need Infiniband for the MPI traffic, it is surely better to stick to Ethernet. Infiniband is rather esoteric, what I call a minority sport best avoided if at all possible. Even if you have an Infiniband fabric, I would argue that give current core counts and price points for 10Gbps Ethernet, that actually you are better off keeping your storage traffic on the Ethernet, and reserving the Infiniband for MPI duties. That is 10Gbps Ethernet to the compute nodes and 40/100Gbps Ethernet on the storage nodes. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
Yeah, that can be true. I was just trying to show the size/shape that can achieve this. There's a good chance 10G or 40G ethernet would yield similar results, especially if you're running the policy on the NSD servers. On Tue, Apr 11, 2017 at 6:21 AM, Jonathan Buzzard <jonathan@buzzard.me.uk> wrote:
On Tue, 2017-04-11 at 00:49 -0400, Zachary Giles wrote:
[SNIP]
* Then throw ~8 well tuned Infiniband attached nodes at it using -N, If they're the same as the NSD servers serving the flash, even better.
Exactly how much are you going to gain from Infiniband over 40Gbps or even 100Gbps Ethernet? Not a lot I would have thought. Even with flash all your latency is going to be in the flash not the Ethernet.
Unless you have a compute cluster and need Infiniband for the MPI traffic, it is surely better to stick to Ethernet. Infiniband is rather esoteric, what I call a minority sport best avoided if at all possible.
Even if you have an Infiniband fabric, I would argue that give current core counts and price points for 10Gbps Ethernet, that actually you are better off keeping your storage traffic on the Ethernet, and reserving the Infiniband for MPI duties. That is 10Gbps Ethernet to the compute nodes and 40/100Gbps Ethernet on the storage nodes.
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Zach Giles zgiles@gmail.com
As Zachary noted the location of your metadata is the key and for the scanning you have planned flash is necessary. If you have the resources you may consider setting up your flash in a mirrored RAID configuration (RAID1/RAID10) and have GPFS only keep one copy of metadata since the underlying storage is replicating it via the RAID. This should improve metadata write performance but likely has little impact on your scanning, assuming you are just reading through the metadata. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com From: Zachary Giles <zgiles@gmail.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 04/11/2017 12:49 AM Subject: Re: [gpfsug-discuss] Policy scan against billion files for ILM/HSM Sent by: gpfsug-discuss-bounces@spectrumscale.org It's definitely doable, and these days not too hard. Flash for metadata is the key. The basics of it are: * Latest GPFS for performance benefits. * A few 10's of TBs of flash ( or more ! ) setup in a good design.. lots of SAS, well balanced RAID that can consume the flash fully, tuned for IOPs, and available in parallel from multiple servers. * Tune up mmapplypolicy with -g somewhere-on-gpfs; --choice-algorithm fast; -a, -m and -n to reasonable values ( number of cores on the servers ); -A to ~1000 * Test first on a smaller fileset to confirm you like it. -I test should work well and be around the same speed minus the migration phase. * Then throw ~8 well tuned Infiniband attached nodes at it using -N, If they're the same as the NSD servers serving the flash, even better. Should be able to do 1B in 5-30m depending on the idiosyncrasies of above choices. Even 60m isn't bad and quite respectable if less gear is used or if they system is busy while the policy is running. Parallel metadata, it's a beautiful thing. On Tue, Apr 11, 2017 at 12:29 AM, Masanori Mitsugi <mitsugi@linux.vnet.ibm.com> wrote:
Hello,
Does anyone have experience to do mmapplypolicy against billion files for ILM/HSM?
Currently I'm planning/designing
* 1 Scale filesystem (5-10 PB) * 10-20 filesets which includes 1 billion files each
And our biggest concern is "How log does it take for mmapplypolicy policy scan against billion files?"
I know it depends on how to write the policy, but I don't have no billion files policy scan experience, so I'd like to know the order of time (min/hour/day...).
It would be helpful if anyone has experience of such large number of files scan and let me know any considerations or points for policy design.
-- Masanori Mitsugi mitsugi@linux.vnet.ibm.com
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Zach Giles zgiles@gmail.com _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
A word of caution, be careful about where you run this kind of policy scan as the sort process can consume all memory on your hosts and that could lead to issues with the OS deciding to kill off GPFS or other similar bad things can occur. I recommend restricting the ILM policy scan to a subset of servers, no quorum nodes, and ensuring at least one NSD server is available for all NSDs in the file system(s). Watch the memory consumption on your nodes during the sort operations to see if you need to tune that down in the mmapplypolicy options. Hope that helps, -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Frederick Stock Sent: Tuesday, April 11, 2017 6:54 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Policy scan against billion files for ILM/HSM As Zachary noted the location of your metadata is the key and for the scanning you have planned flash is necessary. If you have the resources you may consider setting up your flash in a mirrored RAID configuration (RAID1/RAID10) and have GPFS only keep one copy of metadata since the underlying storage is replicating it via the RAID. This should improve metadata write performance but likely has little impact on your scanning, assuming you are just reading through the metadata. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com<mailto:stockf@us.ibm.com> From: Zachary Giles <zgiles@gmail.com<mailto:zgiles@gmail.com>> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 04/11/2017 12:49 AM Subject: Re: [gpfsug-discuss] Policy scan against billion files for ILM/HSM Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ It's definitely doable, and these days not too hard. Flash for metadata is the key. The basics of it are: * Latest GPFS for performance benefits. * A few 10's of TBs of flash ( or more ! ) setup in a good design.. lots of SAS, well balanced RAID that can consume the flash fully, tuned for IOPs, and available in parallel from multiple servers. * Tune up mmapplypolicy with -g somewhere-on-gpfs; --choice-algorithm fast; -a, -m and -n to reasonable values ( number of cores on the servers ); -A to ~1000 * Test first on a smaller fileset to confirm you like it. -I test should work well and be around the same speed minus the migration phase. * Then throw ~8 well tuned Infiniband attached nodes at it using -N, If they're the same as the NSD servers serving the flash, even better. Should be able to do 1B in 5-30m depending on the idiosyncrasies of above choices. Even 60m isn't bad and quite respectable if less gear is used or if they system is busy while the policy is running. Parallel metadata, it's a beautiful thing. On Tue, Apr 11, 2017 at 12:29 AM, Masanori Mitsugi <mitsugi@linux.vnet.ibm.com<mailto:mitsugi@linux.vnet.ibm.com>> wrote:
Hello,
Does anyone have experience to do mmapplypolicy against billion files for ILM/HSM?
Currently I'm planning/designing
* 1 Scale filesystem (5-10 PB) * 10-20 filesets which includes 1 billion files each
And our biggest concern is "How log does it take for mmapplypolicy policy scan against billion files?"
I know it depends on how to write the policy, but I don't have no billion files policy scan experience, so I'd like to know the order of time (min/hour/day...).
It would be helpful if anyone has experience of such large number of files scan and let me know any considerations or points for policy design.
-- Masanori Mitsugi mitsugi@linux.vnet.ibm.com<mailto:mitsugi@linux.vnet.ibm.com>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Zach Giles zgiles@gmail.com<mailto:zgiles@gmail.com> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ 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.
As primary developer of mmapplypolicy, please allow me to comment: 1) Fast access to metadata in system pool is most important, as several have commented on. These days SSD is the favorite, but you can still go with "spinning" media. If you do go with disks, it's extremely important to spread your metadata over independent disk "arms" -- so you can have many concurrent seeks in progress at the same time. IOW, if there is a virtualization/mapping layer, watchout that your logical disks don't get mapped to the same physical disk. 2) Crucial to use both -g and -N :: -g /gpfs-not-necessarily-the-same-fs-as-Im-scanning/tempdir and -N several-nodes-that-will-be-accessing-the-system-pool 3a) If at all possible, encourage your data and application designers to "pack" their directories with lots of files. Keep in mind that, mmapplypolicy will read every directory. The more directories, the more seeks, more time spent waiting for IO. OTOH, in more typical Unix/Linux usage, we tend to low average number of files per directory. 3b) As admin, you may not be able to change your data design to pack hundreds of files per directory, BUT you can make sure you are running a sufficiently modern release of Spectrum Scale that supports "data in inode" -- "Data in inode" also means "directory entries in inode" -- which means practically any small directory, up to a few hundred files, will fit in an an inode -- which means mmapplypolicy can read small directories with one seek, instead of two. (Someone will please remind us of the release number that first supported "directories in inode".) 4) Sorry, Fred, but the recommendation to use RAID mirroring of metadata on SSD, is not necessarily, important for metadata scanning. In fact it may work against you. If you use GPFS replication of metadata - that can work for you -- since then GPFS can direct read operations to either copy, preferring a locally attached copy, depending on how storage is attached to node, etc, etc. Choice of how to replicate metadata - either using GPFS replication or the RAID controller - is probably best made based on reliability and recoverability requirements. 5) YMMV - We'd love to hear/see your performance results for mmapplypolicy, especially if they're good. Even if they're bad, come back here for more tuning tips! -- marc of Spectrum Scale (ne GPFS)
Marc, Zachary, Fred, Bryan, Thank you for providing great advice! It's pretty useful for me to tune our policy with best performance. As for "directories in inode", we plan to use latest version, so I believe we can leverage this function. -- Masanori Mitsugi mitsugi@linux.vnet.ibm.com
On 4/11/17 8:36 AM, Marc A Kaplan wrote:
5) YMMV - We'd love to hear/see your performance results for mmapplypolicy, especially if they're good. Even if they're bad, come back here for more tuning tips!
I have a filesystem that currently has 267919775 (roughly quarter billion, 250 million) used inodes. The metadata is on SSD behind a DDN 12K. We do use 4K inodes, and files smaller than 4K fit into the inodes. Here is the command I use to apply a policy: mmapplypolicy gsfs0 -P policy.txt -N scg-gs0,scg-gs1,scg-gs2,scg-gs3,scg-gs4,scg-gs5,scg-gs6,scg-gs7 -g /srv/gsfs0/admin_stuff/ -I test -B 500 -A 61 -a 4 That takes approximately 10 minutes to do the whole scan. The "-B 500 -A 61 -a 4" numbers we determined just by trying different values with the same policy file and seeing the resulting scan duration. 10mins is short enough to do almost "interactive" type of file list policies and look at the results. E.g. list all files over 1TB in size. This was a couple of years ago, probably on a different GPFS version, but on same storage and NSD hardware, so now I just copy those parameters. You should probably not just copy them but try some other values yourself. Regards, Alex
Here is the command I use to apply a policy:
mmapplypolicy gsfs0 -P policy.txt -N scg-gs0,scg-gs1,scg-gs2,scg-gs3,scg-gs4,scg-gs5,scg-gs6,scg-gs7 -g /srv/gsfs0/admin_stuff/ -I test -B 500 -A 61 -a 4 That takes approximately 10 minutes to do the whole scan. The "-B 500 -A 61 -a 4" numbers we determined just by trying different values with the same policy file and seeing the resulting scan duration. <<< That's pretty good. BUT, FYI, the -A number-of-buckets parameter should be scaled with the total number of files you expect to find in the argument filesystem or directory. If you don't set it the command will default to number-of-inodes-allocated / million, but capped at a minimum of 7 and a maximum of 4096.
participants (7)
-
Alex Chekholko -
Bryan Banister -
Frederick Stock -
Jonathan Buzzard -
Marc A Kaplan -
Masanori Mitsugi -
Zachary Giles
