请问3.0.0beta读写分离的命令行加入了吗? Topic is solved

这里报告PrimoCache软件的Bug或建议,
非常感谢您的支持!
回复
y7y007
3级用户
3级用户
帖子: 10
注册时间: 周一 7月 24, 2017 12:43 pm

请问3.0.0beta读写分离的命令行加入了吗?

帖子 y7y007 »

rxpcc new -v 1 -m 1024 -b 4 -g ro -s
rxpcc new -v 1 -m 1024 -b 4 -g wo -s
找到了 只读 只写

如果读分512 读分512 要如何设置?
QQ图片20170803104857.png
您没有权限查看这个主题的附件。
头像
Support
技术支持组
技术支持组
帖子: 2667
注册时间: 周日 12月 21, 2008 10:42 am
联系:

Re: 请问3.0.0beta读写分离的命令行加入了吗?

帖子 Support »

您好!

很抱歉,3.0.0beta中的命令行仅支持显示,还不支持设置。
Primo Ramdisk | PrimoCache
Romex Software 技术支持组
头像
Support
技术支持组
技术支持组
帖子: 2667
注册时间: 周日 12月 21, 2008 10:42 am
联系:

Re: 请问3.0.0beta读写分离的命令行加入了吗?

帖子 Support »

3.0.1版本中已经加入。具体命令参数设置请输入 rxpcc ? new
Primo Ramdisk | PrimoCache
Romex Software 技术支持组
y7y007
3级用户
3级用户
帖子: 10
注册时间: 周一 7月 24, 2017 12:43 pm

Re: 请问3.0.0beta读写分离的命令行加入了吗?

帖子 y7y007 »

原来的-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.
回复