File_heat for GPFS File Systems Questions over Questions ...
Hello GPFS experts, customer wanting a report about the usage of the usage including file_heat in a large Filesystem. The report should be taken every month. mmchconfig fileHeatLossPercent=10,fileHeatPeriodMinutes=30240 -i fileHeatPeriodMinutes=30240 equals to 21 days. I#m wondering about the behavior of fileHeatLossPercent. - If it is set to 10, will file_heat decrease from 1 to 0 in 10 steps? - Or does file_heat have an asymptotic behavior, and heat 0 will never be reached? Anyways the results will be similar ;-) latter taking longer. We want to achieve following file lists: - File_Heat > 50% -> rather hot data - File_Heat 50% < x < 20 -> lukewarm data - File_Heat 20% <= x <= 0% -> ice cold data We will have to work on the limits between the File_Heat classes, depending on customers wishes. Are there better parameter settings for achieving this? Do any scripts/programs exist for analyzing the file_heat data? We have observed when taking policy runs on a large GPFS file system, the meta data performance significantly dropped, until job was finished. It took about 15 minutes on a 880 TB with 150 Mio entries GPFS file system. How is the behavior, when file_heat is being switched on? Do all files in the GPFS have the same temperature? Thanks for your help Ciao Andreas -- Andreas Landhäußer +49 151 12133027 (mobile) alandhae@gmx.de
fileHeatLossPercent=10, fileHeatPeriodMinutes=1440 means any file that has not been accessed for 1440 minutes (24 hours = 1 day) will lose 10% of its Heat. So if it's heat was X at noon today, tomorrow 0.90 X, the next day 0.81X, on the k'th day (.90)**k * X. After 63 fileHeatPeriods, we always round down and compute file heat as 0.0. The computation (in floating point with some approximations) is done "on demand" based on a heat value stored in the Inode the last time the unix access "atime" and the current time. So the cost of maintaining FILE_HEAT for a file is some bit twiddling, but only when the file is accessed and the atime would be updated in the inode anyway. File heat increases by approximately 1.0 each time the entire file is read from disk. This is done proportionately so if you read in half of the blocks the increase is 0.5. If you read all the blocks twice FROM DISK the file heat is increased by 2. And so on. But only IOPs are charged. If you repeatedly do posix read()s but the data is in cache, no heat is added. The easiest way to observe FILE_HEAT is with the mmapplypolicy directory -I test -L 2 -P fileheatrule.policy RULE 'fileheatrule' LIST 'hot' SHOW('Heat=' || varchar(FILE_HEAT)) /* in file fileheatfule.policy */ Because policy reads metadata from inodes as stored on disk, when experimenting/testing you may need to mmfsctl fs suspend-write; mmfsctl fs resume to see results immediately. From: Andreas Landhäußer <alandhae@gmx.de> To: gpfsug-discuss@spectrumscale.org Date: 09/26/2016 08:12 AM Subject: [gpfsug-discuss] File_heat for GPFS File Systems Questions over Questions ... Sent by: gpfsug-discuss-bounces@spectrumscale.org Hello GPFS experts, customer wanting a report about the usage of the usage including file_heat in a large Filesystem. The report should be taken every month. mmchconfig fileHeatLossPercent=10,fileHeatPeriodMinutes=30240 -i fileHeatPeriodMinutes=30240 equals to 21 days. I#m wondering about the behavior of fileHeatLossPercent. - If it is set to 10, will file_heat decrease from 1 to 0 in 10 steps? - Or does file_heat have an asymptotic behavior, and heat 0 will never be reached? Anyways the results will be similar ;-) latter taking longer. We want to achieve following file lists: - File_Heat > 50% -> rather hot data - File_Heat 50% < x < 20 -> lukewarm data - File_Heat 20% <= x <= 0% -> ice cold data We will have to work on the limits between the File_Heat classes, depending on customers wishes. Are there better parameter settings for achieving this? Do any scripts/programs exist for analyzing the file_heat data? We have observed when taking policy runs on a large GPFS file system, the meta data performance significantly dropped, until job was finished. It took about 15 minutes on a 880 TB with 150 Mio entries GPFS file system. How is the behavior, when file_heat is being switched on? Do all files in the GPFS have the same temperature? Thanks for your help Ciao Andreas -- Andreas Landhäußer +49 151 12133027 (mobile) alandhae@gmx.de _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Mon, 26 Sep 2016, Marc A Kaplan <makaplan@us.ibm.com> wrote: Marc, thanks for your explanation,
fileHeatLossPercent=10, fileHeatPeriodMinutes=1440
means any file that has not been accessed for 1440 minutes (24 hours = 1 day) will lose 10% of its Heat.
So if it's heat was X at noon today, tomorrow 0.90 X, the next day 0.81X, on the k'th day (.90)**k * X. After 63 fileHeatPeriods, we always round down and compute file heat as 0.0.
The computation (in floating point with some approximations) is done "on demand" based on a heat value stored in the Inode the last time the unix access "atime" and the current time. So the cost of maintaining FILE_HEAT for a file is some bit twiddling, but only when the file is accessed and the atime would be updated in the inode anyway.
File heat increases by approximately 1.0 each time the entire file is read from disk. This is done proportionately so if you read in half of the blocks the increase is 0.5. If you read all the blocks twice FROM DISK the file heat is increased by 2. And so on. But only IOPs are charged. If you repeatedly do posix read()s but the data is in cache, no heat is added.
with the above definition file heat >= 0.0 e.g. any positive floating point value is valid. I need to categorize the files into categories hot, warm, lukewarm and cold. How do I achieve this, since the maximum heat is varying and need to be defined every time when requesting the report. We are wishing to migrate data according to the heat onto different storage categories (expensive --> cheap devices)
The easiest way to observe FILE_HEAT is with the mmapplypolicy directory -I test -L 2 -P fileheatrule.policy
RULE 'fileheatrule' LIST 'hot' SHOW('Heat=' || varchar(FILE_HEAT)) /* in file fileheatfule.policy */
Because policy reads metadata from inodes as stored on disk, when experimenting/testing you may need to
mmfsctl fs suspend-write; mmfsctl fs resume
Doing this on a production file system, a valid change request need to be filed, and description of the risks for customers data and so on have to be defined (ITIL) ... Any help and ideas will be appreciated Andreas -- Andreas Landhäußer +49 151 12133027 (mobile) alandhae@gmx.de
You asked ... "We are wishing to migrate data according to the heat onto different storage categories (expensive --> cheap devices)" We suggest a policy rule like this: Rule 'm' Migrate From Pool 'Expensive' To Pool 'Thrifty' Threshold(90,75) Weight(-FILE_HEAT) /* minus sign! */ Which you can interpret as: When The 'Expensive' pool is 90% or more full, Migrate the lowest heat (coldest!) files to pool 'Thrifty', until the occupancy of 'Expensive' has been reduced to 75%. The concepts of Threshold and Weight have been in the produce since the MIGRATE rule was introduced. Another concept we introduced at the same time as FILE_HEAT was GROUP POOL. We've had little feedback and very few questions about this, so either it works great or is not being used much. (Maybe both are true ;-) ) GROUP POOL migration is documented in the Information Lifecycle Management chapter along with the other elements of the policy rules. In the 4.2.1 doc we suggest you can "repack" several pools with one GROUP POOL rule and one MIGRATE rule like this: You can “repack” a group pool by WEIGHT. Migrate files of higher weight to preferred disk pools by specifying a group pool as both the source and the target of a MIGRATE rule. rule ’grpdef’ GROUP POOL ’gpool’ IS ’ssd’ LIMIT(90) THEN ’fast’ LIMIT(85) THEN ’sata’ rule ’repack’ MIGRATE FROM POOL ’gpool’ TO POOL ’gpool’ WEIGHT(FILE_HEAT) This should rank all the files in the three pools from hottest to coldest, and migrate them as necessary (if feasible) so that 'ssd' is up to 90% full of the hottest, 'fast' is up to 85% full of the next most hot, and the coolest files will be migrated to 'sata'.
as far as I understand, if a file gets hot again, there is no rule for putting the file back into a faster storage device? We would like having something like a storage elevator depending on the fileheat. In our setup, customer likes to migrate/move data even when the the threshold is not hit, just because it's cold and the price of the storage is less. On 27.09.2016 16:25, Marc A Kaplan wrote:
You asked ... "We are wishing to migrate data according to the heat onto different storage categories (expensive --> cheap devices)"
We suggest a policy rule like this:
Rule 'm' Migrate From Pool 'Expensive' To Pool 'Thrifty' Threshold(90,75) Weight(-FILE_HEAT) /* minus sign! */
Which you can interpret as:
When The 'Expensive' pool is 90% or more full, Migrate the lowest heat (coldest!) files to pool 'Thrifty', until the occupancy of 'Expensive' has been reduced to 75%.
The concepts of Threshold and Weight have been in the produce since the MIGRATE rule was introduced.
Another concept we introduced at the same time as FILE_HEAT was GROUP POOL. We've had little feedback and very few questions about this, so either it works great or is not being used much. (Maybe both are true ;-) )
GROUP POOL migration is documented in the Information Lifecycle Management chapter along with the other elements of the policy rules.
In the 4.2.1 doc we suggest you can "repack" several pools with one GROUP POOL rule and one MIGRATE rule like this:
You can “repack” a group pool by *WEIGHT*. Migrate files of higher weight to preferred disk pools by specifying a group pool as both the source and the target of a *MIGRATE *rule.
rule ’grpdef’ GROUP POOL ’gpool’ IS ’ssd’ LIMIT(90) THEN ’fast’ LIMIT(85) THEN ’sata’ rule ’repack’ MIGRATE FROM POOL ’gpool’ TO POOL ’gpool’ WEIGHT(FILE_HEAT)
This should rank all the files in the three pools from hottest to coldest, and migrate them as necessary (if feasible) so that 'ssd' is up to 90% full of the hottest, 'fast' is up to 85% full of the next most hot, and the coolest files will be migrated to 'sata'.
-- Andreas Landhäußer +49 151 12133027 (mobile) alandhae@gmx.de
On 09/27/2016 11:04 AM, Andreas Landhäußer wrote:
if a file gets hot again, there is no rule for putting the file back into a faster storage device?
The file will get moved when you run the policy again. You can run the policy as often as you like. There is also a way to use a GPFS hook to trigger policy run. Check 'mmaddcallback' But I think you have to be careful and think through the complexity. e.g. load spikes and pool fills up and your callback kicks in and starts a migration which increases the I/O load further, etc... Regards, -- Alex Chekholko chekh@stanford.edu
if a file gets hot again, there is no rule for putting the file back into a faster storage device?
The file will get moved when you run the policy again. You can run the policy as often as you like.
I think its worth stating clearly that if a file is in the Thrifty slow pool and a user opens and reads/writes the file there is nothing that moves this file to a different tier. A policy run is the only action that relocates files. So if you apply the policy daily and over the course of the day users access many cold files, the performance accessing those cold files may not be ideal until the next day when they are repacked by heat. A file is not automatically moved to the fast tier on access read or write. I mention this because this aspect of tiering was not immediately clear from the docs when I was a neophyte GPFS admin and I had to learn by observation. It is easy for one to make an assumption that it is a more dynamic tiering system than it is. -Eric -- Eric Horst University of Washington
On Tue, 4 Oct 2016, Daniel Kidger <daniel.kidger@uk.ibm.com> wrote: Daniel, ahh this might also help in my HPC Environment. We are already using AFM, just on HDD, for distributing HPC Data for usage on remote scientific sites. Using the AFM for a temp space seems to be a good idea, will the individual file heat be increased by using ILM policy and AFM? Using a large GPFS Filesystem for scientific results, it seems to be very unlikely all users starting using their cold files at the same point of time, so filesystem space should be sufficient. Thanks for the hint Andreas T-Systems SfR GmbH
If you need functionality like you describe, then as well as using tiering with the ILM Policy Engine, also consider using AFM to cache onto say SSDs. That way you would have dynamic caching: as soon as a file gets accessed, it goes into the cache and further I/O will be do the SSD copy so faster until such time as the file ages and newer files replace it in the AFM cache. The cost of this is perhaps a little more complexity and also a 'hot' file consumes space on both SSD and disk. Daniel /spectrum_storage-banne v Spectrum Scale Logo Dr Daniel Kidger IBM Technical Sales Specialist Software Defined Solution Sales
+44-(0)7818 522 266 daniel.kidger@uk.ibm.com ----- Original message ----- From: Eric Horst <erich@uw.edu> Sent by: gpfsug-discuss-bounces@spectrumscale.org To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Cc: Subject: Re: [gpfsug-discuss] File_heat for GPFS File Systems Date: Tue, Sep 27, 2016 9:56 PM >> >> if a file gets hot again, there is no rule for putting the file back >> into a faster storage device? > > > The file will get moved when you run the policy again. You can run the > policy as often as you like.
I think its worth stating clearly that if a file is in the Thrifty slow pool and a user opens and reads/writes the file there is nothing that moves this file to a different tier. A policy run is the only action that relocates files. So if you apply the policy daily and over the course of the day users access many cold files, the performance accessing those cold files may not be ideal until the next day when they are repacked by heat. A file is not automatically moved to the fast tier on access read or write. I mention this because this aspect of tiering was not immediately clear from the docs when I was a neophyte GPFS admin and I had to learn by observation. It is easy for one to make an assumption that it is a more dynamic tiering system than it is.
-Eric
-- Eric Horst University of Washington _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
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
-- Andreas Landhäußer +49 151 12133027 (mobile) alandhae@gmx.de
Read about GROUP POOL - you can call as often as you like to "repack" the files into several pools from hot to cold. Of course, there is a cost to running mmapplypolicy... So maybe you'd just run it once every day or so...
participants (5)
-
Alex Chekholko -
Andreas Landhäußer -
Daniel Kidger -
Eric Horst -
Marc A Kaplan
