[Info-vax] Accuweather new contract
Craig A. Berry
craigberry at nospam.mac.com
Tue Mar 31 19:53:12 EDT 2015
On 3/31/15 6:35 PM, johnson.eric at gmail.com wrote:
> On Monday, March 30, 2015 at 8:41:45 PM UTC-4, johnso... at gmail.com wrote:
>
>> I don't have the original code, but I can whip up another one pretty soon.
>> It's a pretty short program so I'll post it here and others can run on their
>> own gear if they like.
>
> I only have access to Linux right now so no guarantees if this compiles on VMS.
>
> This will create a UDP socket, and blast 100,000 packets to 1.1.1.1.1 at port 12345.
> The packets are very small. Clearly there is room for improvement.
>
> Does it compile on VMS? Does it run? How long does it take?
It needs in.h to compile:
$ gdiff -pu udp_test.c;-0 udp_test.c
--- udp_test.c;-0 2015-03-31 18:41:35 -0500
+++ udp_test.c 2015-03-31 18:42:42 -0500
@@ -1,3 +1,4 @@
+#include <in.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
On this ancient box:
$ tcpip show vers
HP TCP/IP Services for OpenVMS Industry Standard 64 Version V5.7 - ECO 4
on an HP rx2600 (1.50GHz/6.0MB) running OpenVMS V8.4
a batch job that does nothing but run that test on an otherwise quiet
system ends with:
Accounting information:
Buffered I/O count: 1000174 Peak working set size:
5472
Direct I/O count: 80 Peak virtual size:
177744
Page faults: 581 Mounted volumes:
0
Charged CPU time: 0 00:00:09.93 Elapsed time: 0
00:00:19.48
While it was running, my open ssh session would not respond at all, so
it looks like it mighty be a handy way to block all other network
activity :-(.
More information about the Info-vax
mailing list