Please login or register. December 18, 2017, 12:49:31 PM

Author Topic: ATTCP - AIX Test TCP program  (Read 5233 times)

0 Members and 1 Guest are viewing this topic.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1056
  • Karma: +0/-0
Re: ATTCP - AIX Test TCP program
« Reply #10 on: April 18, 2017, 02:55:31 PM »
If you ever used attcp before - you may have some old port numbers in your /etc/services.
If you do, the easiest resolution will be to uninstall attcp, and then remove all the ttcp lines you find in /etc/services.

FYI: the old port numbers were 55000, 55001 and 55002 (iirc). ttcp (from 1980's) used port # 5500, and I just added a digit - originally, as port 5500 is now officially assigned to something else by IANA.

Some 'debug' info:

Code: [Select]
michael@x071.home.local:[/home/michael]grep ttcp /etc/services /etc/inetd.con>
/etc/services:ttcpr     32765/tcp # ttcp_reader or sink
/etc/services:ttcpr     32765/udp # ttcp_reader or sink
/etc/services:ttcps     32766/tcp # ttcp_sender faucet
/etc/services:ttcps     32766/udp # ttcp_sender faucet
/etc/services:ttcp      32767/tcp # ttcp port holder
/etc/services:ttcp      32767/udp # ttcp port holder
/etc/inetd.conf:ttcpr     stream  tcp    nowait  nobody    /opt/bin/ttcpr     ttcpr
/etc/inetd.conf:ttcps     stream  tcp    nowait  nobody    /opt/bin/ttcps     ttcps
/opt/bin/speedto:/opt/bin/attcp -p 32765 -f M -x -i 10 -h $*
michael@x071.home.local:[/home/michael]lssrc -s inetd -l | grep ttcp
michael@x071.home.local:[/home/michael]lssrc -s inetd -l
0513-019 System Resource Controller requires that you be running as
root or be part of the group system for local requests.
michael@x071.home.local:[/home/michael]su
root's Password:
michael@x071.home.local:[/home/michael]lssrc -s inetd -l | grep ttcp
 ttcps        /opt/bin/ttcps           ttcps                    active
 ttcpr        /opt/bin/ttcpr           ttcpr                    active
michael@x071.home.local:[/home/michael]

p.s. I am debugging version 0.6.6 which will have 'multi-threaded' connections - to help saturate the line.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1056
  • Karma: +0/-0
Re: ATTCP - AIX Test TCP program
« Reply #11 on: April 18, 2017, 07:27:14 PM »
The version 0.6.6 is almost ready: e.g., 16 threads:

Code: [Select]
michael@x071.home.local:[/home/michael]netstat -t | grep ttcp
Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0  11973  x071.39629             x064.ttcpr             ESTABLISHED
tcp4       0  10286  x071.39630             x064.ttcpr             ESTABLISHED
tcp4       0  17518  x071.39631             x064.ttcpr             ESTABLISHED
tcp4       0      0  x071.39632             x064.ttcpr             ESTABLISHED
tcp4       0  14230  x071.39633             x064.ttcpr             ESTABLISHED
tcp4       0  15898  x071.39634             x064.ttcpr             ESTABLISHED
tcp4       0      0  x071.39635             x064.ttcpr             ESTABLISHED
tcp4       0  46073  x071.39636             x064.ttcpr             ESTABLISHED
tcp4       0  18009  x071.39637             x064.ttcpr             ESTABLISHED
tcp4       0  44447  x071.39638             x064.ttcpr             ESTABLISHED
tcp4       0   4769  x071.39639             x064.ttcpr             ESTABLISHED
tcp4       0   4261  x071.39640             x064.ttcpr             ESTABLISHED
tcp4       0  65535  x071.39641             x064.ttcpr             ESTABLISHED
tcp4       0  61807  x071.39642             x064.ttcpr             ESTABLISHED
tcp4       0      0  x071.39643             x064.ttcpr             ESTABLISHED
tcp4       0   2760  x071.39644             x064.ttcpr             ESTABLISHED


p.s. I cheated, a bit, to get the header columns inserted

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1056
  • Karma: +0/-0
Re: ATTCP - AIX Test TCP program
« Reply #12 on: April 19, 2017, 09:31:51 AM »
Version 0.6.6 is ready for some test drives.

Note the rather "simple" calculation of busy% - just like time, the physc total is of all processors, while busy% is (physc / real_time) * 100%

Code: [Select]
root@x065:[/data/prj/aixtools/attcp/attcp-0.6.6]time speedfrom x072 -t4 -v
ATTCP Summary
  MB/Sec      MByte  seconds    physc  %busy      Calls   B/call ms/call  call/sec
========   ========  =======  =======  =====  =========   ====== =======  ========
  817.85       8178    10.00    12.61  126.1    1056433     8117    0.01  105641.7

real    0m10.04s
user    0m2.88s
sys     0m9.73s
root@x065:[/data/prj/aixtools/attcp/attcp-0.6.6]

Test Run on something faster than POWER6 - looks nicer!

Code: [Select]
# /opt/bin/speedfrom localhost -t1 -v -b 64k
ATTCP Summary
  MB/Sec      MByte  seconds    physc  %busy      Calls   B/call ms/call  call/sec
========   ========  =======  =======  =====  =========   ====== =======  ========
 6989.38       8192     1.17     0.65   55.7     131222    65461    0.01  111958.1

{D-ca-aix1:root}/ # /opt/bin/speedfrom localhost -t4 -v -b 64k
ATTCP Summary
  MB/Sec      MByte  seconds    physc  %busy      Calls   B/call ms/call  call/sec
========   ========  =======  =======  =====  =========   ====== =======  ========
14673.03      32768     2.23     2.14   95.7     536184    64082    0.00  240093.9

« Last Edit: April 19, 2017, 12:56:57 PM by Michael »

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1056
  • Karma: +0/-0
Re: ATTCP - AIX Test TCP program
« Reply #13 on: April 19, 2017, 02:20:40 PM »
hi,the same problem as bellow:

# /opt/bin/speedto localhost
err:attcp-t: connect: Connection refused
errno=79
# lslpp -l |grep attcp
  aixtools.attcp.man.en_US   0.6.5.0  COMMITTED  aixtools attcp man pages
  aixtools.attcp.rte         0.6.5.0  COMMITTED  aixtools attcp 14-Apr-2017
  aixtools.attcp.share       0.6.5.0  COMMITTED  aixtools attcp universal files

My previous answer was not correct - the packaging for version 0.6.5 was missing the scripts to insert the lines needed in /etc/services and /etc/inetd.conf.

attcp-0.6.6 with MD5 1E92D34C38F52442023EF4FCF8FFE72E has the scripts (note: I had a previous package with a different MD5 value that was also missing the scripts).