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.openfiles: System-wide number of open files

It is more like a gauge than a counter.

Regards,
Ronald.




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 connection with 
> .

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.


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 
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 
.

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