Blog on "Automatic tiering of object data based on object heat"
Hello, Based on inputs from some of the Spectrum Scale users, sharing a blog link for "Automatic tiering of object data based on object heat" by Smita. https://smitaraut.wordpress.com/2016/06/16/hot-cakes-or-hot-objects-they-bet... Regards, Gaurang ------------------------------------------------------------------------ Gaurang S Tapase Spectrum Scale & OpenStack Development IBM India Storage Lab, Pune (India) Email : gaurang.tapase@in.ibm.com Phone : +91-20-42025699 (W), +91-9860082042(Cell) -------------------------------------------------------------------------
Gaurang, Nice blog .. I must try and find some time to set a system up and try it for myself when I am not travelling ( which seems to be all the time at the moment). Daniel IBM Spectrum Storage Software +44 (0)7818 522266 Sent from my iPad using IBM Verse On 22 Jun 2016, 07:26:21, gaurang.tapase@in.ibm.com wrote: From: gaurang.tapase@in.ibm.com To: gpfsug-discuss@spectrumscale.org Cc: sandeep.patil@in.ibm.com, smita.raut@in.ibm.com Date: 22 Jun 2016 07:26:21 Subject: [gpfsug-discuss] Blog on "Automatic tiering of object data based on object heat" Hello, Based on inputs from some of the Spectrum Scale users, sharing a blog link for "Automatic tiering of object data based on object heat" by Smita. https://smitaraut.wordpress.com/2016/06/16/hot-cakes-or-hot-objects-they-bet... Regards, Gaurang ------------------------------------------------------------------------ Gaurang S Tapase Spectrum Scale & OpenStack Development IBM India Storage Lab, Pune (India) Email : gaurang.tapase@in.ibm.com Phone : +91-20-42025699 (W), +91-9860082042(Cell) -------------------------------------------------------------------------Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Does anyone in the field have much experience with using file heat for migration, whether for object or more generically? In particular using policies to move files both ways dependant on recent usage patterns. And also if you ever move files to colder storage without necessarily waiting until the files are say over 7 days old, since you know they are not going to be used for a while. Daniel IBM Spectrum Storage Software +44 (0)7818 522266 Sent from my iPad using IBM Verse On 22 Jun 2016, 12:34:11, daniel.kidger@uk.ibm.com wrote: From: daniel.kidger@uk.ibm.com To: gpfsug-discuss@spectrumscale.org Cc: Date: 22 Jun 2016 12:34:11 Subject: Re: [gpfsug-discuss] Blog on "Automatic tiering of object data based on object heat" Gaurang, Nice blog .. I must try and find some time to set a system up and try it for myself when I am not travelling ( which seems to be all the time at the moment). Daniel IBM Spectrum Storage Software +44 (0)7818 522266 Sent from my iPad using IBM Verse On 22 Jun 2016, 07:26:21, gaurang.tapase@in.ibm.com wrote: From: gaurang.tapase@in.ibm.com To: gpfsug-discuss@spectrumscale.org Cc: sandeep.patil@in.ibm.com, smita.raut@in.ibm.com Date: 22 Jun 2016 07:26:21 Subject: [gpfsug-discuss] Blog on "Automatic tiering of object data based on object heat" Hello, Based on inputs from some of the Spectrum Scale users, sharing a blog link for "Automatic tiering of object data based on object heat" by Smita. https://smitaraut.wordpress.com/2016/06/16/hot-cakes-or-hot-objects-they-bet... Regards, Gaurang ------------------------------------------------------------------------ Gaurang S Tapase Spectrum Scale & OpenStack Development IBM India Storage Lab, Pune (India) Email : gaurang.tapase@in.ibm.com Phone : +91-20-42025699 (W), +91-9860082042(Cell) ------------------------------------------------------------------------- Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AUUnless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
On Wed, 2016-06-22 at 10:39 +0000, Daniel Kidger wrote:
Does anyone in the field have much experience with using file heat for migration, whether for object or more generically? In particular using policies to move files both ways dependant on recent usage patterns.
In my experience moving files from slow to fast storage (I am ignoring a tape based or other really slow layer here) was generally a waste of time for three reasons. Firstly by the time you notice that the file is in use again 99% of the time user has stopped using it anyway so there is no advantage to moving it back to faster storage. You would need to scan the file system more than once a day to capture more reused files in my experience. Secondly if the data is modified and saved due to the way most software handles this you end up with a "new" file which will land in the fast storage anyway. That is most software on a save creates a new temporary file first with the new version of the file, renames the old file to something temporary, renames the new file to the right file name and then finally deletes the old version of file. That way if the program crashes somewhere in the save there will always be a good version of the file to go back to. Thirdly the slower tier (I am thinking along the lines of large RAID6 or equivalent devices) generally has lots of spare IOPS capacity anyway. Consequently the small amount or "revisited" data that does remain in use beyond a day is not going to have a significant impact. I measured around 10 IOPS on average on the slow disk in a general purpose file system. The only time it broke this was when a flush of data form the faster tier arrived at which point they would peg out at around 120 IOPS which is what you would expect for a 7200 RPM disk.
And also if you ever move files to colder storage without necessarily waiting until the files are say over 7 days old, since you know they are not going to be used for a while.
I would do things like punt .iso images directly to slower storage. Those sorts of files generally don't benefit from having low seek times which is what your fast disk pools give you. I would suggest that video files like MPEG and MP4 could be potentially also be treated similarly. So a rule like the following /* force ISO images onto nearline storage */ RULE 'iso' SET POOL 'slow' WHERE LOWER(NAME) LIKE '%.iso' What you might punt to slower storage will likely depend heavily on what you file system is being used for. You can of course also use this to "discourage" your storage from being used for "personal" use by giving certain file types lower performance. So a rule like the following puts all the music files on slower storage. /* force MP3's and the like onto nearline storage forever */ RULE 'mp3' SET POOL 'slow' WHERE LOWER(NAME) LIKE '%.mp3' OR LOWER(NAME) LIKE '%.m4a' OR LOWER(NAME) LIKE '%.wma' JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
On 06/21/2016 10:25 PM, Gaurang Tapase wrote:
Hello,
Based on inputs from some of the Spectrum Scale users, sharing a blog link for "Automatic tiering of object data based on object heat" by Smita. https://smitaraut.wordpress.com/2016/06/16/hot-cakes-or-hot-objects-they-bet...
Thanks for the blog post. I wanted to post my experiences: Note "sata0" is really NL-SAS. [root@scg-gs0 ~]# df -h|grep gsfs /dev/gsfs0 4.4P 3.1P 1.4P 70% /srv/gsfs0 [root@scg-gs0 ~]# df -i|grep gsfs /dev/gsfs0 314572800 234237984 80334816 75% /srv/gsfs0 [root@scg-gs0 ~]# mmlspool gsfs0 Storage pools in file system at '/srv/gsfs0': Name Id BlkSize Data Meta Total Data in (KB) Free Data in (KB) Total Meta in (KB) Free Meta in (KB) system 0 256 KB yes yes 1887436800 118287616 ( 6%) 1887436800 328248832 ( 17%) sas0 65537 256 KB yes no 259795189760 59495012864 ( 23%) 0 0 ( 0%) sata0 65538 256 KB yes no 4523875631104 1405369561600 ( 31%) 0 0 ( 0%) [root@scg-gs0 ~]# mmlspolicy gsfs0 -L RULE 'scratch01' SET POOL 'sata0' WHERE FILESET_NAME LIKE 'scratch' RULE 'default' SET POOL 'sas0' [root@scg-gs0 ~]# cat policy_gpool.txt rule 'grpdef' GROUP POOL 'gpool' IS 'system' LIMIT(80) THEN 'sas0' LIMIT(80) THEN 'sata0' rule 'repack' MIGRATE FROM POOL 'gpool' TO POOL 'gpool' WEIGHT(FILE_HEAT) [root@scg-gs0 ~]# mmlsconfig|grep -i heat fileHeatPeriodMinutes 1440 fileHeatLossPercent 1 The first thing to know is that the MIGRATE rules only run when you run 'mmapplypolicy', even is you have the migrate policy loaded. So you have to decide when/how to do that. The filesystem scan takes a while; here are the parameters that let a full scan of our filesystem complete in under 10mins (8 I/O servers, ~300M inodes): mmapplypolicy gsfs0 -P policy.txt -N scg-gs0,scg-gs1,scg-gs2,scg-gs3,scg-gs4,scg-gs5,scg-gs6,scg-gs7 -L 2 -g /srv/gsfs0/admin_stuff/ -I yes -B 500 -A 61 -a 4 The issues we have are: 1) the pools are not sized correctly. We have 3 tiers: 1.8TB SSD, 259TB 10K SAS, 4523 TB 7.2K NL-SAS (0.03% ssd, 5.4% “fast”, 94.57% “slow”) 2) the client I/O can max out the IOPS in the "slow" pool and in the "fast" pool The original idea was to have all client I/O go to the 10K pool, then migrate least-used data to slow pool. Unfortunately our fast pool fills up too quickly and then GPFS can't empty it quickly enough into the slow pool. So I end up switching the placement policy to put files into the slow pool. And then emptying the fast pool into the slow pool doesn't work too well because the slow pool is already maxed out on IOPS just handling the workload. So moving the data from fast to slow takes weeks and impacts performance. The original intention was: [root@scg-gs0 ~]# cat policy_placement.txt RULE 'faster01' SET POOL 'system' WHERE FILESET_NAME LIKE 'home.%' RULE 'scratch01' SET POOL 'sata0' WHERE FILESET_NAME LIKE 'scratch' RULE 'default' SET POOL 'sas0' I would recommend that your total workload fits in both capacity and performance into your "primary" aka "fast" pool. I also just learned recently of the LIMIT parameter for placement, e.g. RULE 'scratch01' SET POOL 'sata0' WHERE FILESET_NAME LIKE 'scratch' RULE 'default' SET POOL 'sas0' LIMIT (95) RULE 'spillover' SET POOL 'sata0' So that would help with the pool not filling, but won't help with not having enough I/O for migration+clients. Regards, -- Alex Chekholko chekh@stanford.edu
I'd like to see comments and/or questions and/or suggestions from any others who have implemented, deployed or seriously planned using FILE_HEAT and/or GROUP POOL. We implemented this a few years ago. Since we haven't had much feedback, it's either perfect or ... ? ;-) Alex, my reading of your story is that your hardware does not match your requirements, capacity, speeds, feeds. One new possibly helpful improvement is that SS release 4.2 includes QOSio which allows one to control the IOPs consumed by migration. So you can control the performance "hit" of running mmapplypolicy. You can even control it on-the-fly without killing a long running job -- for example you can throttle it back to 100iops during prime-time day shift operations -- marc of GPFS. From: Alex Chekholko <chekh@stanford.edu> To: gpfsug-discuss@spectrumscale.org Date: 06/24/2016 02:10 PM Subject: Re: [gpfsug-discuss] Blog on "Automatic tiering of object data based on object heat" Sent by: gpfsug-discuss-bounces@spectrumscale.org On 06/21/2016 10:25 PM, Gaurang Tapase wrote:
Hello,
Based on inputs from some of the Spectrum Scale users, sharing a blog link for "Automatic tiering of object data based on object heat" by Smita.
https://smitaraut.wordpress.com/2016/06/16/hot-cakes-or-hot-objects-they-bet...
Thanks for the blog post. I wanted to post my experiences: Note "sata0" is really NL-SAS. [root@scg-gs0 ~]# df -h|grep gsfs /dev/gsfs0 4.4P 3.1P 1.4P 70% /srv/gsfs0 [root@scg-gs0 ~]# df -i|grep gsfs /dev/gsfs0 314572800 234237984 80334816 75% /srv/gsfs0 [root@scg-gs0 ~]# mmlspool gsfs0 Storage pools in file system at '/srv/gsfs0': Name Id BlkSize Data Meta Total Data in (KB) Free Data in (KB) Total Meta in (KB) Free Meta in (KB) system 0 256 KB yes yes 1887436800 118287616 ( 6%) 1887436800 328248832 ( 17%) sas0 65537 256 KB yes no 259795189760 59495012864 ( 23%) 0 0 ( 0%) sata0 65538 256 KB yes no 4523875631104 1405369561600 ( 31%) 0 0 ( 0%) [root@scg-gs0 ~]# mmlspolicy gsfs0 -L RULE 'scratch01' SET POOL 'sata0' WHERE FILESET_NAME LIKE 'scratch' RULE 'default' SET POOL 'sas0' [root@scg-gs0 ~]# cat policy_gpool.txt rule 'grpdef' GROUP POOL 'gpool' IS 'system' LIMIT(80) THEN 'sas0' LIMIT(80) THEN 'sata0' rule 'repack' MIGRATE FROM POOL 'gpool' TO POOL 'gpool' WEIGHT(FILE_HEAT) [root@scg-gs0 ~]# mmlsconfig|grep -i heat fileHeatPeriodMinutes 1440 fileHeatLossPercent 1 The first thing to know is that the MIGRATE rules only run when you run 'mmapplypolicy', even is you have the migrate policy loaded. So you have to decide when/how to do that. The filesystem scan takes a while; here are the parameters that let a full scan of our filesystem complete in under 10mins (8 I/O servers, ~300M inodes): mmapplypolicy gsfs0 -P policy.txt -N scg-gs0,scg-gs1,scg-gs2,scg-gs3,scg-gs4,scg-gs5,scg-gs6,scg-gs7 -L 2 -g /srv/gsfs0/admin_stuff/ -I yes -B 500 -A 61 -a 4 The issues we have are: 1) the pools are not sized correctly. We have 3 tiers: 1.8TB SSD, 259TB 10K SAS, 4523 TB 7.2K NL-SAS (0.03% ssd, 5.4% “fast”, 94.57% “slow”) 2) the client I/O can max out the IOPS in the "slow" pool and in the "fast" pool The original idea was to have all client I/O go to the 10K pool, then migrate least-used data to slow pool. Unfortunately our fast pool fills up too quickly and then GPFS can't empty it quickly enough into the slow pool. So I end up switching the placement policy to put files into the slow pool. And then emptying the fast pool into the slow pool doesn't work too well because the slow pool is already maxed out on IOPS just handling the workload. So moving the data from fast to slow takes weeks and impacts performance. The original intention was: [root@scg-gs0 ~]# cat policy_placement.txt RULE 'faster01' SET POOL 'system' WHERE FILESET_NAME LIKE 'home.%' RULE 'scratch01' SET POOL 'sata0' WHERE FILESET_NAME LIKE 'scratch' RULE 'default' SET POOL 'sas0' I would recommend that your total workload fits in both capacity and performance into your "primary" aka "fast" pool. I also just learned recently of the LIMIT parameter for placement, e.g. RULE 'scratch01' SET POOL 'sata0' WHERE FILESET_NAME LIKE 'scratch' RULE 'default' SET POOL 'sas0' LIMIT (95) RULE 'spillover' SET POOL 'sata0' So that would help with the pool not filling, but won't help with not having enough I/O for migration+clients. Regards, -- Alex Chekholko chekh@stanford.edu _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (5)
-
Alex Chekholko -
Daniel Kidger -
Gaurang Tapase -
Jonathan Buzzard -
Marc A Kaplan
