<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello everyone,<br>
<br>
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?<br>
<br>
<b>top command output;</b><br>
<br>
top - 15:28:46 up 4 days, 16:44, 7 users, load average: 1.33,
1.35, 1.33<br>
Tasks: 245 total, 3 running, 240 sleeping, 2 stopped, 0 zombie<br>
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<br>
Mem: 4029172k total, 3958124k used, 71048k free, 322556k
buffers<br>
Swap: 4192928k total, 479076k used, 3713852k free, 1613548k
cached<br>
<br>
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND &
nbsp;&nbs
p;
<br>
10192 root 20 0 8304 3908 2452 R 99.4 0.1 850:33.93
syslog-ng<br>
<br>
<br>
<b>strace command output:</b><br>
<br>
strace -f -c -p `pgrep -f '/sbin/syslog-ng'`<br>
<br>
Process 10192 attached - interrupt to quit<br>
% time seconds usecs/call calls errors syscall<br>
------ ----------- ----------- --------- --------- ----------------<br>
54.37 0.073938 0 5740561 epoll_wait<br>
45.54 0.061930 0 5740562 clock_gettime<br>
0.03 0.000035 0 1884 fcntl64<br>
0.01 0.000020 0 1488 370 read<br>
0.01 0.000018 0 408 writev<br>
0.01 0.000015 0 2166 epoll_ctl<br>
0.01 0.000008 0 172 78 accept<br>
0.01 0.000007 0 797 write<br>
0.01 0.000007 0 848 182 setsockopt<br>
0.00 0.000006 0 489 gettimeofday<br>
0.00 0.000006 0 408 _llseek<br>
0.00 0.000000 0 92 close<br>
0.00 0.000000 0 190 alarm<br>
0.00 0.000000 0 15 stat64<br>
------ ----------- ----------- --------- --------- ----------------<br>
100.00 0.135990 11490080 630 total<br>
<br>
<br>
<pre class="moz-signature" cols="72">
--
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
<a class="moz-txt-link-abbreviated" href="mailto:yakup.kaya@labrisnetworks.com">yakup.kaya@labrisnetworks.com</a>
<a class="moz-txt-link-abbreviated" href="mailto:yakup.kaya@labris.eu">yakup.kaya@labris.eu</a>
<a class="moz-txt-link-abbreviated" href="http://www.labrisnetworks.com">www.labrisnetworks.com</a>
</pre>
</body>
</html>