Rcache CLI Commands
rcache show global
- Function
Queries the basic Rcache status information.
- Syntax
rcache show global
- Parameters
Parameter
Description
Value
N/A
N/A
N/A
rcache show vpage statis
- Function
Queries the amount of data written, read, evicted, and hit in the Rcache.
- Syntax
rcache show vpage statis
- Parameters
Parameter
Description
Value
N/A
N/A
N/A
rcache show evict
- Function
Queries basic information about the objects evicted from the Rcache.
- Syntax
rcache show evict [all | <objId>]
- Parameters
Parameter
Description
Value
all
All evicted objects.
all
<objId>
ID of the evicted object.
1-4
rcache show smartcache
- Function
Queries basic information about the L2 Rcache.
- Syntax
rcache show smartcache
- Parameters
Parameter
Description
Value
N/A
N/A
N/A
rcache show plogobj
- Function
Queries basic information about the plogs used by the L2 Rcache.
- Syntax
rcache show plogobj <plogMapId> <vnodeId>
- Parameters
Parameter
Description
Value
<plogMapId>
Logical ID of the plog, which is defined by the L2 Rcache.
A positive integer. You can run the rcache show producer command to query the existing plogMapId.
<vnodeId>
vnode ID
It is determined by the number of PTs on each node. For example, if the number of PTs on each node is a, the value ranges from 0 to (a–1).
rcache show plogmgrobj
- Function
Queries basic information about the plog objects managed by the L2 Rcache.
- Syntax
rcache show plogmgrobj <poolId> <vnodeId>
- Parameters
Parameter
Description
Value
<poolId>
Cache pool ID
0
<vnodeId>
vnode ID
The value ranges from 0 to 2047 and is subject to the number of PTs on the node. For example, if the node has 60 PTs, the value ranges from 0 to 59.
rcache show producer
- Function
Queries basic information about the L2 Rcache plog producer.
- Syntax
rcache show producer <poolId> <vnodeId>
- Parameters
Parameter
Description
Value
<poolId>
Cache pool ID.
0
<vnodeId>
vnode ID
The value ranges from 0 to 2047 and is subject to the number of PTs on the node. For example, if the node has 60 PTs, the value ranges from 0 to 59.
rcache show io
- Function
Queries key dotting information of the Rcache.
- Syntax
rcache show io
- Parameters
Parameter
Description
Value
N/A
N/A
N/A
rcache show hitRatio
- Function
Queries the Rcache hit information.
- Syntax
rcache show hitRatio {clear|diff}
- Parameters
Parameter
Description
Value
N/A
Obtains the current hit rate statistics.
N/A
clear
Clears historical hit rate statistics.
clear
diff
Queries the hit ratios between the current time and the last query.
diff
rcache show pageinfo
- Function
Queries the memory page usage of the L1 Rcache.
- Syntax
rcache show pageinfo
- Parameters
Parameter
Description
Value
N/A
N/A
N/A
rcache show consumer
- Function
Queries basic information about the L2 Rcache plog consumer.
- Syntax
rcache show consumer <poolId> <vnodeId> <consumerListId>
- Parameters
Parameter
Description
Value
<poolId>
Cache pool ID
0
<vnodeId>
vnode ID
0-2047
<consumerListId>
Consumer list ID. Different IDs indicate different cold and hot data streams.
0-5
rcache change evictWM
- Function
Modifies the eviction watermark of the Rcache. The eviction watermark is used to control the amount of data in the Rcache. The higher the eviction watermark, the more difficult it is to evict cache data, and the larger the amount of data cached in the Rcache.
- Syntax
rcache change evictWM <evictObjId> <baseCnt> <highWM> <lowWM>
- Parameters
Parameter
Description
Value
<evictObjId>
ID of the evicted object.
1-4
<baseCnt>
Elimination base for evicting VChunks.
Positive integer
<highWM>
Upper watermark for evicting VChunks.
0-100, larger than <lowWM>
<lowWM>
Lower watermark for evicting VChunks.
0-100, smaller than <highWM>
rcache show evictStatis
- Function
Queries basic statistics about Rcache eviction.
- Syntax
rcache show evictStatis <RcacheType>
- Parameters
Parameter
Description
Value
<RcacheType>
Rcache type.
L1 or L2
rcache show mqEvict
- Function
Queries basic information about the Rcache evict mq algorithm.
- Syntax
rcache show mqEvict <ObjId>
- Parameters
Parameter
Description
Value
<ObjId>
ID of the evicted object.
1 to 4 or all
rcache show dbevict
- Function
Queries Rcache eviction details.
- Syntax
rcache show dbevict
- Parameters
Parameter
Description
Value
N/A
N/A
N/A