[Bug 28] New: syslog-ng 2.0.9 is cpu bound after bootup on FreeBSD 7. 1-RELEASE
https://bugzilla.balabit.com/show_bug.cgi?id=28 Summary: syslog-ng 2.0.9 is cpu bound after bootup on FreeBSD 7.1-RELEASE Product: syslog-ng Version: 2.0.x Platform: PC OS/Version: Other Status: NEW Severity: normal Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: syslog-ng@ee.lbl.gov Type of the Report: bug Estimated Hours: 0.0 Created an attachment (id=6) --> (https://bugzilla.balabit.com/attachment.cgi?id=6) syslogd lines from /etc.conf I'm using the FreeBSD syslog-ng2 package (2.0.9_2) under 7.1-RELEASE (see rc.conf.txt attachment). I find that syslog-ng is cpu bound following a reboot. This problem occurs on both i386 and amd64 installs. Either stopping and starting ("/etc/rc.d/syslogd restart") or reloading ("kill -HUP `cat /var/run/syslog.pid`") results in normal operation. I used ktrace and it poll() is called followed by four calls to gettimeofday() (see ktrace.txt attachment). gcore and gdb show the loop to be inside glib (see gdb.txt attachment). lsof shows the file descriptor that /dev/console should be on has been revoked (see lsof.txt attachment). I believe something happens early during the bootup process that causes /dev/console to be reconfigured. I think that devd is running when syslog-ng starts up. Forcing the syslogd started to happen after syscons doesn't help. Note: In order to get syslog-ng to work with /etc/rc.d/syslogd the startup script must be tweaked (see syslogd.patch.txt attachment). My syslog-ng.conf is attached (syslog-ng.conf.txt) -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=28 --- Comment #1 from Craig Leres <syslog-ng@ee.lbl.gov> 2009-01-31 21:22:36 --- Created an attachment (id=7) --> (https://bugzilla.balabit.com/attachment.cgi?id=7) ktrace output -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=28 --- Comment #2 from Craig Leres <syslog-ng@ee.lbl.gov> 2009-01-31 21:23:03 --- Created an attachment (id=8) --> (https://bugzilla.balabit.com/attachment.cgi?id=8) gdb stack trace -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=28 --- Comment #3 from Craig Leres <syslog-ng@ee.lbl.gov> 2009-01-31 21:23:30 --- Created an attachment (id=9) --> (https://bugzilla.balabit.com/attachment.cgi?id=9) lsof output -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=28 --- Comment #4 from Craig Leres <syslog-ng@ee.lbl.gov> 2009-01-31 21:23:50 --- Created an attachment (id=10) --> (https://bugzilla.balabit.com/attachment.cgi?id=10) /etc/rc.d/syslogd patch -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=28 --- Comment #5 from Craig Leres <syslog-ng@ee.lbl.gov> 2009-01-31 21:24:13 --- Created an attachment (id=11) --> (https://bugzilla.balabit.com/attachment.cgi?id=11) syslog-ng.conf config -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=28 --- Comment #6 from Balazs Scheidler <bazsi@balabit.hu> 2009-02-03 19:29:15 --- hmm.. can you add some timing information in ktrace? I don't know ktrace myself, strace on Linux has "-ttT" options that results in absolute timestamps/time spent information to be added to the trace. also it would be useful to see why poll() wakes up. can ktrace give details on the syscall arguments? that'd also help a lot. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=28 Balazs Scheidler <bazsi@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO --- Comment #7 from Balazs Scheidler <bazsi@balabit.hu> 2009-04-30 10:04:38 --- looking at the files again, I cannot guess what's the reason for the spinning. As I don't have freebsd boxes myself I'd definitely need this information to go forward. setting to NEEDINFO. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com