Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Christopher E. Brown" <cbrown@denalics.net>
To: Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
Cc: Todd Henderson <Todd_Henderson@readwo.com>,
	RedHat AXP List <axp-list@redhat.com>,
	recipient list not shown: ;
Subject: Re: UP2000 running out of files _very_ fast!
Date: Tue, 14 Dec 1999 11:35:37 -0900 (AKST)	[thread overview]
Message-ID: <Pine.LNX.4.10.9912141131130.15650-100000@borg.denalics.net> (raw)
In-Reply-To: <XFMail.991214233547.konrad@pelimbert.tssc.univie.ac.at>

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.



  reply	other threads:[~1999-12-14 23:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <38569B8D.D0FB692A@readwo.com>
1999-12-14 22:35 ` UP2000 running out of files _very_ fast! Konrad Podloucky
1999-12-14 20:35   ` Christopher E. Brown [this message]
1999-12-14 23:45     ` Konrad Podloucky
1999-12-13 21:18 Konrad Podloucky
1999-12-13 21:23 ` Edwin Koshimoto
1999-12-13 21:30   ` Konrad Podloucky
1999-12-14  0:02 ` Christopher E. Brown
1999-12-14 15:15   ` Konrad Podloucky
1999-12-14 19:35     ` Todd Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox