[syslog-ng]time() system calls slow down syslog-ng

Loubet Jean-Michel syslog-ng@lists.balabit.hu
Tue, 10 Jun 2003 19:24:16 +0200


Hi,

truss -c on syslog-ng 1.6.0rc3 indicates there are about 5 "time()" calls
for 1 received message.
I've tried to change "use_time_received" but there was so many "time()"
calls.

The problem is that this call was responsible for the high cpu load on my
host (and for my messages losing ...)
After replacing time() calls in libol and syslog-ng with a constant, my
syslog-ng accepted much more messages with lower cpu usage.

Is there any way to reduce time system calls ?


Here are my options, if you need them :
        keep_hostname(yes); 
        long_hostnames(no); 
        log_fifo_size(8192); 
        log_msg_size (2048);
        sync(1024); 
        use_time_recvd(no);
        use_dns(no);
        use_fqdn(no);
        dns_cache(no);
        stats (0);

(I also set udp recv_hiwat to 65536).



Thanks for your answers,


JM Loubet