Re: Continually count the number of open files

2023-09-14 Thread Mateusz Guzik
On 9/13/23, David Chisnall wrote: > On 12 Sep 2023, at 17:19, Bakul Shah wrote: >> >> FreeBSD >> should add inotify. > > inotify is also probably not the right thing. If someone is interested in > adding this, Apple’s fsevents API is a better inspiration. It is carefully > designed to ensure th

Re: Continually count the number of open files

2023-09-13 Thread Tomoaki AOKI
On Wed, 13 Sep 2023 11:52:19 -0700 Bakul Shah wrote: > On Sep 12, 2023, at 11:59 PM, Graham Perrin wrote: > > > > (I'm a tcsh user, I can easily 'sh' before running the command.) > > You can switch to zsh. Most of csh/tcsh + sh + many more features. > > > baloo is not used in 273669. > > It

Re: Continually count the number of open files

2023-09-13 Thread Bakul Shah
On Sep 12, 2023, at 11:59 PM, Graham Perrin wrote: > > (I'm a tcsh user, I can easily 'sh' before running the command.) You can switch to zsh. Most of csh/tcsh + sh + many more features. > baloo is not used in 273669. It certainly feels like an inotify like use or a file-descr leak. The bug re

Re: Continually count the number of open files

2023-09-13 Thread David Chisnall
On 12 Sep 2023, at 17:19, Bakul Shah wrote: > > FreeBSD > should add inotify. inotify is also probably not the right thing. If someone is interested in adding this, Apple’s fsevents API is a better inspiration. It is carefully designed to ensure that the things monitoring for events can’t ev

Re: Continually count the number of open files

2023-09-12 Thread Graham Perrin
On 12/09/2023 17:19, Bakul Shah wrote: On Sep 11, 2023, at 11:38 PM, Graham Perrin 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 com

Re: Continually count the number of open files

2023-09-12 Thread Bakul Shah
On Sep 11, 2023, at 11:38 PM, Graham Perrin wrote: > > Can anything like systat(1) present a count, continually? How about while sleep 0.1; do sysctl -n kern.openfiles; done Or you can write a small program using sysctl(3). > > I'd like to monitor, after log in to Plasma (X11), in c

Re: Continually count the number of open files

2023-09-12 Thread Ronald Klop
On 9/12/23 08:38, Graham Perrin wrote: Can anything like systat(1) present a count, continually? I'd like to monitor, after log in to Plasma (X11), in connection with . I don't think you mean: # sysctl -d kern.openfiles kern.openfil

Continually count the number of open files

2023-09-11 Thread Graham Perrin
Can anything like systat(1) present a count, continually? I'd like to monitor, after log in to Plasma (X11), in connection with .