[Unison-hackers] How to enable multi-threading when both roots are local

Benjamin Pierce bcpierce at cis.upenn.edu
Tue Apr 14 10:44:21 EDT 2009


On a single host, Unison should use all the available disk bandwidth  
just doing a single copy at a time, so there is no reason to enable  
multi-threading there.  (Was this your question?)

Best,

     - Benjamin


On Apr 14, 2009, at 10:30 AM, netawater wrote:

> I have study the source code of unison-2.31.4:
>
> transport.ml:23:let maxthreads =
> transport.ml:24:  Prefs.createInt "maxthreads" 20
> transport.ml:33:let actionReg = Lwt_util.make_region (Prefs.read  
> maxthreads)
> transport.ml:74:  Lwt_util.resize_region actionReg (Prefs.read  
> maxthreads);
> transport.ml:75:  Lwt_util.resize_region Files.copyReg (Prefs.read  
> maxthreads);
>
> It seems maxthreads always being enable, but unison run in
> mult-threads even I set maxthreads as 1
>
> Thank you very much!
>
> _______________________________________________
> Unison-hackers mailing list
> Unison-hackers at lists.seas.upenn.edu
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers



More information about the Unison-hackers mailing list