Re: how to enable ceph fscache from kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi, all
I recompiled ceph's kernel module ceph.ko and have seen the fscache
dependency.

# modinfo ceph
filename: /lib/modules/5.4.163-1.el8.elrepo.x86_64/kernel/fs/ceph/ceph.ko
license: GPL
description: Ceph filesystem for Linux
author: Patience Warnick <patience@xxxxxxxxxxxx>
author: Yehuda Sadeh <yehuda@xxxxxxxxxxxxxxx>
author: Sage Weil <sage@xxxxxxxxxxxx>
alias: fs-ceph
srcversion: AA4C64FA6C43C1EB54A8807
depends: libceph,fscache
retpoline: Y
intree: Y
name: ceph
vermagic: 5.4.163 SMP mod_unload modversions

But the parameters in /proc/fs/fscache/stats are all equal to 0.

FS-Cache statistics
Cookies: idx=0 dat=0 spc=0
Objects: alc=0 nal=0 avl=0 ded=0
ChkAux : non=0 ok=0 upd=0 obs=0
Pages : mrk=0 unc=0
Acquire: n=0 nul=0 noc=0 ok=0 nbf=0 oom=0
Lookups: n=0 neg=0 pos=0 crt=0 tmo=0
Invals : n=0 run=0
Updates: n=0 nul=0 run=0
Relinqs: n=1 nul=0 wcr=0 rtr=0
AttrChg: n=0 ok=0 nbf=0 oom=0 run=0
Allocs : n=0 ok=0 wt=0 nbf=0 int=0
Allocs : ops=0 owt=0 abt=0
Retrvls: n=0 ok=0 wt=0 nod=0 nbf=0 int=0 oom=0
Retrvls: ops=0 owt=0 abt=0
Stores : n=0 ok=0 agn=0 nbf=0 oom=0
Stores : ops=0 run=0 pgs=0 rxd=0 olm=0
VmScan : nos=0 gon=0 bsy=0 can=0 wt=0
Ops : pend=0 run=0 enq=0 can=0 rej=0
Ops : ini=0 dfr=0 rel=0 gc=0
CacheOp: alo=0 luo=0 luc=0 gro=0
CacheOp: inv=0 upo=0 dro=0 pto=0 atc=0 syn=0
CacheOp: rap=0 ras=0 alp=0 als=0 wrp=0 ucp=0 dsp=0
CacheEv: nsp=0 stl=0 rtr=0 cul=0

Does this function need to be used with cachefiles?

David Yang <gmydw1118@xxxxxxxxx> 于2022年9月23日周五 21:34写道:

> I found in some articles on the net that in their ceph.ko it depends on
> the fscache module.
>
>
> root@client:~# lsmod | grep ceph
> ceph 376832 1
> libceph 315392 1 ceph
> fscache 65536 1 ceph
> libcrc32c 16384 3xfs, raid456, libceph
> root@client:~# modinfo ceph
> filename: /lib/modules/4.15.0-112-generic/kernel/fs/ceph/ceph.ko
> license: GPL
> description: Ceph filesystem for Linux
> author: Patience Warnick <patience@xxxxxxxxxxxx>
> author: Yehuda Sadeh <yehuda@xxxxxxxxxxxxxxx>
> author: Sage Weil <sage@xxxxxxxxxxxx>
> alias: fs-ceph
> srcversion: B2806F4EAACAC1E19EE7AFA
> depends: libceph,fscache
> retpoline: Y
> intree: Y
> name: ceph
> vermagic: 4.15.0-112-generic SMP mod_unload
> signat: PKCS#7
> signer:
> sig_key:
> sig_hashalgo: md4
>
> David Yang <gmydw1118@xxxxxxxxx> 于2022年9月23日周五 12:17写道:
>
>> hi,
>> I am using kernel client to mount cephFS filesystem on Centos8.2.
>> But my ceph's kernel module does not contain fscache.
>>
>>
>> [root@host ~]# uname -r
>> 5.4.163-1.el8.elrepo.x86_64
>> [root@host ~]# lsmod|grep ceph
>> ceph 446464 0
>> libceph 368640 1 ceph
>> dns_resolver 16384 1 libceph
>> libcrc32c 16384 2xfs, libceph
>> [root@host ~]# modinfo ceph
>> filename:
>> /lib/modules/5.4.163-1.el8.elrepo.x86_64/kernel/fs/ceph/ceph.ko.xz
>> license: GPL
>> description: Ceph filesystem for Linux
>> author: Patience Warnick <patience@xxxxxxxxxxxx>
>> author: Yehuda Sadeh <yehuda@xxxxxxxxxxxxxxx>
>> author: Sage Weil <sage@xxxxxxxxxxxx>
>> alias: fs-ceph
>> srcversion: 0923A6EE91D4CE16BC32EA2
>> depends: libceph
>> retpoline: Y
>> intree: Y
>> name: ceph
>> vermagic: 5.4.163-1.el8.elrepo.x86_64 SMP mod_unload modversions
>>
>>
>> What should I do to enable fscache in the ceph module, thanks.
>>
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux