Subject: Re: kaffe limitations
To: None <netbsd-users@netbsd.org>
From: Jorgen Lundman <lundman@lundman.net>
List: netbsd-users
Date: 01/19/2001 09:38:15
Isn't this the kind place where you have to re-compile it, setting
FD_SETSIZE to something bigger, like 4096, then add at the start of the
code
#ifdef POSIX
getrlimit(RLIMIT_NOFILE, &rlim);
rlim.rlim_cur = rlim.rlim_max;
setrlimit(RLIMIT_NOFILE, &rlim);
printf("Max open file's: %d\n", getdtablesize());
#endif
and you should end up with something like:
Max open file's: 3404
Which is the hard kernel limit, if you need to go beyond that, you need
to re-compile the kernel (? or maybe a sysctl thing)
Lund
Erik Huizing wrote:
>
> Thanks. I've upped the limit of descriptors to 1000, but can only get 252
> sockets still.
>
> The first rule of Fight Club is You Do Not Talk About Fight Club.
>
> // Erik Huizing huizing@cpsc.ucalgary.ca
> // www.cpsc.ucalgary.ca/~huizing
>
> On Fri, 19 Jan 2001, Emmanuel Dreyfus wrote:
>
> > > Is there any way I can increase the number of open files a process can
> > > have?
> >
> > limit built-in command for csh users, and ulimit built-in for sh/ksh
> > users.
> >
> > --
> > Emmanuel Dreyfus.
> > Avec Windows 3.1 ils etaient au bord du gouffre...
> > Avec Windows 95 ils ont fait un grand bon en avant.
> > p99dreyf@criens.u-psud.fr
> >
--
Jorgen "Lord" Lundman <lundman@lundman.net>
Technology Manager, Unix Administrator
Phone: +44 (020)8659-1860 Mobile: (07958)642-918
Pager: 07958642918@one2one.net
"Rare is the person who can weigh the faults of others
without putting his thumb on the scales": Byron J. Langenfeld