From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23124 invoked from network); 27 Jul 1998 16:14:34 -0000 Received: from relay.la.tis.com (198.51.22.11) by mail2.redhat.com with SMTP; 27 Jul 1998 16:14:34 -0000 Received: by relay.la.tis.com; id JAA17801; Mon, 27 Jul 1998 09:34:46 -0700 (PDT) Received: from unknown(205.242.228.209) by relay.la.tis.com via smap (3.2) id xma017796; Mon, 27 Jul 98 09:34:18 -0700 Message-Id: <3.0.5.32.19980727111039.007ba400@mojo.calyx.net> X-Sender: blyon@mojo.calyx.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Mon, 27 Jul 1998 11:10:39 -0500 To: axp-list@redhat.com From: "Barrett G. Lyon" Subject: Re: syslogd problems - fixed? In-Reply-To: <199807271520.LAA09012@adder.cs.Virginia.EDU> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=---=-=--=--===-==--==-=-=======-=----===-==----"; protocol="application/pgp-signature"; micalg=pgp-sha1 --=---=-=--=--===-==--==-=-=======-=----===-==---- Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" I wrote the orig. message, there must be a fds leak in the Linux kernels. Thats the only way that I can explane what happens. I can only keep my machine up for about 10 days before the machine starts to crash. I had lsof looping every 30 seconds to keep a list of open files in /var/log/lsof. I was keeping my file-max at around 4096 until 9 days of uptime where if I cat'd my lsof file and did a wc -l it was near over 4000 lines. Most of the open files where things like httpd, or the bots that my shell users run, but nothing stuck out as using more than its share. At that point things started to segfault, so I upped file-max to a rather large number, and about 30 minutes later the machine crashed with "No free inodes: contact Linus" on console (or something to that effect). looks like the syslogd problem is just a result of the fds leak in the linux kernel? -Barrett At 11:20 AM 7/27/98 -0400, you wrote: >> > This works great, and the machine has been up for weeks with a very very >> > heavy load, and until yesterday has not crashed. 20 days uptime (personal >> > alpha record). >> >> I set my file-max to 4096 two days ago, and today I got the syslogd screw-up. >> It doesn't seem to fix it, just delay it by a day or two. > >Well, that's actually useful information. > >When you look in /proc at which processes have files open, are there a >few processes that keep on opening more and more? > >If you cat /proc/sys/kernel/file-nr, do you see the # of fd's in use >steadily rising? This count seems to represent the size of a data >structure so it may never shrink, but it's good enough for this >purpose. > >Since (by default) 1 process can only open 256 fd's, the most likely >explanation at this point is that the kernel isn't properly reusing >closed fd's -- no one process (only 16) can eat up 4096 fd's. The >proof of this guess is that you'll see file-nr keep on rising, but the ># of fd's indicated as in-use in /proc will be small. > >-- g > >-- >To unsubscribe: send e-mail to axp-list-request@redhat.com with >'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > -- Barrett G. Lyon Data & Network Security Consultant Fax: 310-737-0196 Network Presence, LLC Email: blyon@netpr.com -- --=---=-=--=--===-==--==-=-=======-=----===-==---- Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: PGP for Personal Privacy 5.5.3 iQA/AwUBNbymhyav2qq1X8TaEQIK3wCggOEvuAfrhMMCyNnj73YXMD1OvHkAoPMg upJd+/wnkyPumtxBkd8DXyCR =htzf -----END PGP MESSAGE----- --=---=-=--=--===-==--==-=-=======-=----===-==------