From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffc1e,5009aef8d784ed0,start X-Google-Attributes: gidffc1e,public X-Google-Thread: 103376,5009aef8d784ed0,start X-Google-Attributes: gid103376,public From: Arne Riiber Subject: 3 mill messages/s over UDP sockets? Date: 1997/03/07 Message-ID: <331FDF2A.7EF1750E@systek.no>#1/1 X-Deja-AN: 223755975 Organization: System Teknologi AS Newsgroups: comp.programming.threads,comp.lang.ada Date: 1997-03-07T00:00:00+00:00 List-Id: Using the gnat-3.07 Ada compiler (w/pthreads1.60b4) and Linux 2.0 on a 133Mhz Pentium, two ada tasks could send/receive about 120 100-byte messages over UDP sockets in 0.04 milliseconds. This gives about 3 million messages per second. It was not possible to send/receive more than about 200 messages, even if the socket send buffer size was set to 50K with setsockopt(). Anyone that can explain the results (is it related to Pthreads or Gnat?) And better, what is needed to set up the socket buffer so the buffer size is 50K (as on non-threaded socket calls), so more messages can be sent? -Arne- -- -------------------------------------------------- Arne Riiber http://home.sn.no/~riiber System Teknologi AS http://www.systek.no --------------------------------------------------