rxpcc new -v 1 -m 1024 -b 4 -g ro -s
rxpcc new -v 1 -m 1024 -b 4 -g wo -s
找到了 只读 只写
如果读分512 读分512 要如何设置?
请问3.0.0beta读写分离的命令行加入了吗? Topic is solved
Re: 请问3.0.0beta读写分离的命令行加入了吗?
您好!
很抱歉,3.0.0beta中的命令行仅支持显示,还不支持设置。
很抱歉,3.0.0beta中的命令行仅支持显示,还不支持设置。
Re: 请问3.0.0beta读写分离的命令行加入了吗?
3.0.1版本中已经加入。具体命令参数设置请输入 rxpcc ? new
Re: 请问3.0.0beta读写分离的命令行加入了吗?
原来的-g参数去掉了,多了-r -x
前
=====================================================
后
前
代码: 全选
-g, -strategy <strategy> - Specifies the cache strategy. <strategy> can be
one of the following:
RW - Read-data & Write-data
RO - Read-data Only
WO - Write-data Only
If -g option is not stated, RW is the default.
后
代码: 全选
-r, -ratio <r1>[,<r2>] - Specifies that how much percentage of the cache
space will be dedicated to writing cache.
<r1> is the ratio value for the level-1 cache,
and <r2> is the value for the level-2 cache.
Possible values are numbers from 0 to 100, or
255 which means the whole cache space is shared
by reading and writing.
The default values are 255 (shared) for level-1
cache and 0 (read-only) for level-2 cache.
Example: -r 80,60 means that 80 of L1 cache
will be used for writing and 20 for reading,
while 60 of L2 cache will be used for writing
and 40 for reading.
代码: 全选
-x, -voladv <spec> - By default, all volumes within a cache task
follow the task's cache settings. This option
can specify individual settings and turn off
some unwanted functions for each volume.
<spec> states a volume and its settings. It
has the following format, where "v" represents
the volume index and each "x" represents a
setting value which is a decimal number.
v-xxxx
The settings represented by "x", from left to
right, are Strategy, L2 Cache, Defer-Write and
Prefetch. The following table lists their
possible values.
Strategy:
0 Default
2 Read-Only
3 Write-Only
L2 Cache/Defer-Write/Prefetch:
0 Default
2 Disabled
(Default - Follows the cache task setting)
For example, "-x 4-3220" specifies individual
settings for the volume #4 as below: Write-Only
strategy, L2 Cache disabled, Defer-Write
disabled, while Prefetch is not specified,
using the cache task setting.
Trailing zeros in the "xxxx" format can be
ignored. So above example equals to "-x 4-322".
Two or more <spec> are separated by ",". For
example, "-x 4-3220,1-0222" sets the settings
for the volume #4 and #1.