<p dir="ltr">The fix I made could have a performance impact, but not so severe. -O0 explains this though.</p>
<div class="gmail_quote">On Oct 21, 2013 1:40 AM, "Evan Rempel" <<a href="mailto:erempel@uvic.ca">erempel@uvic.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I may have spoke too soon. This is with binaries compiled with<br>
CFLAGS="-ggdb3 -O0" which is different than<br>
I used when compiling syslog-ng 3.4.1<br>
<br>
After some testing is completed in a day or two, I will recompile<br>
without those flags and I'll have an apples<br>
to apples comparison.<br>
<br>
Evan<br>
<br>
On 10/20/2013 04:37 PM, Evan Rempel wrote:<br>
> I just upgraded syslog-ng from 3.4.1 to 3.4.4 and can confirm that<br>
> with the same configuration, it<br>
> is using twice as much cpu. See the attached graph.<br>
><br>
> We also take 15 minute snapshots of our processes and for the<br>
> syslog-ng process the CPU usage is shown<br>
> below. Note that when the process ID changes from 12307 to 5156 the<br>
> CPU doubles.<br>
><br>
> Time USER PPID PPID %CPU VSZ ELAPSED TIME COMMAND<br>
> 074602 root 12307 19898 11.1 787228 21:21:12 02:23:20<br>
> /usr/local/sbin/syslog-ng<br>
> 080101 root 12307 19898 11.1 787228 21:36:11 02:25:04<br>
> /usr/local/sbin/syslog-ng<br>
> 081601 root 12307 19898 11.2 787228 21:51:11 02:26:58<br>
> /usr/local/sbin/syslog-ng<br>
> 083101 root 12307 19898 11.2 787228 22:06:11 02:28:44<br>
> /usr/local/sbin/syslog-ng<br>
> 084601 root 12307 19898 11.2 787228 22:21:11 02:30:32<br>
> /usr/local/sbin/syslog-ng<br>
> 090101 root 12307 19898 11.2 776984 22:36:11 02:32:25<br>
> /usr/local/sbin/syslog-ng<br>
> 091601 root 12307 19898 11.2 787228 22:51:11 02:34:35<br>
> /usr/local/sbin/syslog-ng<br>
> 093102 root 5156 5155 23.3 705312 00:06:20 00:01:28<br>
> /usr/local/sbin/syslog-ng<br>
> 094601 root 5156 5155 24.1 705772 00:21:19 00:05:08<br>
> /usr/local/sbin/syslog-ng<br>
> 100101 root 5156 5155 24.0 705772 00:36:19 00:08:44<br>
> /usr/local/sbin/syslog-ng<br>
> 101601 root 5156 5155 24.3 705772 00:51:19 00:12:29<br>
> /usr/local/sbin/syslog-ng<br>
> 103101 root 5156 5155 23.8 705772 01:06:19 00:15:50<br>
> /usr/local/sbin/syslog-ng<br>
> 104601 root 5156 5155 23.4 705772 01:21:19 00:19:05<br>
> /usr/local/sbin/syslog-ng<br>
> 110101 root 5156 5155 23.2 705772 01:36:19 00:22:23<br>
> /usr/local/sbin/syslog-ng<br>
> 111601 root 5156 5155 23.2 705772 01:51:19 00:25:56<br>
> /usr/local/sbin/syslog-ng<br>
> 113101 root 5156 5155 23.3 705772 02:06:19 00:29:30<br>
> /usr/local/sbin/syslog-ng<br>
> 114601 root 5156 5155 23.4 705772 02:21:19 00:33:09<br>
> /usr/local/sbin/syslog-ng<br>
> 120101 root 5156 5155 23.4 705772 02:36:19 00:36:38<br>
> /usr/local/sbin/syslog-ng<br>
> 121601 root 5156 5155 23.5 705772 02:51:19 00:40:17<br>
> /usr/local/sbin/syslog-ng<br>
> 123101 root 5156 5155 23.5 705772 03:06:19 00:43:49<br>
> /usr/local/sbin/syslog-ng<br>
> 124601 root 5156 5155 23.4 705772 03:21:19 00:47:14<br>
> /usr/local/sbin/syslog-ng<br>
> 130101 root 5156 5155 23.5 705772 03:36:19 00:51:00<br>
> /usr/local/sbin/syslog-ng<br>
> 131601 root 5156 5155 23.7 705772 03:51:19 00:54:50<br>
> /usr/local/sbin/syslog-ng<br>
> 133101 root 5156 5155 23.9 705772 04:06:19 00:59:04<br>
> /usr/local/sbin/syslog-ng<br>
> 134601 root 5156 5155 23.8 705772 04:21:19 01:02:25<br>
> /usr/local/sbin/syslog-ng<br>
> 140102 root 5156 5155 23.8 705772 04:36:20 01:06:00<br>
> /usr/local/sbin/syslog-ng<br>
> 141601 root 5156 5155 23.8 705772 04:51:19 01:09:30<br>
> /usr/local/sbin/syslog-ng<br>
> 143101 root 5156 5155 23.9 705772 05:06:19 01:13:13<br>
> /usr/local/sbin/syslog-ng<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>