* UP2000 running out of files _very_ fast!
@ 1999-12-13 21:18 Konrad Podloucky
1999-12-13 21:23 ` Edwin Koshimoto
1999-12-14 0:02 ` Christopher E. Brown
0 siblings, 2 replies; 9+ messages in thread
From: Konrad Podloucky @ 1999-12-13 21:18 UTC (permalink / raw)
To: RedHat AXP List
Hi!
I've got a very obscure problem with a new UP2000 here. After
about 5 hours of number-crunching, the system suddenly complains
about too many files being open. Afterwards _nothing_ works
anymore (sure, how could it, if I can't execute anything
anymore). The number-crunching program only opens about 15 files,
and there are usually 2 instances running at maximum.
This is vanilla SUSE 6.1 w/ kernel 2.2.13, but I doubt it's
distro related (2.2.10 has the same problems)
Sorry, that I can't provide more details about the system, but I
only have remote access right now, and that beast just committed
suicide again... Is this some known problem?
btw, this program (Fortran, compiled using Compaq's latest
Fortran/Linux beta-compiler) runs really fine on some SXen and
LXen.
Thanks in advance,
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.13 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\
^^-^^ "Smile -- It irritates people."
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 running out of files _very_ fast!
1999-12-13 21:18 UP2000 running out of files _very_ fast! Konrad Podloucky
@ 1999-12-13 21:23 ` Edwin Koshimoto
1999-12-13 21:30 ` Konrad Podloucky
1999-12-14 0:02 ` Christopher E. Brown
1 sibling, 1 reply; 9+ messages in thread
From: Edwin Koshimoto @ 1999-12-13 21:23 UTC (permalink / raw)
To: Konrad Podloucky; +Cc: RedHat AXP List
As a quick check try doing a 'df' and make sure that your
max file number and your max size resources aren't filling
up?
ed
On Mon, 13 Dec 1999, Konrad Podloucky wrote:
> Date: Mon, 13 Dec 1999 22:18:41 +0100 (CET)
> From: Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
> To: RedHat AXP List <axp-list@redhat.com>
> Subject: UP2000 running out of files _very_ fast!
> Resent-Date: 13 Dec 1999 21:17:40 -0000
> Resent-From: axp-list@redhat.com
> Resent-cc: recipient list not shown: ;
>
> Hi!
>
> I've got a very obscure problem with a new UP2000 here. After
> about 5 hours of number-crunching, the system suddenly complains
> about too many files being open. Afterwards _nothing_ works
> anymore (sure, how could it, if I can't execute anything
> anymore). The number-crunching program only opens about 15 files,
> and there are usually 2 instances running at maximum.
> This is vanilla SUSE 6.1 w/ kernel 2.2.13, but I doubt it's
> distro related (2.2.10 has the same problems)
>
> Sorry, that I can't provide more details about the system, but I
> only have remote access right now, and that beast just committed
> suicide again... Is this some known problem?
>
> btw, this program (Fortran, compiled using Compaq's latest
> Fortran/Linux beta-compiler) runs really fine on some SXen and
> LXen.
>
> Thanks in advance,
> Konrad
>
> ________________________________________________________________
> .~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
> /V\ Running GNU/Linux 2.2.13 on an Alpha
> // \\ GnuPG/PGP-key available by request
> /( )\
> ^^-^^ "Smile -- It irritates people."
>
> --
> 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
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 running out of files _very_ fast!
1999-12-13 21:23 ` Edwin Koshimoto
@ 1999-12-13 21:30 ` Konrad Podloucky
0 siblings, 0 replies; 9+ messages in thread
From: Konrad Podloucky @ 1999-12-13 21:30 UTC (permalink / raw)
To: Edwin Koshimoto; +Cc: RedHat AXP List
On 13-Dec-99 Edwin Koshimoto enlightened me with:
> As a quick check try doing a 'df' and make sure that your
> max file number and your max size resources aren't filling
> up?
>
> ed
>
Uhm... When the problem occurs, I can't execute _anything_.
Looks like the kernel is running out of file-descriptors, it has
nothing to do with the hard disk (as far as I can tell).
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.13 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\
^^-^^ "Smile -- It irritates people."
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 running out of files _very_ fast!
1999-12-13 21:18 UP2000 running out of files _very_ fast! Konrad Podloucky
1999-12-13 21:23 ` Edwin Koshimoto
@ 1999-12-14 0:02 ` Christopher E. Brown
1999-12-14 15:15 ` Konrad Podloucky
1 sibling, 1 reply; 9+ messages in thread
From: Christopher E. Brown @ 1999-12-14 0:02 UTC (permalink / raw)
To: Konrad Podloucky; +Cc: RedHat AXP List
On Mon, 13 Dec 1999, Konrad Podloucky wrote:
> Hi!
>
> I've got a very obscure problem with a new UP2000 here. After
> about 5 hours of number-crunching, the system suddenly complains
> about too many files being open. Afterwards _nothing_ works
> anymore (sure, how could it, if I can't execute anything
> anymore). The number-crunching program only opens about 15 files,
> and there are usually 2 instances running at maximum.
> This is vanilla SUSE 6.1 w/ kernel 2.2.13, but I doubt it's
> distro related (2.2.10 has the same problems)
>
> Sorry, that I can't provide more details about the system, but I
> only have remote access right now, and that beast just committed
> suicide again... Is this some known problem?
>
> btw, this program (Fortran, compiled using Compaq's latest
> Fortran/Linux beta-compiler) runs really fine on some SXen and
> LXen.
Double check your code. Is it possable that you are
opening/closing/reopening the files alot? Perhaps not properly
closing them?
---
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 running out of files _very_ fast!
1999-12-14 0:02 ` Christopher E. Brown
@ 1999-12-14 15:15 ` Konrad Podloucky
1999-12-14 19:35 ` Todd Henderson
0 siblings, 1 reply; 9+ messages in thread
From: Konrad Podloucky @ 1999-12-14 15:15 UTC (permalink / raw)
To: axp-list
[...]
>
> Double check your code. Is it possable that you are
> opening/closing/reopening the files alot? Perhaps not properly
> closing them?
>
This has already been checked. Besides, this program runs for
days on SX and LX boxes.
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.13 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\
^^-^^ "Smile -- It irritates people."
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 running out of files _very_ fast!
1999-12-14 15:15 ` Konrad Podloucky
@ 1999-12-14 19:35 ` Todd Henderson
0 siblings, 0 replies; 9+ messages in thread
From: Todd Henderson @ 1999-12-14 19:35 UTC (permalink / raw)
To: axp-list
I just found that a program like this is creating my problem, at least
part of the time.
If you run this program when the file STOP, or whatever you want to put
in there doesn't exist, it seems to lock out users, rsh commands, etc.
Granted the code is not clean and shouldn't get to the close statement,
but I wouldn't expect it to generate too many files open. This is on an
XP1000 running kernel 2.2.5-16.
Todd
program file_test
open(unit=1,file='STOP',status='old')
close(unit=1,status='delete')
stop
end
Konrad Podloucky wrote:
> [...]
> >
> > Double check your code. Is it possable that you are
> > opening/closing/reopening the files alot? Perhaps not properly
> > closing them?
> >
> This has already been checked. Besides, this program runs for
> days on SX and LX boxes.
>
> Konrad
>
> ________________________________________________________________
> .~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
> /V\ Running GNU/Linux 2.2.13 on an Alpha
> // \\ GnuPG/PGP-key available by request
> /( )\
> ^^-^^ "Smile -- It irritates people."
>
> --
> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 running out of files _very_ fast!
1999-12-14 22:35 ` Konrad Podloucky
@ 1999-12-14 20:35 ` Christopher E. Brown
1999-12-14 23:45 ` Konrad Podloucky
0 siblings, 1 reply; 9+ messages in thread
From: Christopher E. Brown @ 1999-12-14 20:35 UTC (permalink / raw)
To: Konrad Podloucky; +Cc: Todd Henderson, RedHat AXP List
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 running out of files _very_ fast!
[not found] <38569B8D.D0FB692A@readwo.com>
@ 1999-12-14 22:35 ` Konrad Podloucky
1999-12-14 20:35 ` Christopher E. Brown
0 siblings, 1 reply; 9+ messages in thread
From: Konrad Podloucky @ 1999-12-14 22:35 UTC (permalink / raw)
To: Todd Henderson, RedHat AXP List
On 14-Dec-99 Todd Henderson enlightened me with:
> I just found that a program like this is creating my problem,
> at least
> part of the time.
>
> If you run this program when the file STOP, or whatever you
> want to put
> in there doesn't exist, it seems to lock out users, rsh
> commands, etc.
>
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.
Konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.13 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\
^^-^^ "Smile -- It irritates people."
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: UP2000 running out of files _very_ fast!
1999-12-14 20:35 ` Christopher E. Brown
@ 1999-12-14 23:45 ` Konrad Podloucky
0 siblings, 0 replies; 9+ messages in thread
From: Konrad Podloucky @ 1999-12-14 23:45 UTC (permalink / raw)
To: Christopher E. Brown; +Cc: RedHat AXP List, Todd Henderson
On 14-Dec-99 Christopher E. Brown enlightened me with:
> On Tue, 14 Dec 1999, Konrad Podloucky wrote:
[...]
>
> 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.
>
This is usually a good idea, but there isn't that much running
on that machine right now, so I haven't done that (yet). It's
just a standard setup with the usual set of daemons (cron,
sendmail, ...) and the number-crunching program. Nothing more.
You can't expect this to use up all 4096 file descriptors!
> Also, what kernel are you running? And what distrib
> (RedHat/Debian/Other)?
>
2.2.10 (same symptoms w/ 2.2.13), SuSe 6.1
konrad
________________________________________________________________
.~. Konrad Podloucky <konrad@pelimbert.tssc.univie.ac.at>
/V\ Running GNU/Linux 2.2.13 on an Alpha
// \\ GnuPG/PGP-key available by request
/( )\
^^-^^ "Smile -- It irritates people."
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1999-12-14 23:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-13 21:18 UP2000 running out of files _very_ fast! 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
[not found] <38569B8D.D0FB692A@readwo.com>
1999-12-14 22:35 ` Konrad Podloucky
1999-12-14 20:35 ` Christopher E. Brown
1999-12-14 23:45 ` Konrad Podloucky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox