[LU-12584] File heat dump on a client Created: 24/Jul/19 Updated: 30/Jan/21 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Qian Yingjin | Assignee: | Qian Yingjin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
Adding filter policy inside kernel for heat dump on a client:
First version only implements the base functionalities:
The file heat filter policy will add when the patch https://review.whamcloud.com/#/c/33126/ has been merged as it will separate some common command and rule parse functions shared with NRS TBF and PCC codes.
Some lfs lctl commands are also added to support the new file heat dump feature:
enable file heat feature on a client
$ lctl set_param llite.*.heat=eanble
disable file heat feature on a client
$lctl set_param llite.*.heat=disable
config file heat parameters
$lctl set_param llite.*.heat="conf decay_pct=70 period_second=90"
list file heat information:
$ lctl get_param -n llite.*heat
dump file heat
$ lfs heat_dump [--num|-N <Num>] [--start-fid|-s <FID>] <mntpt>
clear the file heat tracking list on a client
$ lctl set_param llite.*.heat=clear
Possible performance impact on the file creation/open: we add a global spin lock when add/remove tracked inodes into/from the list, it may affect the file creation performance.
|
| Comments |
| Comment by Gerrit Updater [ 24/Jul/19 ] |
|
Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/35602 |