default drop count for lock_dlm
Hi,
I think it would be a good plan to have a zero default (i.e. off) for the drop_count parameter, otherwise its liable to cause a performance problem if its set too low. There is also the question of what exactly the "right" setting actually is, as it seems it's not easy to find the right balance. Probably the best advice is to only set it in the case that the DLM is taking excessive amounts of memory and then use the guidance from cat /proc/slabinfo | grep gfs2_glock to get a rough idea of the threshold to set it at,
Steve.
fs/gfs2/locking/dlm/lock_dlm.h +1 -1
@@ -36,7 +36,7 @@#define GDLM_STRNAME_BYTES 24#define GDLM_LVB_SIZE 32 -#define GDLM_DROP_COUNT 200000 +#define GDLM_DROP_COUNT 0#define GDLM_DROP_PERIOD 60#define GDLM_NAME_LEN 128
Quoted 10 lines · Steven Whitehouse
Hi,
I think it would be a good plan to have a zero default (i.e. off) for the
drop_countparameter, otherwise its liable to cause a performance problem if its set too low. There is also the question of what exactly the "right" setting actually is, as it seems it's not easy to find the right balance. Probably the best advice is to only set it in the case that the DLM is taking excessive amounts of memory and then use the guidance from cat/proc/slabinfo| grepgfs2_glockto get a rough idea of the threshold to set it at,
Sounds fine to me.