Re: [Nagios-devel] nagios-cvs: Too many open files?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] nagios-cvs: Too many open files?

Post by Guest »

Gaspar, Carson wrote:
>
>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]] On Behalf
>> Of Ethan Galstad
>> Sent: Wednesday, February 07, 2007 9:31 AM
>> To: Nagios Developers List
>> Subject: Re: [Nagios-devel] nagios-cvs: Too many open files?
>
> ...
>
>> LSOF returns entries for files that have already been deleted
>> on my system...
>>
>> nagios 4034 nagios DEL REG 3,1 1141972
>> /usr/local/nagios/tmp/nagios2e8Q7h
>>
>>
>> Looks like the kernel must keep references to these files even
>> after they've been removed. This appears to be true based on
>> an article I just found:
>>
>> http://www.linux.com/article.pl?sid=06/10/30/1652211
>>
>> There's probably a way to tweak the kernel's behavior into
>> immediately releasing these files once they've been deleted.
>> Normally the kernel keeps references to deleted files in
>> memory (at least for a while) until the process that deleted
>> them exits.
>>
>> Any kernel gurus out there have a solution to this?
>
> Not possible. The file is still being accessed, so the file still exists
> (if it didn't, you couldn't access it), so the kernel has to know about
> it. If you don't want a kernel reference, and you're done with the file,
> close the fd.
>

Yeah, I think you're right. I may have just found a bug, so I'll
followup to Gerd's most recent message...


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked