MobiLink Synchronization Reference
MobiLink Synchronization Server Options
MobiLink synchronization server
dbmlsrv9 options
Sets the number of worker threads.
dbmlsrv9 -c "connection-string" -w count ...
Each worker thread accepts synchronization requests one at a time. Each worker thread is associated with a network protocol. If you have more than one protocol defined, the worker threads are divided evenly among the protocols.
Each worker thread uses one connection to the consolidated database. The MobiLink synchronization server opens one additional connection for administrative purposes. Hence, the minimum number of connections from the MobiLink synchronization server to the consolidated database is count + 1.
The number of worker threads has a strong influence on MobiLink synchronization throughput, and you need to run tests to determine the optimum number for your particular synchronization setup. The number of worker threads determines how many synchronizations can be active simultaneously; the rest will be queued waiting for worker threads to become available. Thus adding worker threads should increase throughput, but it will also increase the possibility of contention between the active synchronizations. At some point adding more worker threads will decrease throughput, because the increased contention outweighs the benefit of overlapping synchronizations.
For more information, see the MobiLink Performance whitepaper at http://my.sybase.com/detail?id=1009664, and MobiLink Performance.
The value set for this option is also the default setting for the -
wu option, which can be used to limit the number of threads that can simultaneously upload. This is useful if the optimum number of worker threads for downloading is larger than the optimum number for uploading, as is typically the case with remote databases on slow computers or with slow connections to the MobiLink server. Tests have shown that for slow synchronization clients (such as Palm devices or computers connected by dialup), the best throughput is achieved with a large number of worker threads (via -
w) with a small number allowed to apply uploads simultaneously (via -
wu). In general, the optimum number for -
wu depends on the consolidated database, and is relatively independent of the processing or network speeds for the remote databases. Therefore, when you increase the number of threads with -
w, you may want to use -
wu to restrict the number that can upload simultaneously. For more information, see -wu option.
The default number of worker threads is 5.