[Helix-server-dev] helix server error on Solaris 10 Sparc
Frank Liu gfrankliu at gmail.comhi atin, here is my current setup: $ ulimit -n -H 65536 $ ulimit -n 256 so my hard limit is 65536 and current limit in shell is 256. are you saying 256*67% (poll array created by helix) exceeds the OPEN_MAX and causes those errors? shall I set it to a smaller number? My /usr/include/limits.h seems to define OPEN_MAX as 256, so 67% should never exceed. I am confused. -frank On 5/1/06, atin <atin at real.com> wrote: > hi frank, > the problem is that the helix server tests for the total number of open > file descriptors allowed and then uses 67% of that max value to create the > poll_fd array. > > according to the solaris 10 source code comments the EINVAL error could b > generated because the size of /dev/poll's dp_fds array exceeds OPEN_MAX. > > so u could set the hard and soft limits in the /etc/system file to some large > value (i am using 100000 just as an example). > > * hard limit of max open fds > set rlim_fd_max=100000 > > * soft limit of max open fds > set rlim_fd_cur=100000 > > and use limit or ulimit to set the max open fds in ur shell (to less than the > hard limit): > > $ ulimit -n 65536 > > -atin > > On Sat, 29 Apr 2006, Frank Liu wrote: > > > Date: Sat, 29 Apr 2006 08:32:21 -0700 > > From: Frank Liu <gfrankliu at gmail.com> > > To: helix-server-dev at helixcommunity.org > > Subject: [Helix-server-dev] helix server error on Solaris 10 Sparc > > > > Hi there, > > > > I tried the helix server on Solaris 10 Sparc and got the following > > errors on the screen when starting: > > > > /dev/poll ioctl DP_POLL failed: Invalid argument > > /dev/poll ioctl DP_POLL failed: Invalid argument > > /dev/poll ioctl DP_POLL failed: Invalid argument > > /dev/poll ioctl DP_POLL failed: Invalid argument > > > > solaris version: > > SunOS app03-3 5.10 Generic_118822-26 sun4u sparc SUNW,Sun-Fire-V240 > > > > helix server versions I tried: > > binary downloads: > > > > servinst -- Helix DNA Server 11 Installers built entirely from > > RPSL/RCSL source code. > > (Version: 11.0.1.1729; Tag: serverall-101605-2628; Date: 2005-Oct-16). > > > > servinstplus -- Helix DNA Server 11 Installers based on RPSL/RCSL source code > > with extra binary add-ons provided by RealNetworks. > > (Version: 11.0.1.1730; Tag: servdistall-101605-2512; Date: 2005-Oct-16). > > > > I also tried downloading the source and build myself, but the same errors: > > Branch: SERVER_11_1 > > Branch: SERVER_11_0_STABLE > > > > I did some searching on the error, and found this link: > > http://forum.sun.com/jive/thread.jspa?threadID=75916 > > In that discussion, it is said to replace "nfiles = rl.rlim_cur;" on > > "nfiles = rl.rlim_cur-1;" so I did a "grep" on the helix server source > > tree and found many ocurrence of rlim_cur. Do we need to make the same > > changes? Looks like Solaris 10 has more strict checks. > > > > Thanks! > > Frank > > > > _______________________________________________ > > Helix-server-dev mailing list > > Helix-server-dev at helixcommunity.org > > http://lists.helixcommunity.org/mailman/listinfo/helix-server-dev > > > > >