[syslog-ng] [Bug 142] --worker-threads=0 support

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Sat Nov 12 21:00:21 CET 2011


https://bugzilla.balabit.com/show_bug.cgi?id=142





--- Comment #9 from Arkadiusz Miśkiewicz <arekm at maven.pl>  2011-11-12 21:00:19 ---
There seem to be two cases:
1) when /mnt/test is unavailable from beginning
2) when /mnt/test is gone some time after syslog-ng was started

1)
hangs at create_containing_directory 

2)

seems to be hanging at close() of /mnt/test/syslog descriptor. Is that done from
main thread? Note that it didn't hangt immediately. For some time after blocking
/mnt/test logging to local disk was still working.

[root at farm ~]# tail -f WYNIK
3556  20:49:11.591857 madvise(0xb43fe000, 8364032, MADV_DONTNEED <unfinished ...>
3210  20:49:11.591866 read(6,  <unfinished ...>
3556  20:49:11.591873 <... madvise resumed> ) = 0 <0.000010>
3210  20:49:11.591881 <... read resumed> "\1\0\0\0\0\0\0\0", 8) = 8 <0.000009>
3556  20:49:11.591892 _exit(0)          = ?
3210  20:49:11.591913 clock_gettime(CLOCK_MONOTONIC_RAW, {657, 626272341}) = 0 <0.000010>
3210  20:49:11.591944 epoll_wait(3, {}, 12, 14260) = 0 <14.261360>
3210  20:49:25.853354 clock_gettime(CLOCK_MONOTONIC_RAW, {671, 888411310}) = 0 <0.000011>
3210  20:49:25.853418 gettimeofday({1321127365, 853433}, NULL) = 0 <0.000011>
3210  20:49:25.853474 close(14^C
[root at farm ~]# grep "= 14" WYNIK
3210  20:43:25.845335 open("/etc/resolv.conf", O_RDONLY) = 14 <0.000007>
3210  20:43:25.846378 open("/etc/resolv.conf", O_RDONLY) = 14 <0.000008>
3210  20:43:25.846645 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 14 <0.000011>
3210  20:43:25.846747 socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 14 <0.000006>
3210  20:43:25.846842 open("/etc/host.conf", O_RDONLY) = 14 <0.000007>
3210  20:43:25.847043 open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 14 <0.000007>
3210  20:43:25.877494 open("/mnt/test/syslog", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_LARGEFILE, 0640) = 14 <0.027377>


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list