-
kerneldove_
what's the most accurate way to sample the bandwidth rate going through a NIC in and out? i have iftop but i'd like to double check that it's accurate tyvm
-
kerneldove_
wow i just found systat -ifstat. and that comes in every install? it's really nice!
-
Koston
kerneldove_: depending on the driver, there's also a bunch of stuff in sysctl, eg. dev.em.0
-
adavis3
What's everyone using for process supervision on FreeBSD these days?
-
adavis3
A few times a year dhclient dies and I'm left without internet until i log in and `# service dhclient start igb0`
-
ivy
adavis3: i'd probably switch to a dhcp client that doesn't break. maybe try dhcpcd from ports? this is going to replace dhclient in base eventually anyway
-
adavis3
Just to confirm i've got the right one. This one?
freshports.org/net/dhcpcd
-
ivy
yes - although i've never actually tried it, i don't have any freebsd system that use dhcp
-
ivy
alternatively, for a service manager, i recently heard a couple of people using runit who seemed happy with it
-
ivy
at an old job we used python's supervisord for everything, which works fine but it does mean bringing in python everywhere
-
adavis3
Thanks, I'll take a look. This is for my home router, dhclient dying lead to no internet for the house :/
-
adavis3
re service manager. I'll take a look at that too.
-
kerneldove_
i just did a fresh 14.3 install, did freebsd-update fetch/install, rebooted, then on startup saw console message: unbound warning setsockopt so_sndbuf was not granted no buffer space available, so-sndbuf 4194304 was not granted. got 9216. anyone run into that or know wtf?
-
ek
kerneldove_: I haven't seen that, but I don't run unbound. If you attempt to start unbound after the system boots, does it run?
-
kerneldove_
well it started, it just complained that it didn't get as much buffer space as it wanted i guess
-
kerneldove_
btw is there a way to check if any of the networking buffers are being filled/exceeded?
-
ivy
netstat -m shows mbuf statistics, but i don't think filling up the send/recv queue is tracked anywhere since that's normal
-
ivy
(for example serving any static file over HTTP will probably full the socket sendq, assuming your disk is faster than your network)
-
kerneldove_
ok well i guess i'll just ignore the unbound complaint. dns resolution works *shrug*
-
ivy
your unbound message is not because it's filling the sendq, it's because it requested a larger sendq than is available. i forget how that limit is set by default but i think it's related to system memory size... but 4MB is extremely large for a DNS server
-
scottpedia
i sometimes use glances
-
scottpedia
it's a terminal-based activity monitor
-
ivy
if you don't have any local changes to the unbound config, i would consider filing a PR for this, we might want to reduce the default size unbound uses
-
kerneldove_
i have 256GB ram, but 0 swap
-
scottpedia
it has very detailed stats including buffer
-
kerneldove_
i just tried service unbound restart nowthat box is up and running, same warnings shit out. (but it does restart, and works)
-
kerneldove_
lemme see if my config has anything weird
-
kerneldove_
ya nothing mem or buf or wahtever in the config
-
ek
kerneldove_: Yup. As ivy suggested, just file a PR about it.
-
ivy
to be clear, the message is harmless, but i think we shouldn't produce errors using a base daemon in the default config
-
kerneldove_
i agree ty
-
kerneldove_
i don't have bugzilla but i'll think about making account
-
ivy
kerneldove_: if you do, you may cc ivy@ and des@ (he is working on unbound in base)
-
kerneldove_
tyvm
-
Koston
adavis: have you looked into *why* your dhcp client fails?
-
Hund
What happened to khard in FreeBSD? vdirsyncer and khal is still available. They all come from the same project and belong together.
-
ivy
what are khard, vdirsyncer and khal?
-
Hund
ivy: calendar, contacts and a tool for syncing the data from like Nextcloud.
-
ivy
oh, are you talking about ports?
-
ivy
deskutils/py-khard still appears to exist
-
Hund
I get zero results when I search for it.
-
ivy
how are you searching for it?
-
Hund
pkg search khard
-
Hund
I would assume that all or none would be there. :)
-
Hund
And not 2 out of 3.
-
ivy
you are probably using quarterly packages, it seems like the port was fixed shortly after 2025Q3 was branched so it's missing in current quarterly:
freshports.org/deskutils/py-khard - i assume it will turn up once 2025Q4 build is done
-
Hund
ohh
-
Hund
You can probably tell that I'm new to FreeBSD. ;)
-
Hund
And thanks!'
-
flatdog
:)
-
angry_vincent
ivy: i have now packages built. thx
-
angry_vincent
ivy: it was DISTDIR, indeed, unbeknowst it interferring between ports and base
-
angry_vincent
no i have release issue. i did in /usr/src/release make -DNOPORTS -DNODOC -DKERNCONF="GENERIC" release
-
angry_vincent
-
hugohagogo
Hello there, Is there any way to disable Linuxulator logging?
-
hugohagogo
sysctl compat.linux.debug=0
-
hugohagogo
compat.linux.debug: 3 -> 0
-
hugohagogo
isn't?
-
rtprio
sysctl -d compat.linux.debug and find out
-
hugohagogo
rtprio: Yeah, I just discovered and applied above
-
hugohagogo
rtprio: Anyway, thank you very much
-
dvl
With a bourne shell, how I can test that the first part of a string matches something? e.g. if [ "14" ~= "$jail" ] - meaning jail starts with 14
-
wavefunction
-
dvl
wavefunction: The first one doesn't mention bourne, but I recognize some of the stuff they talk about. the second one is probably not bourne.
-
kevans
dvl: I usually throw the sucker in a `case` statement, though I don't know where that's the most effective method or not
-
kevans
case "$jail" in 14*) whatever;; *) ;; esac
-
dvl
kevans: Yeah, case is what I'm going with.
-
wavefunction
bourne shell is posix - to which they suggest "use a case statement"
-
llua
bourne shell is not posix shell