Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
14163
Description
lctl set_param should have an option to set a parameter across multiple matched files in parallel. For instance, if you execute this lctl set_param command:
lctl set_param [parallel-option] ldlm.namespaces.*osc*.lru_size=clear
it should write "clear" to the files matching the given parameter pattern in parallel.
This enhancement is required to speed up clearing of Lustre caches. When there are many OSTs, executing
lctl set_param ldlm.namespaces.*.lru_size=clear
takes a long time, and there is no reason that the lru_size files can't be written to in parallel. Then the work can be done on each OST in parallel.
For example, with 16 OSTs, it takes 5.4 seconds to clear caches across all namespaces. This could be sped up by parallelizing the write to lru_size across the namespaces.
If this enhancement is added, then LU-3970 can also be resolved.
Attachments
Issue Links
- is related to
-
LU-3970 Add procfs interface for clearing lustre caches in parallel
-
- Resolved
-
Yes much work is left to be done. I spent yesterday updating the patch for
LU-5030. I think I know what you want (get_param and set_param) so I'm going to work that in.Test sanityn.sh 35 is another loop through the proc file system to gather import data much like the sanity 900 test. Thinking about it a really nice feature would to get_param with filters. So if you only get results back for a specific value.