🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1545

Slow UDP loop time

#1545
From: Jim Deas jim deas jadsystems.
Date: Thu, 28 Dec 2006 04:34
32 lines
2218 bytes
Hi all,

I am using the basic TIdUDPClient and TIdUDPServer (reader on same thread as
listner) to communicate with 100+ slow embedded devices. I have been
monitoring the cpu usage and loop times for the messages to move between the
embedded devices and the cpu and found a problem I can't explain.

Using Packetyzer to monitor my message streams I was receiving good loop
response between the cpu and network devices. At my maximum speed the CPU
was under 4% load and I had no delays in sending messages. After completing
this work I removed Packetyzer and got a shock! Now my cpu useage is over
30% and I am noticing a large decrease in message response!

*Using Ethereal*

Each message is a single packet and a simple 64 byte ack is return from the
embedded device. In all cases this has a loop time of 6ms If Packetyzer is
running I can send the another message every 8ms. If I unload Packetyzer I
can only send every 40ms!



Does anyone know why the 5x speed penalty and high cpu usage? It is
repeatable across several systems. Ethereal does not seem to make a
difference when running even though uses the same ties as Packetyzer on its
lower levels. Packetyzer does not even have to be attached to the same
ethernet port to make a hugh difference in loop response. Is there a basic
socket or blocking issue in win2000 that could cause this?

Thanks,

J Deas
Technical Details
Message-ID: <45934974$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f92f118a2d9467df,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jim Deas" <jim<dot>deas<at>jadsystems.<com>>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Slow UDP loop time
Date: Wed, 27 Dec 2006 20:34:20 -0800
Lines: 34
Organization: JAD Systems
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 76.169.187.28
Message-ID: <45934974$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1167280500 76.169.187.28 (27 Dec 2006 20:35:00 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail