Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Sep 2023 09:19:35 -0700
From:      Bakul Shah <bakul@iitbombay.org>
To:        Graham Perrin <grahamperrin@gmail.com>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: Continually count the number of open files
Message-ID:  <592123F4-E610-446E-82B4-ACC519C0BA3E@iitbombay.org>
In-Reply-To: <291ad2de-ba0e-4bdf-786a-19614eacec49@gmail.com>
References:  <291ad2de-ba0e-4bdf-786a-19614eacec49@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 11, 2023, at 11:38 PM, Graham Perrin <grahamperrin@gmail.com> =
wrote:
>=20
> Can anything like systat(1) present a count, continually?

How about=20

	while sleep 0.1; do sysctl -n kern.openfiles; done

Or you can write a small program using sysctl(3).

>=20
> I'd like to monitor, after log in to Plasma (X11), in connection with =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273669>.

Not sure checking how many files are open will help you.
Looks like "baloo" is using inotify to watch changes on
every file & directory or something. Simulating inotify
with kqueue under FreeBSD doesn't scale well. FreeBSD
should add inotify.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?592123F4-E610-446E-82B4-ACC519C0BA3E>