Re: To many open files in system

From: Heino Tiedemann <rotkaps_spam_trap(at)GMX.de>
Date: Sun, 31 Mar 2013 11:31:03 +0200

Oliver Fromme <olli(at)lurza.secnetix.de> wrote:

> Heino Tiedemann wrote:
> > Hallo,
> >
> > "To many open files in system" ist eine meldung, die mit seit
> > RELEASE-wechel extrem häfig unterkommt - Vorher quasi nie.
>
> Bei welchen Gelegenheiten passiert das denn?
> Folgendes Kommando listet auf, welche Prozesse wieviele
> Descriptoren verwenden, sortiert nach der Anzahl (die mit
> den meisten stehen am Schluss):
>
> procstat -fa | awk '{print $1,$2}' | sort | uniq -c | sort -n
>
> Vielleicht lässt sich da ja ein Übeltäter identifizieren,
> der ein Descriptor-Leak hat. Anderenfalls solltest Du
> vielleicht einfach mal das Limit heraufsetzen.

Danke für den Tipp

So kam ich dann auf devel/gamin

Und da ist eine message

file:///usr/ports/devel/gamin/pkg-message

===============================================================================

Gamin will only provide realtime notification of changes for at most n files,
where n is the minimum value between (kern.maxfiles * 0.7) and
(kern.maxfilesperproc - 200). Beyond that limit, files will be polled.

If you often open several large folders with Nautilus, you might want to
increase the kern.maxfiles tunable (you do not need to set
kern.maxfilesperproc, since it is computed at boot time from kern.maxfiles).

For a typical desktop, add the following line to /boot/loader.conf, then
reboot the system:

    kern.maxfiles="25000"

The behavior of gamin can be controlled via the various gaminrc files.
See http://www.gnome.org/~veillard/gamin/config.html on how to create
these files. In particular, if you find gam_server is taking up too much
CPU time polling for changes, something like the following may help
in one of the gaminrc files:

# reduce polling frequency to once per 10 seconds
# for UFS file systems in order to lower CPU load
fsset ufs poll 10

===============================================================================

Vielleicht wird es jetzt ja besser..

Heino

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 31 Mar 2013 - 13:23:56 CEST

search this site