Re: [lustre-discuss] set_param permanent on client side ?

2018-05-28 Thread Dilger, Andreas
Running"lctl get_param -P" and "lctl conf_param" need to be done on the MGS to 
be able to store the records in the config log, and to ensure that the user has 
the correct access permissions. 

The clients are notified of the config log update and apply the logs locally, 
the parameters do not need to be present on the MGS for this to work. 

Cheers, Andreas

> On May 28, 2018, at 16:19, Riccardo Veraldi  
> wrote:
> 
> the problem is that some of these parameters seems like are not there on
> the MDS side
> 
> lctl get_param osc.*.checksums
> error: get_param: param_path 'osc/*/checksums': No such file or directory
> 
> lctl get_param osc.*.max_pages_per_rpc
> error: get_param: param_path 'osc/*/max_pages_per_rpc': No such file or
> directory
> 
> lctl get_param llite.*.max_cached_mb
> 
> only some of them are on the MDS side
> 
> lctl get_param osc.*.max_rpcs_in_flight
> osc.drpffb-OST0001-osc-MDT.max_rpcs_in_flight=64
> osc.drpffb-OST0002-osc-MDT.max_rpcs_in_flight=64
> osc.drpffb-OST0003-osc-MDT.max_rpcs_in_flight=64
> 
> 
> 
> 
>> On 5/23/18 1:15 AM, Artem Blagodarenko wrote:
>> Hello Riccardo,
>> 
>> There is “lctl set_param -P” command that set parameter permanently. It 
>> needs to be executed on MGS server (and only MGS must be mounted), but 
>> parameter is applied to given  target (or client). From your example:
>> 
>> lctl set_param -P osc.*.checksums=0   
>> 
>> Will execute “set_param osc.*.checksums=0” on all targets.
>> 
>> Best regards,
>> Artem Blagodarenko.
>> 
>>> On 23 May 2018, at 00:11, Riccardo Veraldi  
>>> wrote:
>>> 
>>> Hello,
>>> 
>>> how do I set_param in a persistent way on the lsutre clinet side so that
>>> it has not to be set every time after reboot ?
>>> 
>>> Not all of these parameters can be set on the MDS, for example the osc.* :
>>> 
>>> lctl set_param osc.*.checksums=0
>>> lctl set_param timeout=600
>>> lctl set_param at_min=250
>>> lctl set_param at_max=600
>>> lctl set_param ldlm.namespaces.*.lru_size=2000
>>> lctl set_param osc.*.max_rpcs_in_flight=64
>>> lctl set_param osc.*.max_dirty_mb=1024
>>> lctl set_param llite.*.max_read_ahead_mb=1024
>>> lctl set_param llite.*.max_cached_mb=81920
>>> lctl set_param llite.*.max_read_ahead_per_file_mb=1024
>>> lctl set_param subsystem_debug=0
>>> 
>>> thank you
>>> 
>>> 
>>> Rick
>>> 
>>> 
>>> 
>>> ___
>>> lustre-discuss mailing list
>>> lustre-discuss@lists.lustre.org
>>> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
> 
> 
> ___
> lustre-discuss mailing list
> lustre-discuss@lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org
___
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


Re: [lustre-discuss] set_param permanent on client side ?

2018-05-28 Thread Riccardo Veraldi
the problem is that some of these parameters seems like are not there on
the MDS side

lctl get_param osc.*.checksums
error: get_param: param_path 'osc/*/checksums': No such file or directory

lctl get_param osc.*.max_pages_per_rpc
error: get_param: param_path 'osc/*/max_pages_per_rpc': No such file or
directory

lctl get_param llite.*.max_cached_mb

only some of them are on the MDS side

lctl get_param osc.*.max_rpcs_in_flight
osc.drpffb-OST0001-osc-MDT.max_rpcs_in_flight=64
osc.drpffb-OST0002-osc-MDT.max_rpcs_in_flight=64
osc.drpffb-OST0003-osc-MDT.max_rpcs_in_flight=64




On 5/23/18 1:15 AM, Artem Blagodarenko wrote:
> Hello Riccardo,
>
> There is “lctl set_param -P” command that set parameter permanently. It needs 
> to be executed on MGS server (and only MGS must be mounted), but parameter is 
> applied to given  target (or client). From your example:
>
> lctl set_param -P osc.*.checksums=0   
>
> Will execute “set_param osc.*.checksums=0” on all targets.
>
> Best regards,
> Artem Blagodarenko.
>
>> On 23 May 2018, at 00:11, Riccardo Veraldi  
>> wrote:
>>
>> Hello,
>>
>> how do I set_param in a persistent way on the lsutre clinet side so that
>> it has not to be set every time after reboot ?
>>
>> Not all of these parameters can be set on the MDS, for example the osc.* :
>>
>> lctl set_param osc.*.checksums=0
>> lctl set_param timeout=600
>> lctl set_param at_min=250
>> lctl set_param at_max=600
>> lctl set_param ldlm.namespaces.*.lru_size=2000
>> lctl set_param osc.*.max_rpcs_in_flight=64
>> lctl set_param osc.*.max_dirty_mb=1024
>> lctl set_param llite.*.max_read_ahead_mb=1024
>> lctl set_param llite.*.max_cached_mb=81920
>> lctl set_param llite.*.max_read_ahead_per_file_mb=1024
>> lctl set_param subsystem_debug=0
>>
>> thank you
>>
>>
>> Rick
>>
>>
>>
>> ___
>> lustre-discuss mailing list
>> lustre-discuss@lists.lustre.org
>> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


___
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


Re: [lustre-discuss] ptrlpcd parameters

2018-05-28 Thread Riccardo Veraldi
On 5/22/18 11:44 PM, Dilger, Andreas wrote:
> On May 22, 2018, at 15:15, Riccardo Veraldi  
> wrote:
>> hello,
>>
>> how to set ptrlpcd parameters at boot time ?
>>
>> instead of
>>
>> echo 32 > /sys/module/ptlrpc/parameters/max_ptlrpcds
>> echo 3 > /sys/module/ptlrpc/parameters/ptlrpcd_bind_policy
>>
>> I tried to load from /etd/modprobe.d/ptlrpc.conf 
>>
>> options ptlrpcd max_ptlrpcds=32
>> options ptlrpcd ptlrpcd_bind_policy=3
>>
>> but this way does not work. the file in modprobe.d is ignored.
> The module is not named "ptlrpcd", it is named "ptlrpc".
>
>> also these 2 parameters are labeled as obsoleted but I found benefits
>> setting ptlrpcd max_ptlrpcds to 32
> The "max_ptlrpcds" and "ptlrpcd_bind_policy" parameters are obsolete, you
> should use "ptlrpcd_per_cpt_max" and "ptlrpcd_partner_group_size" instead.
great thank you very much
>
> Cheers, Andreas
> --
> Andreas Dilger
> Lustre Principal Architect
> Intel Corporation
>
>
>
>
>
>
>

___
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org