* FDS, file-max?
@ 1998-07-29 23:16 Barrett G. Lyon
1998-07-30 13:35 ` FAQ creation/maintenance Jonathan L Dubois
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Barrett G. Lyon @ 1998-07-29 23:16 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 693 bytes --]
My system needs to have file-max set very high. What is usually a good
number to set that to? Does the file-max have any relations to other
things needed by the kernel? I'm just asking this because when I have my
file-max left at default (1024) the machine crashes after a few days, but
when I set it to 4096 or higher it will be up for about 5 to 10 days. It
always crashes with the same error on console "no free inodes, contact
Linus".
Any information on this would be great.
-Barrett
--
Barrett G. Lyon
Data & Network Security Consultant Fax: 310-737-0196
Network Presence, LLC Email: blyon@netpr.com
--
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread* FAQ creation/maintenance.
1998-07-29 23:16 FDS, file-max? Barrett G. Lyon
@ 1998-07-30 13:35 ` Jonathan L Dubois
1998-07-30 16:48 ` FDS, file-max? Keith Baker
` (2 subsequent siblings)
3 siblings, 0 replies; 12+ messages in thread
From: Jonathan L Dubois @ 1998-07-30 13:35 UTC (permalink / raw)
To: axp-list
I would like to suggest that we adopt the convention of putting FAQ in the
subject line when providing an "answer" to a frequently asked question.
This will make the job of maintaining a FAQ list a bit easier.
Kind Regards,
Jonathan DuBois
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: FDS, file-max?
1998-07-29 23:16 FDS, file-max? Barrett G. Lyon
1998-07-30 13:35 ` FAQ creation/maintenance Jonathan L Dubois
@ 1998-07-30 16:48 ` Keith Baker
1998-07-30 22:09 ` scorpio
[not found] ` <Pine.BSI.3.95.980730124121.7465A-100000@shell1.cybercom.ne t>
3 siblings, 0 replies; 12+ messages in thread
From: Keith Baker @ 1998-07-30 16:48 UTC (permalink / raw)
To: axp-list
This is not a good thing. Simply increasing the number of files is NOT a
good idea. This sounds like it could be some sort of real kernel problem.
More likely, some other progam is opening files and never closing
them... Do you have some app which is spawning itself over and over? THe
no free inode seems like the disk may be full... I'm not exactly
sure... first guess would be to make sure nothing is spawning over and
over again... You shouldn't just keep increasing the number of files you
can have open.
On Wed, 29 Jul 1998, Barrett G. Lyon wrote:
>
>
> My system needs to have file-max set very high. What is usually a good
> number to set that to? Does the file-max have any relations to other
> things needed by the kernel? I'm just asking this because when I have my
> file-max left at default (1024) the machine crashes after a few days, but
> when I set it to 4096 or higher it will be up for about 5 to 10 days. It
> always crashes with the same error on console "no free inodes, contact
> Linus".
>
> Any information on this would be great.
>
> -Barrett
>
>
> --
> Barrett G. Lyon
> Data & Network Security Consultant Fax: 310-737-0196
> Network Presence, LLC Email: blyon@netpr.com
> --
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: FDS, file-max?
1998-07-29 23:16 FDS, file-max? Barrett G. Lyon
1998-07-30 13:35 ` FAQ creation/maintenance Jonathan L Dubois
1998-07-30 16:48 ` FDS, file-max? Keith Baker
@ 1998-07-30 22:09 ` scorpio
[not found] ` <Pine.BSI.3.95.980730124121.7465A-100000@shell1.cybercom.ne t>
3 siblings, 0 replies; 12+ messages in thread
From: scorpio @ 1998-07-30 22:09 UTC (permalink / raw)
To: axp-list
Increase inode-max as well. This should probably be done before
increasing file-max, but I 'spose it doesn't really matter as long as it's
done before the system crashes.
In the 2.1 kernels, these both default to 4096. Dunno about the
2.0 kernels.
- Bob
On Wed, 29 Jul 1998, Barrett G. Lyon wrote:
>
>
> My system needs to have file-max set very high. What is usually a good
> number to set that to? Does the file-max have any relations to other
> things needed by the kernel? I'm just asking this because when I have my
> file-max left at default (1024) the machine crashes after a few days, but
> when I set it to 4096 or higher it will be up for about 5 to 10 days. It
> always crashes with the same error on console "no free inodes, contact
> Linus".
>
> Any information on this would be great.
>
> -Barrett
>
>
> --
> Barrett G. Lyon
> Data & Network Security Consultant Fax: 310-737-0196
> Network Presence, LLC Email: blyon@netpr.com
> --
^ permalink raw reply [flat|nested] 12+ messages in thread[parent not found: <Pine.BSI.3.95.980730124121.7465A-100000@shell1.cybercom.ne t>]
* Re: FDS, file-max?
[not found] ` <Pine.BSI.3.95.980730124121.7465A-100000@shell1.cybercom.ne t>
@ 1998-07-31 4:32 ` Barrett G. Lyon
0 siblings, 0 replies; 12+ messages in thread
From: Barrett G. Lyon @ 1998-07-31 4:32 UTC (permalink / raw)
To: axp-list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I agree 100%, I can't find anything that is spawing itself over and
over, and I ran a scrip that did lsof every minute and dumped that to
a file. Nothing odd in there. I think that there may be a FDS leak
in the 2.0 & 2.1 kernels. I'm not sure though, I am not an expert on
kernel issues.
- -Barrett
At 12:48 PM 7/30/98 -0400, you wrote:
>This is not a good thing. Simply increasing the number of files is
NOT a
>good idea. This sounds like it could be some sort of real kernel
problem.
>More likely, some other progam is opening files and never closing
>them... Do you have some app which is spawning itself over and over?
THe
>no free inode seems like the disk may be full... I'm not exactly
>sure... first guess would be to make sure nothing is spawning over
and
>over again... You shouldn't just keep increasing the number of files
you
>can have open.
>
>On Wed, 29 Jul 1998, Barrett G. Lyon wrote:
>
>>
>>
>> My system needs to have file-max set very high. What is usually a
good
>> number to set that to? Does the file-max have any relations to
other
>> things needed by the kernel? I'm just asking this because when I
have my
>> file-max left at default (1024) the machine crashes after a few
days, but
>> when I set it to 4096 or higher it will be up for about 5 to 10
days. It
>> always crashes with the same error on console "no free inodes,
contact
>> Linus".
>>
>> Any information on this would be great.
>>
>> -Barrett
>>
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.3
iQA/AwUBNcFI3iav2qq1X8TaEQLX7gCgvbjNYN6Ch56NfusWp7SXlx8El0AAoPjh
O6RZu+le0vn1bgHi13iW3bs9
=X10h
-----END PGP SIGNATURE-----
--
Barrett G. Lyon
Data & Network Security Consultant Fax: 310-737-0196
Network Presence, LLC Email: blyon@netpr.com
--
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: FDS, file-max?
@ 1998-07-30 13:16 Greg Lindahl
0 siblings, 0 replies; 12+ messages in thread
From: Greg Lindahl @ 1998-07-30 13:16 UTC (permalink / raw)
To: axp-list
> My system needs to have file-max set very high. What is usually a good
> number to set that to? Does the file-max have any relations to other
> things needed by the kernel? I'm just asking this because when I have my
> file-max left at default (1024) the machine crashes after a few days, but
> when I set it to 4096 or higher it will be up for about 5 to 10 days. It
> always crashes with the same error on console "no free inodes, contact
> Linus".
As I think someone's mentioned before, you really need to up the
inode max as well:
cat 4096 > /proc/sys/kernel/inode-max
There may be a kernel restriction that if you have N files open, you
need a minimum of N inodes. If we're seeing a bug where the kernel
doesn't actually properly close open files, then you're getting an
ever-increasing # of open files, and the inode limit is what you're
hitting. Once you've upped the inode limit, you'll go back to running
into the fd limit after being up for a while longer.
-- g
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: FDS, file-max?
@ 1998-07-31 12:31 Greg Lindahl
1998-07-31 14:14 ` Barrett G. Lyon
0 siblings, 1 reply; 12+ messages in thread
From: Greg Lindahl @ 1998-07-31 12:31 UTC (permalink / raw)
To: axp-list
> This is not a good thing. Simply increasing the number of files is NOT a
> good idea. This sounds like it could be some sort of real kernel problem.
> More likely, some other progam is opening files and never closing
> them...
The purpose of increasing file-max and inode-max is to diagnose the
problem. For example, your theory is already disproved. One process
can only have 256 files open maximum. Thus, it takes at least 16
processes with all their files open to fill up 4096 fds, and the
repeating lsof showed that there weren't that many processes out there
with many fds open.
I think this is clearly a kernel problem where fds of closed files are
not reused.
Increasing file-max is an important diagnostic tool. If no one ever
methodically diagnoses the problem, it will continue to be present for
a long time.
-- g
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: FDS, file-max?
1998-07-31 12:31 Greg Lindahl
@ 1998-07-31 14:14 ` Barrett G. Lyon
0 siblings, 0 replies; 12+ messages in thread
From: Barrett G. Lyon @ 1998-07-31 14:14 UTC (permalink / raw)
To: axp-list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I agree, but I am not a kernel programmer. If there is a problem, it
really needs to be fixed. But from where I am standing, I feel like I
can do nothing about the problem, except enjoy my system crashing. I
wonder what it would take to get someone to look into it?
- -Barrett
>The purpose of increasing file-max and inode-max is to diagnose the
>problem. For example, your theory is already disproved. One process
>can only have 256 files open maximum. Thus, it takes at least 16
>processes with all their files open to fill up 4096 fds, and the
>repeating lsof showed that there weren't that many processes out
there
>with many fds open.
>
>I think this is clearly a kernel problem where fds of closed files
are
>not reused.
>
>Increasing file-max is an important diagnostic tool. If no one ever
>methodically diagnoses the problem, it will continue to be present
for
>a long time.
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.3
iQA/AwUBNcHRRyav2qq1X8TaEQLyiACeNXtWE/SgnHJOF8mRTiaqZgHtSU4An3Fs
kSv9ZkZkicWMNXkuQQ5A1gpz
=T+uF
-----END PGP SIGNATURE-----
--
Barrett G. Lyon
Data & Network Security Consultant Fax: 310-737-0196
Network Presence, LLC Email: blyon@netpr.com
--
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: FDS, file-max?
@ 1998-07-31 14:32 Greg Lindahl
1998-07-31 14:55 ` Barrett G. Lyon
0 siblings, 1 reply; 12+ messages in thread
From: Greg Lindahl @ 1998-07-31 14:32 UTC (permalink / raw)
To: axp-list
> I agree, but I am not a kernel programmer. If there is a problem, it
> really needs to be fixed. But from where I am standing, I feel like I
> can do nothing about the problem, except enjoy my system crashing. I
> wonder what it would take to get someone to look into it?
The folks who know how to investigate this apparently don't have the
problem at all. I've been making suggestions as to how anyone seeing
the problem could isolate it; you could follow them and report back.
Recipe:
1) Increase file-max and inode-max
2) Monitor your system over time to see if:
2a) some processes have many fd's open, by checking /proc/*
2b) the actual number of fd's used (/proc/sys/kernel/file-nr)
steadily increases over time
If a program simply isn't closing its fd's, you will see many
processes in /proc/* with many fd's.
If not, and file-nr keeps on increasing, it's a kernel bug where
the kernel is not reusing fd's.
-- g
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: FDS, file-max?
1998-07-31 14:32 Greg Lindahl
@ 1998-07-31 14:55 ` Barrett G. Lyon
1998-07-31 15:13 ` Paul Tomblin
0 siblings, 1 reply; 12+ messages in thread
From: Barrett G. Lyon @ 1998-07-31 14:55 UTC (permalink / raw)
To: axp-list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>The folks who know how to investigate this apparently don't have the
>problem at all. I've been making suggestions as to how anyone seeing
>the problem could isolate it; you could follow them and report back.
>
>Recipe:
>
>1) Increase file-max and inode-max
>2) Monitor your system over time to see if:
> 2a) some processes have many fd's open, by checking /proc/*
> 2b) the actual number of fd's used (/proc/sys/kernel/file-nr)
> steadily increases over time
I had to up file-max and inode-max, or my machine would crash every
day. As it is, I have gone beyond the default file-max of 1024.
Okay, I started cooking:
I wrote and croned this script to run every 12 hours.
#!/bin/sh
echo "-----------------------------" >>/root/fds-info
date >>/root/fds-info
echo -n "file-nr: " >>/root/fds-info
cat /proc/sys/kernel/file-nr >>/root/fds-info
echo -n "lsof: " >>/root/fds-info
lsof | wc -l >>/root/fds-info
echo "-----------------------------" >>/root/fds-info
Now, if the kernel is busted; the difference between file-nr and the
lsof line count will relfect it. If lsof shows a lower number than
file-nr and file-nr gets larger daily, then we have a problem. I'm
kinda unsure if lsof will double count some FDS, I guess we will find
out.
- -Barrett
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.5.3
iQA/AwUBNcHa5Sav2qq1X8TaEQI5oACgl1SjfZL1R9LutPMTVl+UNgPFjW8AoPBk
H74qwdykgKNyb9zTgIWKuVHr
=IBu6
-----END PGP SIGNATURE-----
--
Barrett G. Lyon
Data & Network Security Consultant Fax: 310-737-0196
Network Presence, LLC Email: blyon@netpr.com
--
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: FDS, file-max?
1998-07-31 14:55 ` Barrett G. Lyon
@ 1998-07-31 15:13 ` Paul Tomblin
1998-07-31 15:34 ` Barrett G. Lyon
0 siblings, 1 reply; 12+ messages in thread
From: Paul Tomblin @ 1998-07-31 15:13 UTC (permalink / raw)
To: axp-list
Quoting Barrett G. Lyon (blyon@netpr.com):
> echo -n "lsof: " >>/root/fds-info
> lsof | wc -l >>/root/fds-info
I don't have an "lsof" on either of my systems. Where do I get it?
--
Paul Tomblin, ptomblin@xcski.com.
"An appointment is an engagement to see someone, while a morningstar is a
large lump of metal used for viciously crushing skulls. It is important not
to confuse the two, isn't it, Mr. --?" - Terry Pratchett
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~1998-07-31 15:38 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-29 23:16 FDS, file-max? Barrett G. Lyon
1998-07-30 13:35 ` FAQ creation/maintenance Jonathan L Dubois
1998-07-30 16:48 ` FDS, file-max? Keith Baker
1998-07-30 22:09 ` scorpio
[not found] ` <Pine.BSI.3.95.980730124121.7465A-100000@shell1.cybercom.ne t>
1998-07-31 4:32 ` Barrett G. Lyon
-- strict thread matches above, loose matches on Subject: below --
1998-07-30 13:16 Greg Lindahl
1998-07-31 12:31 Greg Lindahl
1998-07-31 14:14 ` Barrett G. Lyon
1998-07-31 14:32 Greg Lindahl
1998-07-31 14:55 ` Barrett G. Lyon
1998-07-31 15:13 ` Paul Tomblin
1998-07-31 15:34 ` Barrett G. Lyon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox