rctl -u jail:0

From: Johannes Totz <johannes_at_jo-t.de>
Date: Fri, 11 Jun 2021 01:37:18 +0100
Hi there,

what does

$ rctl -u jail:0

report? Is that supposed to work? Output looks like:

cputime=10507
datasize=6946816
stacksize=520495104
coredumpsize=0
memoryuse=403210240
memorylocked=0
maxproc=87
openfiles=6992
vmemoryuse=1918025728
pseudoterminals=1
swapuse=37552128
nthr=95
msgqqueued=0
msgqsize=0
nmsgq=0
nsem=0
nsemop=0
nshm=0
shmsize=0
wallclock=443440
pcpu=0
readbps=512
writebps=0
readiops=1
writeiops=0


maxproc looks alright but the rest seems to be all over the place...
I don't have a jail called "0". For an actually existing jail the output 
looks fine.
I checked the source and looks like code that parses the jail name is 
just a string comparison, no check for jail id.

Side note: I was trying to get stats for all processes not in a jail. 
Any suggestions for that?

I'm still on 12-stable.


thanks,

Johannes
Received on Fri Jun 11 2021 - 00:37:18 UTC

Original text of this message