Logging to pipe

Marlon de Boer marlon at hyves.nl
Tue Jun 3 11:34:09 MSD 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joe Van Dyk wrote:
| Hi,
|
| I'd like to use syslog-ng for centralized logging.  I looked through
| the archive and found that the reason that logging to a device or pipe
| not being supported is because of speed concerns (too slow).
|
| How slow is it?  If I create a pipe with mkfifo and then write my
| nginx logs to it, is performance going to be terrible?
|
| Joe
|
We used the named pipes for a while in our setup. I saw syslog using up 
30% cpu time on our quadcore 1950 dells (2.6 Ghz intel) when pushing 
them to max load.

Later I wrote a patch which you can find it here 
http://article.gmane.org/gmane.comp.web.nginx.english/5296. This patch 
disables the use of named pipes, but performance with syslog is just as 
bad. The bottleneck isn't nginx offcourse but syslog.

Regards
Marlon de Boer
System Administrator hyves.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkhE8+QACgkQQ6KLqYkbN3cxpACfYhtiH2/Cp+kdPDNYUtdlB3Jp
9+UAnjva6MoD8T+LRt/mHXB/tcdbA48L
=nk9R
-----END PGP SIGNATURE-----






More information about the nginx mailing list