TCP/IP inetd performance problem

We’re using rcp to copy files from Linux to QNX systems with TCP/IP 4.25C.
If we’re copying a lot of small files, the data rate is decreasing
dramatically.

The command
rcp -r DIR1 target_machine:DIR2
needs 20 seconds, when copying from the QNX machine to the Linux machine,
but 120 seconds, when copying from the Linux machine to the QNX machine.
Both PCs have the same hardware platform.
I have tested this with different QNX and Linux machines with the same
result.
I tried to figure out any tuning parameters for the QNX inetd, rsh or rcp,
but I did not
find any.

Any suggestions?

TIA
HDSander

| STN ATLAS Marine Electronics GmbH
| Dipl.-Ing. Heinz-Dieter Sander
| Software Navigation Systems, Dept. MST 21
| Kurfuerstenallee 130
| D-28211 Bremen, Germany
|
| Phone : +49 421 1784 3511
| Fax : +49 421 1784 2026
| eMail : Heinz-Dieter.Sander@sam-electronics.de

Heinz-Dieter Sander <Heinz-Dieter.Sander@sam-electronics.de> wrote:
HDS > We’re using rcp to copy files from Linux to QNX systems with TCP/IP 4.25C.
HDS > If we’re copying a lot of small files, the data rate is decreasing
HDS > dramatically.

HDS > The command
HDS > rcp -r DIR1 target_machine:DIR2
HDS > needs 20 seconds, when copying from the QNX machine to the Linux machine,
HDS > but 120 seconds, when copying from the Linux machine to the QNX machine.
HDS > Both PCs have the same hardware platform.
HDS > I have tested this with different QNX and Linux machines with the same
HDS > result.
HDS > I tried to figure out any tuning parameters for the QNX inetd, rsh or rcp,
HDS > but I did not
HDS > find any.

HDS > Any suggestions?

HDS > TIA
HDS > HDSander
HDS > —
HDS > | STN ATLAS Marine Electronics GmbH
HDS > | Dipl.-Ing. Heinz-Dieter Sander
HDS > | Software Navigation Systems, Dept. MST 21
HDS > | Kurfuerstenallee 130
HDS > | D-28211 Bremen, Germany
HDS > |
HDS > | Phone : +49 421 1784 3511
HDS > | Fax : +49 421 1784 2026
HDS > | eMail : Heinz-Dieter.Sander@sam-electronics.de

This is just a guess.

When you say “a lot of small files”, the open for create will
definitly slow down as te directory gets bigger. It’s not a TCP/IP
issue. It’s a file system issue.

Try just writing a C program that creates 500 small files and writes
one line to them. Display a dot ‘.’ on the screen after each file.
You willl see your dots slow down.

\

Bill Caroselli – Q-TPS Consulting
1-(708) 308-4956 <== Note: New Number
qtps@earthlink.net

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:bkn4p6$8hb$2@inn.qnx.com

Heinz-Dieter Sander <> Heinz-Dieter.Sander@sam-electronics.de> > wrote:
HDS > We’re using rcp to copy files from Linux to QNX systems with TCP/IP
4.25C.
HDS > If we’re copying a lot of small files, the data rate is decreasing
HDS > dramatically.

HDS > The command
HDS > rcp -r DIR1 target_machine:DIR2
HDS > needs 20 seconds, when copying from the QNX machine to the Linux
machine,
HDS > but 120 seconds, when copying from the Linux machine to the QNX
machine.
HDS > Both PCs have the same hardware platform.
HDS > I have tested this with different QNX and Linux machines with the
same
HDS > result.
HDS > I tried to figure out any tuning parameters for the QNX inetd, rsh
or rcp,
HDS > but I did not
HDS > find any.

HDS > Any suggestions?

HDS > TIA
HDS > HDSander
HDS > —
HDS > | STN ATLAS Marine Electronics GmbH
HDS > | Dipl.-Ing. Heinz-Dieter Sander
HDS > | Software Navigation Systems, Dept. MST 21
HDS > | Kurfuerstenallee 130
HDS > | D-28211 Bremen, Germany
HDS > |
HDS > | Phone : +49 421 1784 3511
HDS > | Fax : +49 421 1784 2026
HDS > | eMail : > Heinz-Dieter.Sander@sam-electronics.de

This is just a guess.

When you say “a lot of small files”, the open for create will
definitly slow down as te directory gets bigger. It’s not a TCP/IP
issue. It’s a file system issue.

Try just writing a C program that creates 500 small files and writes
one line to them. Display a dot ‘.’ on the screen after each file.
You willl see your dots slow down.

\

Bill Caroselli – Q-TPS Consulting
1-(708) 308-4956 <== Note: New Number
qtps@earthlink.net

This is not the problem, I can copy those files over fleet network within 20
secs.
Also the command
tar c DIR1 | rsh target_machine tar x
works rapidly fast (6 secs).

Unfortunately does our Linux based product rsh and rcp to update the file
databases
on the QNX4 machines and we need hours for a some-minutes-job.

HDSander