[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
Subject: LU-14717 osd-ldiskfs: set readcache_max_filesize properly
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7f34f27264dcd021c4901103286dd63c9a7cbe4e

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

Generated at Sat Feb 10 03:12:10 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.