Vernon Schryver
vjs@calcite.rhyolite.com
Sun, 5 Jan 2003 16:47:34 -0700 (MST)
> From: Gary Mills <mills@cc.UManitoba.CA>
> > > i = max_work*2+EXTRA_FILES;
> > > old_rlim_cur = nofile.rlim_cur;
> > > if (old_rlim_cur < i) {
> > > nofile.rlim_cur = i;
> > > if (0 > setrlimit(RLIMIT_NOFILE, &nofile)) {
> >
> > Yes, that is bogus code for increasing the kernel's FD limit if you use
> > an explicit `dccm -j` value instead of using the max_work limit
> > inferred from the kernels' FD limit. I'll fix it in 1.1.18.
>
> It looks to me as if it always sets the file descriptor limit.
> If `-j' is not used, doesn't it use the default `max_work = 200'?
What if the current limit in nofile.rlim_cur is more than about 412?
Vernon Schryver vjs@rhyolite.com