Any change of rsync using threads instead of fork?

Jamie Lokier jamie at shareable.org
Fri Dec 9 19:32:02 GMT 2005


Wayne Davison wrote:
> On Thu, Nov 24, 2005 at 03:22:23AM +0000, Jamie Lokier wrote:
> > Is there any likelihood of changing the rsync code to use threads
> > instead of processes?
> 
> I just thought about this a bit more, and it didn't seem as large a task
> as I had originally assumed it would be.  I also remembered that I'm
> going to need something like this (*) to effect my desired changes of
> decreasing memory use and improving speed, so I've coded up a first-cut
> version:
> 
>     http://opencoder.net/threaded-receiver.diff
> 
> This applies to the very latest CVS source (which is also available in a
> just-updated "nightly" tar file).  The code does not attempt to discern
> what kind of threading is available, so that will probably need to be
> improved for systems that don't use pthreads.h.  If anyone tries this
> out, please let me know how it goes and any problems you run into.

Thank you!  I don't know if I'll try it now, as I'm working on an
alternate solution to our project which I need to be confident will
work, but if I do I'll let you know how it went.

-- Jamie


More information about the rsync mailing list