[LU-14717] osd-ldiskfs: set od_readcache_max_filesize with maximal value when setting with negative value via lproc Created: 28/May/21 Updated: 29/May/21 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Qian Yingjin | Assignee: | Qian Yingjin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
# echo -n -1 > /proc/fs/lustre/osd-ldiskfs/lustre0-MDT0000/readcache_max_filesize -bash: echo: write error: Numerical result out of range To disable the maximum cached file size on an OST, run:
root@oss1# lctl set_param obdfilter.{OST_name}.readcache_max_filesize=-1
To check the current maximum cached file size on all OSTs of an OSS, run:
root@oss1# lctl get_param obdfilter.*.readcache_max_filesize
It would better to set readcache_max_filesize with maximal value when setting with negative value via lproc. |
| Comments |
| Comment by Gerrit Updater [ 28/May/21 ] |
|
Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/43861 |
| Comment by Li Xi [ 29/May/21 ] |
|
I noted the doc of Lustre is outdated in the sense of the path: To limit the maximum cached file size to 32 MB on all OSTs of an OSS, run:
root@oss1# lctl set_param obdfilter.*.readcache_max_filesize=32M
obdfilter should osd-ldiskfs |