Gluster bricks consuming up to 800% of CPU when 'dict_deln' warnings are posted.
Issue
-
Gluster bricks consuming a high percentage of CPU. From top output:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22972 root 20 0 21.4g 3.4g 3384 S 878.8 5.4 111353:58 /usr/sbin/glusterfsd -s 192.168.1.1 --volfile-id vol_aaace4b6e98e0a3c2a253a45fafd701a.192.168.1.1.var-lib-heketi-mounts-vg_86e56688599607373553318c6e56d9c7-brick_2+ -
At the same time, inspecting the brick logs at
/var/log/glusterfs/bricks/<brick-path>.log, the following messages are observed:[2021-10-01 12:27:54.107149] W [dict.c:633:dict_deln] (-->/usr/lib64/glusterfs/6.0/xlator/storage/posix.so(+0x20605) [0x7f4867be0605] -->/usr/lib64/glusterfs/6.0/xlator/storage/posix.so(+0xef57) [0x7f4867bcef57] -->/lib64/libglusterfs.so.0(dict_deln+0x1ae) [0x7f486f5d37ce] ) 142-dict: !this || key=(null) [Invalid argument] -
How to reduce the CPU usage of the brick?
Environment
- Red Hat Openshift Container Storage version lower than 3.11.8
- Red Hat Gluster Storage, version lower than 3.5.5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.