Cytowanie Rick Jones <[EMAIL PROTECTED]>: >> I'm trying to use SIPp ti simulate about 50000 clinets. I'm using >> "UDP with one socket per IP address" mode (-t ui) and I found some >> problems. First I set file descriptors limit to 65536, but SIPp >> still was limited to 1024 connections. So I found that FD_SETSIZE >> value limits number of sockets. I made changes in sipp.hpp file: > > Hmm, I wouldn't think that FD_SETSIZE would limit the number of > sockets one can open.
SIPp compiled without my modification says: Warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE = 1024 The warning can be seen on the top of the console, above sipp's Scenario Screen. At compilation time I can read: sipp.hpp:81:1: warning: "FD_SETSIZE" redefined ... /usr/include/sys/select.h:81:1: warning: this is the location of the previous definition >> So I just commented a section that defines FD_SETSIZE value and set >> it to 65536. Next I recompiled the sipp and it works with more >> opened sockets. The same procedure was used on Fedora 6, Fedora 7 on >> i386 and Debian 4.0 on amd64. >> >> What is the FD_SETSIZE ?? > > It is used with select(), which takes in up to three sets of "fd_set" > for read, write and error where each bit in an fd_set corresponds to > a specific file (socket) descriptor. > > On some platforms, it may not be advisable to mess-around with > FD_SETSIZE - especially if linking with pre-compiled stuff which used > a smaller value. > > The select() manpage on your system(s) should have more information. > > The poll() call does not have the same restriction as select() since > it doesn't use fd_sets. thanks for explanation. Does the sipp 2.01 use select()? It uses poll(). Maybe FD_SETSIZE is obselete? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sipp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sipp-users
