[syslog-ng]losing messages using syslog-ng-1.4.7 & libol-0.2.20
matthew.copeland@honeywell.com
matthew.copeland@honeywell.com
Mon, 23 Oct 2000 22:48:06 +0000 (UTC)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---1768452832-505006337-972341286=:29132
Content-Type: TEXT/PLAIN; charset=US-ASCII
I am using syslog-ng 1.4.7 and libol 0.2.20 and am attempting to do some
tests to make sure that I can get the level of performance that I need. I
am having the worst trouble though trying to isolate whether a problem is
occuring in either syslog-ng or within the networking code of the machines
that I am using. I've managed to hack things in the network code for
some of the machines to get better performance for some of the tests, but
we have dropped down the requirements now.
I am sending along some test code that should compile on either red hat
6.2, red hat 7.0, and hopefully others. (Haven't tried) The problem I am
running into is that I lose anywhere between 30 and 800 messages. As the
message number goes up and number of clients, I lose more messages.
Some results I have gotten, with 100 threads connecting to the server, I
can send 60,000 messages in about 30 seconds without a problem (200
bytes), but when I increase the number to 300 threads, and I have it
sending for 30 seconds for a total of 36,000 messages, I start to lose
messages. Notice in the first case I was sending more messages and had it
sleeping for less time between instances, in the second case it is
sleeping longer and sending less messages per second per thread.
I have tried it with multiple different machines and types of varying
speeds, and it happens on all of them. For the latest run, I have for teh
sending machine an AMD athlon 1Ghz w 256M RAM, with an ATA 100 Hard drive
running on ATA66 running red hat 7.0. For the server, I have a PII 300Mhz
with 180M RAM, a ATA33 hard drive running without acceleration. The
server is running red hat 6.2. I have tried the numbers with the sender
and receiver switched, but I lose more messages that way.
If you look in the code at logconf.h, you can change the #defines. The
logtest.c just creates the threads. log_thread.c has the send_messages
function that simulates a syslog-ng client. If anyone can provide any
help, it would be greatly appreciated, since I have to be able to show
this working before I can get the full sign-off to use it for our the
applications we are building.
Matthew M. Copeland
Software Engineer
matthew.copeland@honeywell.com
---1768452832-505006337-972341286=:29132
Content-Type: APPLICATION/x-gzip; name="logtest.tgz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0010232248060.29132@fisb.gaa.aro.allied.com>
Content-Description:
Content-Disposition: attachment; filename="logtest.tgz"
H4sIAAu99DkAA+1aeZPauBLPv8OnUM1usjBmYhswhkwmVRzmGsDc174UZWyB
zSGDj+HY2u/+JLDBDExSr3aSbNXzrxIM3VKr3Wq1ujuZ6xMLmhb97geCYWIM
z3H4yTB8PH548tH908E7hmd5jo3Go3s6/sq+A9yPVMqFbVqSAcDPWOrfiLmz
//g5tFQDSspH+a3XYFiGicdir+0/z8Q4d/+jDIfpLMvHmXeAeWtFruH/fP9/
05A8txUIPptbk7a2S2h+VL8EzsmmLs+gdU5H0NLwX1pDL8Zbiqafk2ykYeo5
zdIW8Ixy6/FA9facLutofEb8vHRHvlBJGb3UxtDQ5DV1As+6pgATImW4gKYp
TaAZ3JPuwNIyQiDwVwBgYCG2bAFVNy2ILHCnLh+8dGIdSVGMoYYAkhbwwNTw
yDlEE0t9ZB4CNE1osopdba6jycge//kVPILbprlLwK280HJROSsi1aywsY0x
VhNxtW7NqnK5UOuhImO2tOpaiaB+hFWNvtVJrLZ6dmOWI6sav2QFVCrL3fbs
KdF/RjWx125LC2HaGgiROdOoMKW62q20Ua7Nd8SOllCWtgyj6Ww5soiXGb6W
SsJyfvu0oiujFaWWSnTL6HVsExXaSSpT56fTFpQYJteTx5xYnXbpXrNnFMoF
CkamowbF96KokNzN6B3KxvuxXZbjSzv9KWUsKlRKnE8kGSqjdvYJKsXnRI7V
nioDkdMjkibmdWMdS9qZZdOgs5FKL7EzrVqmOp7rQs4obmbtVCzXU/WutMhU
yrPE4HlhTVGs2HzKFLMxy5pu6Ua/KykT1KJ0sZsZj5Ti1KTsUZwqC70dL9dy
nGnKSCywi6ZsqpEqU0ukOk/QKK0kGpVG+badVDu6toLFLjdfb9h5pBZl8iuZ
RwlRr6PotFi305mkQgucUOhu2TE9om1hnMkNIkbOmFuUFZ2sYzS9FbmM1Wcm
m+IO2ZRMiRWVij5PSo2oISuZ50kOxjPFWnoTU2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