My name is Chris, Hi! I've got rsync being called from a perl script that is called by cron (or for that matter, by hand) and when I 'rsync' a locally mounted samba filesystem (eg. to /mnt/smbfs), it successfully syncs the smbfs to the destination directory, but without reason hangs... and take all my cpu power... When i look at all the processes running, the rsync pid is defuct... and it's actually saying that the parent perl script that made the call is gobbling up all my cpu resources.... This ONLY happens (so far anyways) with the samba mounts... Any suggestions?? Thanks a bundle! -Chris
Sorry, I should have noted my system to begin with. I'm running Red Hat 7.2, Perl 5.8.0 and rsync 2.4.6 The smbfs is on a windows NT (2000) server. -Chris On Tuesday 03 December 2002 04:41 pm, you wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have had the same issue. Are you running FreeBSD? Strange. I've had > a box up for 200+ days here at work (freebsd) rsyncing every 15 mins and > then out ofthe blue it's hanging on perl script and eating all process + > swap... > > Matt > > On Tuesday 03 December 2002 04:33 pm, Dr. Poo wrote: > > My name is Chris, Hi! > > > > I've got rsync being called from a perl script that is called by cron (or > > for that matter, by hand) and when I 'rsync' a locally mounted samba > > filesystem (eg. to /mnt/smbfs), it successfully syncs the smbfs to the > > destination directory, but without reason hangs... and take all my cpu > > power... > > > > When i look at all the processes running, the rsync pid is defuct... and > > it's actually saying that the parent perl script that made the call is > > gobbling up all my cpu resources.... > > > > This ONLY happens (so far anyways) with the samba mounts... Any > > suggestions?? > > > > Thanks a bundle! > > -Chris > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (FreeBSD) > > iD8DBQE97TMRXG7+MmNwciURAgoVAKCblQWXHgfOWNXhqZO/uzUZqAEOjgCfYv9Q > z8BjMdRpQW3mHVOKrHCNjTY> =mhsU > -----END PGP SIGNATURE-----
As well though, i might add that perl is hogging 98-99% of my cpu... and all the while rsync is <defuct> -Chris
On Tue, Dec 03, 2002 at 04:33:38PM -0600, Dr. Poo wrote:> My name is Chris, Hi! > > I've got rsync being called from a perl script that is called by cron (or for > that matter, by hand) and when I 'rsync' a locally mounted samba filesystem > (eg. to /mnt/smbfs), it successfully syncs the smbfs to the destination > directory, but without reason hangs... and take all my cpu power... > > When i look at all the processes running, the rsync pid is defuct... and it's > actually saying that the parent perl script that made the call is gobbling up > all my cpu resources.... > > This ONLY happens (so far anyways) with the samba mounts... Any suggestions?? > > Thanks a bundle! > -ChrisThe fact that the rsync process is defunct tells me that it isn't rsync. Defunct (also known as the zombie state) means that the process has exited but the parent (your perl script) has not reaped the status with wait(). It sounds like your perl script is reading from the rsync output and failing to check for EOF. If you described or better sent your perl script someone might be able to help. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt