[SunHELP] Too many files open ?

DAUBIGNE Sebastien - BOR sunhelp at sunhelp.org
Wed Oct 31 11:16:05 CST 2001


It seems the "pcshare" process did reach the max file descriptors per
process soft limit.

This limit defaults to 64 on Solaris 2.6, and you can enforce it using
either setrlimit() syscall
(RLIMIT_NOFILE parameter), either the "ulimit -n" shell command. The =
soft
limit is inherited
by child processes.

Note that you can print one process current max fd soft limit with the
/usr/proc/bin/pfiles command :

# ulimit -n         =20
64
# pfiles $$ | head -2
12066:  ksh -o vi
  Current rlimit: 64 file descriptors
# ulimit -n 512     =20
# pfiles $$ | head -2
12066:  ksh -o vi
  Current rlimit: 512 file descriptors

Maybe you should type  "pfiles pid_of_pcshare" to get the current value =
and
then increase=20
the soft limit in the startup script of this process (using "ulimit =
-n").

Note that the soft limit can't be more than the hard limit which is =
stored
in the kernel.
Don't know for any kernel parameter to tune the hard limit, but it's =
quite
suffficient :
You can get the value with "sysdef -i" :

# sysdef -i | grep "file descriptors"  =20
ffffffff:fffffffd       file descriptors

Here the value is 0xfffffffd=3D4294967293 max file descriptors per =
process (I
suppose=20
memory mapping limit (4Gb) does not allow to reach this value on 32 =
bits
system ?).

---
Sebastien DAUBIGNE=20
sebastien.daubigne at sema.fr <mailto:sebastien.daubigne at sema.fr>  - (+33)
(0)5.57.26.56.36
Sema Global Services - AFM/DW/Pessac

	-----Message d'origine-----
	De:	Nicholas Dronen [SMTP:ndronen at frii.com]
	Date:	mercredi 31 octobre 2001 16:09
	=C0:	sunhelp at sunhelp.org
	Objet:	Re: [SunHELP] Too many files open ?

	Michael:

	Well, EMFILE ("Too many open files") is symptomattic of reaching
	a per-process limitation, not a system-wide limitation, so I suspect
	maxusers or maxuproc won't help.  I'm not familiar with max_nprocs.
	If it's a system-wide limitation, it might not help either.

	Given the behavior you describe, the only thing I can say is
	to force a dump and send it to Sun if the freeze/lock up
	happens again.  I know that's not very reassuring advice.

	Regards,

	Nicholas


	On Wed, Oct 31, 2001 at 09:29:40AM +0100, Michael Karl wrote:
	> Hey Balaji and Nicholas,
	>=20
	> no way to login ... no ping ... no panic ... no stop+a ...
	> -> power off ... wait ... power on ... U2 is coming up.
	> Only booting-messages after the two lines ... see below.
	>=20
	> (Solaris 8 with Recommended PatchCluster September 2001)
	> (ufs-logging is activ, so the maschine start very fast :-)
	>=20
	> I must set a parameter in the /etc/system higher,
	> but I don't know which ... maxusers, max_nprocs or maxuprc !?!
	>=20
	> My problem is, that I can't test it, because the customer is
	> working on this machine 24 hours per day and 7 days per week.
	>=20
	> I don't find any hints on docs.sun.com or sunsolve.sun.com.
	>=20
	> Thank you
	>=20
	> Michael
	>=20
	> > Von: Nicholas Dronen <ndronen at frii.com>
	> > Antworten an: sunhelp at sunhelp.org
	> > Datum: Tue, 30 Oct 2001 13:02:17 -0700
	> > An: sunhelp at sunhelp.org
	> > Betreff: Re: [SunHELP] Too many files open ?
	> >=20
	> > On Tue, Oct 30, 2001 at 05:27:51PM +0100, Michael Karl wrote:
	> >> Hey all,
	> >>=20
	> >> yesterday a Ultra2 with Solaris 8 crashed.
	> >>=20
	> >> In the messages-file there are only two lines just before the
crash.
	> >>=20
	> >> Oct 29 15:10:51 Sun-Server pcshare[29603]: [ID 702911
daemon.error] pipe:
	> >> Too many open files
	> >> Oct 29 15:10:51 Sun-Server last message repeated 2 times
	> >=20
	> > If by "crash" you mean "panic," it's not clear that the
	> > server crashed.  Could you login?  Were current sessions
	> > unresponsive?  Could you ping the machine?
	> >=20
	> > (A panic is when the kernel or a device driver incur
	> > a fatal error (e.g., accessing invalid memory).)
	> >=20
	> > This sounds more like the case of a runaway process.
	> > Can you provide more information?
	> >=20
	> > Regards,
	> >=20
	> > Nicholas Dronen
	> >=20
	> > _______________________________________________
	> > SunHELP maillist  -  SunHELP at sunhelp.org
	> > http://www.sunhelp.org/mailman/listinfo/sunhelp
	>=20
	> _______________________________________________
	> SunHELP maillist  -  SunHELP at sunhelp.org
	> http://www.sunhelp.org/mailman/listinfo/sunhelp
	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list