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

netawater standin-000 at tianya.cn
Wed Apr 15 10:04:09 EDT 2009


Benjamin Pierce <bcpierce at cis.upenn.edu> writes:

> 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

Thank you for your reply, it is the same situation: I use a network
driver which is regarded as local disk by unison, I need single thread
write process to adapt that network driver.



More information about the Unison-hackers mailing list