Dear "R-help"ers, using snow on socket connections, I ran into the following error > cl <- makeSOCKcluster(hosts) Error in socketConnection(port = port, server = TRUE, blocking = TRUE : all connections are in use with "showConnections(all=T)" showing 50 open connections. As - for administrative reasons - I would prefer to use snow's SOCK capabilities (instead of MPI and the like), I wonder if there is a way to increase the number of simultaneous open connections allowed in an R session (~100 would be sufficient). Any help/hints are greatly appreciated, best regards, Marc -- =======================================================Dipl. Inform. Med. Marc Kirchner Interdisciplinary Centre for Scientific Computing (IWR) Multidimensional Image Processing INF 368 University of Heidelberg D-69120 Heidelberg Tel: ++49-6221-54 87 97 Fax: ++49-6221-54 88 50 marc.kirchner at iwr.uni-heidelberg.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : https://stat.ethz.ch/pipermail/r-help/attachments/20060825/254a76b5/attachment.bin
On Fri, 25 Aug 2006, Marc Kirchner wrote:> > As - for administrative reasons - I would prefer to use snow's > SOCK capabilities (instead of MPI and the like), I wonder if there is a > way to increase the number of simultaneous open connections allowed in > an R session (~100 would be sufficient). >You need to change #define NCONNECTIONS 50 at the top of src/main/connections.c and recompile. -thomas Thomas Lumley Assoc. Professor, Biostatistics tlumley at u.washington.edu University of Washington, Seattle
On Fri, 25 Aug 2006, Marc Kirchner wrote:> Dear "R-help"ers, > > using snow on socket connections, I ran into the following error > > > cl <- makeSOCKcluster(hosts) > Error in socketConnection(port = port, server = TRUE, > blocking = TRUE : all connections are in use > > with "showConnections(all=T)" showing 50 open connections. > > As - for administrative reasons - I would prefer to use snow's > SOCK capabilities (instead of MPI and the like), I wonder if there is a > way to increase the number of simultaneous open connections allowed in > an R session (~100 would be sufficient).If you really need them open at once (and are not just forgetting to close them), then change the constant in the file and recompile.> Any help/hints are greatly appreciated,Is this the appropriate list: not on my reading of the posting guide!> best regards, > Marc-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595