Date: Wed, 13 Sep 2023 07:59:21 +0100 From: Graham Perrin <grahamperrin@gmail.com> To: FreeBSD CURRENT <freebsd-current@freebsd.org> Cc: Bakul Shah <bakul@iitbombay.org> Subject: Re: Continually count the number of open files Message-ID: <a94a93f4-927c-a1d2-00af-83b83f171182@gmail.com> In-Reply-To: <592123F4-E610-446E-82B4-ACC519C0BA3E@iitbombay.org> References: <291ad2de-ba0e-4bdf-786a-19614eacec49@gmail.com> <592123F4-E610-446E-82B4-ACC519C0BA3E@iitbombay.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 12/09/2023 17:19, Bakul Shah wrote: > On Sep 11, 2023, at 11:38 PM, Graham Perrin <grahamperrin@gmail.com> wrote: >> Can anything like systat(1) present a count, continually? > How about > > while sleep 0.1; do sysctl -n kern.openfiles; done That's ideal, thanks. I knew about the sysctl, but not how to form a command like the one above. (I'm a tcsh user, I can easily 'sh' before running the command.) > > Or you can write a small program using sysctl(3). > >> I'd like to monitor, after log in to Plasma (X11), in connection with <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273669>. > 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. baloo is not used in 273669. I'm beginning to investigate something unrelated to KDE that has bugged me, on FreeBSD, for a very long time. Thanks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a94a93f4-927c-a1d2-00af-83b83f171182>