Hello everyone, My problem is syslog-ng is using 100% CPU. When I trace the process for about 1 minute I get output as follows. As you can see epoll_wait and clock_gettime system calls are causing the problem. My syslog-ng version is 3.3.4. In the older versions I did not have such problems (e.g. 2.0.9). I would like to ask what exactly these system calls are used for and is there a configuration option or parameter to disable these calls or tune them? *top command output;* top - 15:28:46 up 4 days, 16:44, 7 users, load average: 1.33, 1.35, 1.33 Tasks: 245 total, 3 running, 240 sleeping, 2 stopped, 0 zombie Cpu(s): 9.2%us, 16.5%sy, 0.0%ni, 72.4%id, 1.9%wa, 0.1%hi, 0.0%si, 0.0%st Mem: 4029172k total, 3958124k used, 71048k free, 322556k buffers Swap: 4192928k total, 479076k used, 3713852k free, 1613548k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 10192 root 20 0 8304 3908 2452 R 99.4 0.1 850:33.93 syslog-ng *strace command output:* strace -f -c -p `pgrep -f '/sbin/syslog-ng'` Process 10192 attached - interrupt to quit % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 54.37 0.073938 0 5740561 epoll_wait 45.54 0.061930 0 5740562 clock_gettime 0.03 0.000035 0 1884 fcntl64 0.01 0.000020 0 1488 370 read 0.01 0.000018 0 408 writev 0.01 0.000015 0 2166 epoll_ctl 0.01 0.000008 0 172 78 accept 0.01 0.000007 0 797 write 0.01 0.000007 0 848 182 setsockopt 0.00 0.000006 0 489 gettimeofday 0.00 0.000006 0 408 _llseek 0.00 0.000000 0 92 close 0.00 0.000000 0 190 alarm 0.00 0.000000 0 15 stat64 ------ ----------- ----------- --------- --------- ---------------- 100.00 0.135990 11490080 630 total -- Yakup KAYA (B.Sc., CCNA) K?demli Sistem Destek Uzman?/Senior System Support Specialist Labris Teknoloji A.S,. Silikon Blok 1 NK 24 ODTÜ-Teknokent / Ankara, TURKEY Tel: +90 312 210 11 13 Fax: +90 312 210 14 92 yakup.kaya@labrisnetworks.com yakup.kaya@labris.eu www.labrisnetworks.com
Yakup Kaya <yakup@labrisnetworks.com> writes:
Hello everyone,
My problem is syslog-ng is using 100% CPU. When I trace the process for about 1 minute I get output as follows. As you can see epoll_wait and clock_gettime system calls are causing the problem. My syslog-ng version is 3.3.4. In the older versions I did not have such problems (e.g. 2.0.9). I would like to ask what exactly these system calls are used for and is there a configuration option or parameter to disable these calls or tune them?
I would strongly recommend upgrading to a newer version of syslog-ng, as there have been numerous fixes since 3.3.4 that could possibly fix your issue too. If you're using Debian or Ubuntu (by using 3.3.4 which is in Ubuntu Precise and Debian Wheezy, I assume you do), you can find updated packages at http://asylum.madhouse-project.org/projects/debian/ -- |8]
Thank you very much Gergely. It seems like installing 3.5.4.1-1 solved the problem. Have a nice day On 04/15/2014 01:04 PM, Gergely Nagy wrote:
Yakup Kaya <yakup@labrisnetworks.com> writes:
Hello everyone,
My problem is syslog-ng is using 100% CPU. When I trace the process for about 1 minute I get output as follows. As you can see epoll_wait and clock_gettime system calls are causing the problem. My syslog-ng version is 3.3.4. In the older versions I did not have such problems (e.g. 2.0.9). I would like to ask what exactly these system calls are used for and is there a configuration option or parameter to disable these calls or tune them? I would strongly recommend upgrading to a newer version of syslog-ng, as there have been numerous fixes since 3.3.4 that could possibly fix your issue too.
If you're using Debian or Ubuntu (by using 3.3.4 which is in Ubuntu Precise and Debian Wheezy, I assume you do), you can find updated packages at http://asylum.madhouse-project.org/projects/debian/
-- Yakup KAYA (B.Sc., CCNA) Kıdemli Sistem Destek Uzmanı/Senior System Support Specialist Labris Teknoloji A.Ş. Silikon Blok 1 NK 24 ODTÜ-Teknokent / Ankara, TURKEY Tel: +90 312 210 11 13 Fax: +90 312 210 14 92 yakup.kaya@labrisnetworks.com yakup.kaya@labris.eu www.labrisnetworks.com
participants (2)
-
Gergely Nagy
-
Yakup Kaya