From owner-freebsd-questions Wed Jun 19 00:05:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA18186 for questions-outgoing; Wed, 19 Jun 1996 00:05:20 -0700 (PDT) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA18181 for ; Wed, 19 Jun 1996 00:05:17 -0700 (PDT) Received: from mekong.biomath.jussieu.fr (mekong.biomath.jussieu.fr [134.157.72.87]) by shiva.jussieu.fr (8.7.5/jtpda-5.2) with SMTP id JAA22461 for ; Wed, 19 Jun 1996 09:05:15 +0200 (METDST) Received: from iaka.biomath.jussieu.fr (iaka) by mekong.biomath.jussieu.fr (5.67b/jn930126+af960507(mailhost)) at Wed, 19 Jun 1996 09:04:53 +0100 Received: by iaka.biomath.jussieu.fr (5.67b/jf930126) at Wed, 19 Jun 1996 09:04:52 +0100 Message-Id: <199606190804.AA28032@iaka.biomath.jussieu.fr> Subject: Re: Max first parameter of a Select call? To: freebsd-questions@freebsd.org Date: Wed, 19 Jun 1996 09:04:52 +0100 (GMT+0100) From: "Alain FAUCONNET" X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Christiaan Keet wrote / a ecrit: > > How do you get the 'select' call in FreeBSD to be happy with something > greater than 256 as a first parameter? > Anything above this seems to give a "Select error 22 - invalid argument" > Not a reply, just a followup: this "feature" seems to have a lot of interesting side effects on my machine (2.1-STABLE pre-earthquake). When I set user resources limits to hard limits ("unlimit" C-shell command) and the max file descriptors goes >> 256, sudo no longer works ("Password:" prompt exits immediately), fvwm sets system load at 1.0 permanently. I have ktraced fvwm and actually saw that select returning an error. Everything goes back to normal when I set max fd <= 256. I pulled my hair for a while on this. Why unlimiting ? for some reason on my machine maxproc per user is set to 40 by the shell (tcsh) (despite MAXUSERS=64 in the config file) which is just too low. I get frequent fork errors. Now I unlimit more selectively :-) _Alain_ -- Alain FAUCONNET Ingenieur systeme - System Manager AP-HP/SIM Public Health 91 bld de l'Hopital 75013 PARIS FRANCE Medical Computing Research Labs Mail: af@biomath.jussieu.fr Tel: (+33) 1-40-77-96-19 Fax: (+33) 1-45-86-80-68 I've RTFMed. It says: "Refer to your system administrator" But... I *am* the system administrator :-]