Hi, Here is the response we received from the developer who contributed the STAF Perl service support:
======================================================================== there is no problem in creating 100 threads. however, when planning such service please consider the following issues: 1. Thread creation is costly in Perl. (so starting them all in service startup may be a good idea) 2. Perl is not good at moving data between threads (so please avoid, aside from the initial request) 3. in the end of the request, there is a STAF semaphore that the tread need to catch. (and I don't know how does it preform under load) The basic advices are: 1. reuse threads, as it is shown in the example 2. if your threads are computation-heavy, the number of the threads should be equal to the number of cpu cores And as always, benchmark. ======================================================================== We'll update the STAF Service Developer's Guide with this information. Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC From: Lu Yu <l...@vmware.com> To: "staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net> Date: 07/09/2010 02:42 PM Subject: [staf-users] threads uplimit of perl staf service Hi Does anyone know what is the upper limit of threads that perl staf service can handle? I saw in the sample code of STAF development guide, max threads number is 5. Can I raise the limit to 100? Can perl staf service handle more concurrent requests. Thanks! Lu ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users