|
One relatively simple solution would be to have a "quiet time" for newly created objects, so that writes during this initial period do not generate ALR records and do not count as "heat" for the file. Something like "obdfilter.*.access_log_quiet=300" set on the OSTs would skip ALR generation for the first 300s after the object is created. This could be used to differentiate
This would cover the write cases for "lfs mirror extend" and "lfs migrate" and "lfs hsm restore" where new OST objects are allocated for the file, or other tools that may be creating and writing files directly in a "cold" OST pool.
It would not cover the case for "lfs mirror resync" where writes are done to an existing object, nor the read traffic generated by "lfs mirror extend", "lfs mirror resync", "lfs migrate", or "lfs hsm archive". In order to handle this case, there should be an interface (maybe llapi_ladvise(LU_LADVISE_NOALR)}}") that can set a flag on the file descriptor that will flag all OBD_BRW RPCs so that they do not generate ALR records. This is somewhat overlapping with the access_log_quiet functionality, but that has the benefit that it can be applied to old clients/utilities that are not able to use LU_LADVISE_NOALR.
|