Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2001 18:08:32 +0800
From:      Christopher Hall <hsw@acm.org>
To:        ports@FreeBSD.ORG
Subject:   Problem with rsync
Message-ID:  <200103261008.f2QA8X474965@w40.tucheng.generalresources.com>

next in thread | raw e-mail | index | archive | help

I am trying to use rsync on the latest 4.3 RC, but it is locking up
every few files.

A. rsync local remote

using ps -axlw

on the source machine:
    0 73722 73713   0   2  0  5768 5332 select S+    p1    0:09.04
         rsync --recursive --links --hard-links --perms --owner --group -
    0 73723 73722   0   2  0  2172 1344 sbwait I+    p1    0:01.08
         ssh -l toor w41 rsync --server -vlHogDtprz . /home

on the destination machine:
    0  4018  4017   0  10  0   620  408 wait   Is    ??    0:00.03
         sh -c rsync --server -vlHogDtprz . /home
    0  4019  4018   0   2  0  7788 7380 select I     ??    0:12.50
         rsync --server -vlHogDtprz . /home
    0  4020  4019   0   2  0  7880 7464 select S     ??    0:03.04
         rsync --server -vlHogDtprz . /home

Using truss, the last few lines before the lock up are:

write(1,0x8074000,49)                            = 49 (0x31)
break(0x8535000)                                 = 0 (0x0)
read(0x3,0x8517000,0x1d99e)                      = 121246 (0x1d99e)
write(1,0x8074000,12)                            = 12 (0xc)
write(1,0x8074000,12)                            = 12 (0xc)
write(1,0x8074000,12)                            = 12 (0xc)
select(0x5,0x0,0xbfbff0e4,0x0,0xbfbff05c)        = 1 (0x1)
write(4,0x8502000,16381)                         = 8176 (0x1ff0)
select(0x5,0x0,0xbfbff0e4,0x0,0xbfbff05c)        = 0 (0x0)
select(0x5,0x0,0xbfbff0e4,0x0,0xbfbff05c)        = 0 (0x0)

The last select line is repeated after a time delay, and it looks to me like
the write above it did not output enough bytes.

I tried again using rsh as the transport, there is no lock up, just a
message:
             unexpected tag -7

The --blocking-io switch did not make any difference.


B. rsync local local

For a comparison I tried a local copy, the lock up occurred after the
last file was transferred.  Both machines were the same.

The last file was transferred, since a second rsync run did not
transfer any more files.


C. rsync remote local

  Transferred 40,000 approx 400M successfully


D. Has anyone else seen this kind of problem or can suggest how I might
narrow down where the faults lie.


---
Christopher Hall <hsw@acm.org>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103261008.f2QA8X474965>