Hello everyone, I have a situation here, I have two node and the share only one volume. But after many month we have notice a High load of memory consumption of the glusterfs process. You can see the top output of our server: # top top - 08:55:08 up 350 days, 23:36, 2 users, load average: 1.51, 1.71, 2.04 Tasks: 197 total, 1 running, 196 sleeping, 0 stopped, 0 zombie Cpu(s): 4.7%us, 10.7%sy, 0.0%ni, 82.1%id, 0.3%wa, 0.6%hi, 1.5%si, 0.0%st Mem: 8125496k total, 5948512k used, 2176984k free, 43760k buffers Swap: 14878048k total, 5731656k used, 9146392k free, 109640k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1892 root 20 0 10.2g 4.7g 1900 S 15 61.1 8980:27 glusterfs .. 10 GBytes is tooooo much for a process and we want to know if there is anything we can do too solve this situation. Our gluster version is 3.3 I hope you can help me. Regards David Andino
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 1892 root 20 0 10.2g 4.7g 1900 S 15 61.1 8980:27 glusterfs> 10 GBytes is tooooo much for a process and we want to know if there is > anything we can do too solve this situation.In general VIRT (virtual) is not the memory you should be looking at but the RES (resident) which is 4.7G and is the actual memory the process is using. You can cleary see it from:> Mem: 8125496k total, 5948512k used, 2176984k freeEg your server has only 8Gb of physical ram and 2Gb free so there is no way a process can eat up "actual" 10 Gigs (unless Linux virtual memory). The bad thing though you have quite a large swap size and it's being used:> Swap: 14878048k total, 5731656k used, 9146392k free, 109640k cachedI would suggest to run: sysctl -w vm.swappiness=0 (and then set it in sysctl.conf for permanet use) so the systems avoids swapping as much as possible. p.s. to understand more about Linux memory management you might to look at this presentation https://www.youtube.com/watch?v=twQKAoq2OPE rr