From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 17683 invoked from network); 14 Dec 1999 23:28:06 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 14 Dec 1999 23:28:06 -0000 Received: from borg.denalics.net (postfix@borg.denalics.net [209.112.170.15]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA29007 for ; Tue, 14 Dec 1999 18:28:04 -0500 Received: from borg.denalics.net (borg.denalics.net [209.112.170.15]) by borg.denalics.net (Postfix) with ESMTP id ED42348896; Tue, 14 Dec 1999 11:35:37 -0900 (AKST) Date: Tue, 14 Dec 1999 11:35:37 -0900 (AKST) From: "Christopher E. Brown" To: Konrad Podloucky Cc: Todd Henderson , RedHat AXP List , recipient list not shown: ; Subject: Re: UP2000 running out of files _very_ fast! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 14 Dec 1999, Konrad Podloucky wrote: > Something similar happens here, but not on the UP2000. Sometimes > a job aborts, with the error "File not found" although the file > exists. > > The UP which ran out of files yesterday evening was doing fine > this morning. However I've discovered the following messages in > the syslog: > Dec 13 20:53:43 schosulan kernel: VFS: file-max limit 4096 > reached > > And shortly after that: > Dec 13 20:59:57 schosulan kernel: fault.c:43 spinlock stuck in > klogd at fffffc000032843c(0) owner oc.x at fffffc000032843c(1) > fault.c:43 > Dec 13 20:59:57 schosulan kernel: fault.c:43 spinlock grabbed in > klogd at fffffc000032843c(0) 1213 ticks > > (oc.x is the "bad" program, but I've also got spinlock messages > from bash, klogd, in.telnetd, sendmail, syslogd in vmscan.c, > sched.c and fault.c) There were 48 of these messages and all at > the same time. > When that happened the system was in "Too many files open"-mode. > > Currently I've got cron writing the contents of > /proc/sys/fs/file-nr to a log every 2 minutes and nothing has > happened so far, although the system is under heavy load. By default I increase the limits on larger machines, and always on servers. The items below the file and inode prolly need to be tweaked for Alpha, read up on the settings *before* choosing new settings. Also, what kernel are you running? And what distrib (RedHat/Debian/Other)? # System Tunables #--------------------------------------------------------------- # Increase global file/inode max settings echo 65536 > /proc/sys/fs/file-max echo 262144 > /proc/sys/fs/inode-max # Memory Buffer Settings, min_percent borrow_percent max_percent echo 2 10 60 > /proc/sys/vm/buffermem # Tune the kernel memory swap controll stuff echo 256 512 768 > /proc/sys/vm/freepages # Tune the kernel kswapd controll stuff # Set tries_base x4, tries_min x1, swap_cluster x4 echo 2048 32 128 > /proc/sys/vm/kswapd # Should we overcommit on memory? 0||1 echo 1 > /proc/sys/vm/overcommit_memory # page-cluster * 2 used for multiple page transfers on page fault # Values above 5 don't make much sense for swap because we only # cluster swap data in 32-page groups echo 5 > /proc/sys/vm/page-cluster # PageCache Settings, min_percent borrow_percent max_percent echo 2 15 75 > /proc/sys/vm/pagecache --- As folks might have suspected, not much survives except roaches, and they don't carry large enough packets fast enough... --About the Internet and nuclear war.