-
kevans
lw: I think that's the main goal of some WIP by markj:
github.com/markjdb/bricoler
-
VimDiesel
Title: GitHub - markjdb/bricoler
-
mage
hello, I'm using unbound as a local resolver here with some static zone. Is there a way when I'm creating a jail to automatically register it's DNS name without having to modify the unbound file?
-
sfox
mage unfortunately not that i know of
-
sfox
the hostname is had by dhcp and with ipv6 you don't really want dhcp
-
sfox
the good news is that since your working with jails you can create a custom script to extract the internal ip of each jail and update your zone file
-
sfox
if you do this let me know, i'd like a copy of the script too
-
rtprio
why is that necessary?
-
lw
mage: yes, you can do that with dynamic DNS updates - except i'm not sure if that works with unbound, since it's not intended to be an authoritative server; bind or knot might work better
-
lw
although it would probably be easier to just do this once rather than configure ddns, unless you're creating a lot of new jails
-
Soni
compiling freebsd over ssh, yay or nay
-
Soni
actually is there a way to speed this up, we'll be doing this a lot...
-
Soni
presumably meta mode should help
-
dstolfa
Soni: over ssh or sshfs
-
Soni
dstolfa: over ssh, we're not *that* masochistic
-
dstolfa
Soni: why would that not work? people ssh into build machines for freebsd all the time
-
dstolfa
you just ssh in, fire up something like tmux and kick off a build
-
lw
just run the build in tmux in case your ssh connection dies. and yes, use meta mode
-
Soni
because we're not using tmux
-
dstolfa
well, if your connection is stable it doesn't matter
-
Soni
tho, to be fair, mosh -> ssh -> vm is probably fine
-
dstolfa
alternatively you can probably hack something up with nohup
-
Soni
is "running on the same machine" stable enough?
-
dstolfa
unless you plan on killing the connectivity from the vm to the host or vice-versa, probably :P
-
Soni
alright, btw, when rebuilding libc...
-
Soni
is there a way to avoid rebuilding everything?
-
dstolfa
-DNO_CLEAN, WITH_META_MODE, ccache for the most part
-
dstolfa
beware of edge cases and all that
-
Soni
(did we pick the worst project)
-
lw
i recommend not using NO_CLEAN if you're using meta mode, it's not really necessary and it does break things sometimes
-
lw
(basically the point of meta mode was to make NO_CLEAN unnecessary)
-
dstolfa
all 3 of those break in some edge cases, so just generally beware
-
lw
also check the various WITHOUT_* options in src.conf (if you're not using pkgbase) as not building things you don't need can improve build time a bit
-
meena
best build time improvement: Not building LLVM, but that might building things more difficult.
-
lw
meena: how do you do that
-
meena
lw: i'm not sure it's possible lol
-
lw
i'm annoyed at having to build 20 identical copies of llvm for every src tree, ccache doesn't even seem to help with this
-
lw
oh
-
lw
zroot/src 169G 475G 61.3G /src
-
angry_vincent
to not build llvm - WITHOUT_TOOLCHAIN
-
dstolfa
the system's not terribly usable if you do that, however
-
dstolfa
it's useful for some deployments but i think you'll struggle on a regular server/desktop
-
angry_vincent
it will be bad if you do delete-old and delete-old-libs after that, yes
-
Soni
noted
-
mage
lw: thanks, I'll look into dynamic dns updates
-
mage
(the use case is Gitlab CI/CD which creates jails on the fly when a push/merge is made)
-
lw
i'm not sure if you're using DHCP for this (someone else mentioned it?) but if you are, most DHCP servers can do this for you
-
mage
yes, I'm still using ISC DHCPD
-
mage
but I was wondering on the unbound side
-
lw
i'm fairly sure unbound can't do this, you need a real authoritative server for the zone. but you could run both on one host and have unbound forward queries
-
mage
does NSD supports this?
-
lw
i don't think nsd can do dynamic dns
-
lw
it seems like there are some third-party options that can update the zone file on disk in response to dynamic updates so nsd can reload it
-
lw
(in that case, you could also keep using unbound...)
-
mage
yeah..
-
mage
I'm using Saltstack under the hood so maybe I could just add this to my orchestration script
-
mage
thanks
-
lw
i have never used this and know nothing about it but:
rubygems.org/gems/dyndnsd/versions/3.8.0
-
VimDiesel
Title: dyndnsd | RubyGems.org | your community gem host
-
lw
oh wait, i think this is a client, never mind
-
» lw builds another copy of llvm
-
meena
the fun never ends
-
lw
there should be a video game in 'make buildworld' where you have to complete a level to build the next directory, that would make it more fun
-
meena
good grief
-
Soni
does modifying libc require rebuilding llvm?
-
lw
no
-
lw
assuming you already built llvm once for the initial build
-
lw
ugh, i wanted to stop FreeBSD-utilities from depending on FreeBSD-zfs, but fstyp(8) needs libzfs_core...
-
phryk
i recently started using bhyve-vm and set up a windows 10 vm with "cpu=8" in the config file, but it only shows me and uses 2 threads, anyone got an idea what's up with that?
-
Dooshki
phryk: I'm not too familiar with bhyve, but does the "cpu=8" parameter specify the amount of CPU sockets? Because due to licensing, Windows will limit itself to a certain amount of sockets, depending on the edition you have, but if you configure to instead give it cores instead, it will use all of them
-
Dooshki
(as in, one CPU socket, 8 cores)
-
phryk
Dooshki: sample.config says "# specify the number of cpu cores to give to the guest" about this parameter
-
phryk
also let me look at the activation status, i think that might actually be it.
-
CrtxReavr
Workstation versions of Windows have only ever supported a max of two sockets.
-
CrtxReavr
And four for server versions, without custom HALs.
-
lw
git add -i must be the least intuitive command line interface ever created
-
lw
i don't know if drm-kmod, sway, or the kernel scheduler is at fault here but i'm a really annoying issue where sometimes if i'm building something (e.g. make -j12 buildworld) my cursor starts moving really slowly and the desktop becomes unusable
-
CrtxReavr
I have a box where 'pkg update' says it's updating the repo catalog and that everything is up to date. . . but there's no way it can be.
-
CrtxReavr
There some forced check or setting I can poke at?
-
lw
CrtxReavr: if pkg says it's up to date it's up to date, it doesn't randomly hold back updates - are you sure you're using the right repository?
-
CrtxReavr
lw, No. . . I'm not.
-
CrtxReavr
-
lw
i will look at your url in a sec but i can't move my mouse due above issue...
-
CrtxReavr
-
lw
CrtxReavr: why do you think there should be updates?
-
CrtxReavr
'cause it hasn't been updated in a "coon's age."
-
lw
CrtxReavr: one thing you can try is replace pkg+http:// with http:// in /etc/pkg/FreeBSD.conf -- you might have landed on an out of date mirror
-
lw
wait, no
-
lw
-
VimDiesel
Title: pkg0.nyi.FreeBSD.org
-
lw
that's the master mirror
-
CrtxReavr
And that gets set wher?
-
CrtxReavr
where
-
lw
/etc/pkg/FreeBSD.conf
-
lw
you're meant to copy that to a new file in /usr/local/share/pkg/repos to edit but you can just edit in-place for testing
-
CrtxReavr
url: "pkg+http://pkg0.nyi.freebsd.org/${ABI}/quarterly",
-
CrtxReavr
Like that/
-
CrtxReavr
?
-
lw
use http:// not pkg+http://
-
lw
pkg+http:// is for automatic mirror selection using SRV records, but you want to force it to use that mirror
-
CrtxReavr
Okay, now it's doing something. . .
-
CrtxReavr
Hmmmm - okay, not quite.
-
lw
this is giving me flashbacks to when i used to run a cvsup mirror
-
CrtxReavr
-
VimDiesel
Title: View paste G2KA
-
CrtxReavr
Remember when the billionth second broke cvsup?
-
CrtxReavr
That was such a huge pain in the ass.
-
CrtxReavr
Y2K had nothing on the billionth second.
-
lw
are you really sure there are meant to be updates? like, take a random package and look it up on freshports and see what the latest version for FreeBSD:13:amd64 is
-
meena
CrtxReavr: what's your config look like rn?
-
CrtxReavr
What about that SRV record error?
-
lw
oh, that's because of mirror_type
-
lw
i don't think that makes a difference but you can try... (one sec)
-
CrtxReavr
-
lw
CrtxReavr: just comment out mirror_type in FreeBSD.conf
-
lw
that should fix the SRV thing
-
meena
what lw said
-
CrtxReavr
Okay. . . it's gone. . . still no updates. . .
-
lw
CrtxReavr: show 'pkg info'?
-
CrtxReavr
How about 'pkg version'?:
termbin.com/01tv
-
CrtxReavr
I mean, I can do 'pkg info' but that's prolly less helpful.
-
lw
that works too
-
lw
oh qutebrowser crashed
-
lw
CrtxReavr: just checking a couple of packages (python39, curl) it seems like you might just not have updates
-
CrtxReavr
Yeah. . . wierd. . . but yeah.
-
CrtxReavr
Thanks though.
-
lw
although it's odd that FreeBSD:13:amd64 quarterly has curl 8.6.0 while 14 has 8.7.1
-
lw
maybe the 13 builder is lagging a bit?
-
lw
ah wait, didn't a new quarterly just come out, it might be busy building that
-
lw
8.7.1 went into quarterly on april 1 though
-
lw
i wish pkg-status.freebsd.org was less awful
-
lw
this is why i would never use pkg.freebsd.org packages, fwiw. the builds take so long you can be weeks out of date on security updates, especially on some architectures
-
markmcb
is this a money for servers problem? why does it lag so much?
-
lw
markmcb: imo it's more of a ports infrastructure problem... or maybe a poudriere problem. there's a fix landing in poudriere soon that will significantly reduce the number of packages to be rebuilt when a dependency changes, which should help a lot with this
-
markmcb
ah that's good news
-
lw
i'm not even sure if pkg.freebsd.org uses incremental builds (as opposed to just rebuilding the entire thing every time) but i assume they do
-
lw
(i say 'fix' but aiui that patch has been in development about two years, it's pretty complicated to fix)
-
alepzi
why can jail.conf have just vnet; and work? man jail says its values are inherit and new so it should be vnet = new; no?
-
lw
alepzi: because the manpage is wrong, you should submit a patch
-
alepzi
when would a jail admin wanna be able to read kernel message buffer?
-
lw
alepzi: some interesting messages only go to kern msgbuf
-
lw
like: someone else is using my ip address on <interface>
-
lw
or arp: <ip> moved from <mac> to <mac>
-
lw
or <intf> link state changed to <UP|DOWN> (although that's probably uncommon in jails)
-
lw
or messages from programs that exit due signals
-
lw
or various NFS errors (i think NFS can run in jail now, although maybe only the server part)
-
alepzi
is that /var/log/messages?
-
lw
it does end up in /var/log/messages but only because syslogd can read it from kernel msgbuf
-
lw
i think
-
lw
actually not 100% sure there
-
alepzi
how do i use "depend" in a jail conf? i tried to put depend = "testjail"; in the conf of testjail2 but service jail start says cannot start testjail2 depends on undefined jail "testjail"
-
lw
are you using /etc/jail.d?
-
lw
jail.conf.d, whatever it's called
-
alepzi
each jail has a file in /etc/jail.conf.d/
-
alepzi
like testjail.conf, testjail2.conf
-
lw
yeah that doesn't work depend, there's a PR for it
-
alepzi
damn
-
lw
either stop using depend or put them all in jail.conf
-
lw
fwiw, i don't like depend and don't think it works well
-
alepzi
why not?
-
lw
just because a jail is started doesn't mean its services are available
-
lw
better to make each jail able to start individually, perhaps with some extra rc sripts if needed
-
lw
e.g. my KDC jails have an rc.d script to wait for LDAP to become available because otherwise the KDC doesn't start (this is a KDC bug really, but...)
-
alepzi
nice
-
alepzi
i noticed the handbook has you set up a jail so its console output goes into a file on the jail host. why not have it go into the jail's /var/log like a normal system?
-
lw
the handbook can't consider every possible configuration someone might want, if you want the console log in the jail, just configure it like that
-
alepzi
just read all of man jail
-
» alepzi flexes
-
jbo
lw, I enabled EXPO, it's building even faster now ^^
-
lw
jbo: the fuck's an expo
-
jbo
AMD's version of XMP
-
lw
ah
-
lw
is that different from AMP?
-
jbo
dunno, first time doing AMD stuff
-
jbo
everything is different for me atm :p
-
lw
i think my AM4 board just does XMP but that's pretty old, it's probably changed since then
-
jbo
I am trying to figure out why the CPU has so few clock freqs
-
jbo
dev.cpu.0.freq_levels: 4200/5040 2200/1540 1500/975
-
lw
jbo: a little birdy (diizzy) told me Zen 4 support is bad and doesn't work properly, how are you finding it?
-
jbo
is that normal in team red land?
-
lw
not sure about your fancy TR but my Ryzen has only 3 also: dev.cpu.0.freq_levels: 3400/3740 2800/2800 2200/1980
-
jbo
lw, I can't speak for that yet. I setup the box a few days ago and only since today I am actually using it as a desktop/workstation.
-
lw
interesting yours go down to 1500, i wish the 2700X in my server did that
-
jbo
if you keep using that language I'm gonna ship a TR your way just to make it staph
-
lw
no stepping between 2.2GHz and 4.2GHz is a bit weird though
-
jbo
I was surprised to see those freqs. form Intel I'm used to seeing more freqs. sometimes the CPU would just clock around 650 MHz or something :D
-
jbo
yeah
-
lw
maybe this is what diizzy meant?
-
jbo
dunno, diizzy is just jelly
-
lw
like i wonder if they switched to a new API or something and this is the old API
-
jbo
I hope to find all of this out soon (tm)
-
jbo
-
VimDiesel
Title: 278311 – amdtemp: Does not recognize AMD Threadripper 7960X
-
lw
i saw that commit in my inbox and though, oh jbo has one of those, oh it was jbo who reported the bug
-
lw
you are the only freebsd 7960X apparently, congrats
-
jbo
don't thank me, thank $employer
-
jbo
maybe I should start doing something useful with it soon
-
lw
i can send my ssh public key, let me know
-
jbo
lw, would it help src people if I send experience summary to the ML or something like that? or is that considered noise?
-
lw
jbo: i don't consider myself 'src people' but i think reporting hardware experiences is useless in general, someone might be searching for it later
-
lw
i'm not exactly sure what is the best list for that though
-
lw
uhhh
-
lw
i mean it's USEFUL, not useless
-
lw
damned keyboard
-
lw
maybe amd64@
-
jbo
lol'd - I am/was genuienly confused now
-
lw
let me try that again
-
jbo
did you learn how to paste yet?
-
lw
jbo: yes you should send it to the list because it's useful info for people who will be searching for experiences with this cpu on freebsd
-
lw
jbo: i keep leaving these glasses of whiskey next to my keyboard and mouse and they start behaving weirdly and not typing/pasting properly, i don't know why it keeps happening
-
lw
did you know there's an entire mailing list for Enlightenment on FreeBSD? the 3 people still using Enlightenment must be having a great time there
-
lw
also, freebsd-women@, has not had a post since 2022, that's probably a sad reflection on something
-
lw
amd64@ seems pretty dead too, i was complaining yesterday there are far too many mailing lists
-
lw
hardware@, had 21 posts in the whole of 2023
-
lw
jbo: so in summary, yes you should mail the list, but as to what list, your guess is as good as mine
-
jbo
lw, got some whiskey right now o/
-
jbo
ack
-
lw
maybe just mail -current, assuming you're running 15.0 as god intended
-
lw
(god = kirk mckusick)
-
jbo
lw, is there a way in C++20, to convert a constexpr integer to a hex string_view representation during compile time?
-
jbo
I am _not_ running -current
-
jbo
lw, also, are you running powerdxx on your AMD machines?
-
lw
no, i use the normal powerd on both amd64 and arm64
-
lw
and i do not know about constexpr but maybe check if std::to_string is constexpr (i suspect not)
-
jbo
because reasons?
-
lw
because... it's what's in base and it seemed to work fine
-
jbo
wasn't powerdxx supposed to be "better"?
-
lw
what does powerdxx do better?
-
jbo
aye
-
jbo
lw, can you explaine those freqs to me?
-
jbo
it seems to be three pairs
-
jbo
what are the two number?
-
lw
-
jbo
base/boost? but then why is the magnitude/order different?
-
lw
jbo: first number is cpu speed (MHz), second number is supposed to be power consumption (mW) but i'm extremely dubious about its accuracy in general
-
lw
also not clear if that's mW per core or total for the package
-
jbo
well doing a stress -c 48 results in 560W power draw (of the entire machine/box).
-
jbo
nvidia-smi says 40W
-
jbo
that is with stock settings, no OC
-
Soni
why did we think it was a good idea to start the build from our phone, now we can't reboot our phone until the build finishes
-
lw
i'm pretty sure someone suggested using tmux. oh yeah, that was me
-
Soni
yeah well; it's building libclang now
-
Soni
oh right we have our cpu scaling set to powersave
-
Soni
we could probably have been done already but instead we were running it at half the speed
-
lw
jbo: remember when you told me there are 4,000 src committers? i have reliable information that this is fake news
-
lw
finally got around to fixing my alc(4) issue
llfw/freebsd-src ec630c5
-
VimDiesel
Title: alc(4): disable MSI-X by default on Killer cards · llfw/freebsd-src@ec630c5 · GitHub
-
lw
don't even use that card anymore (it's crap) but it annoyed me enough at the time that i thought i should do something about it
-
lw
ok now what
-
lw
i did a pkg upgrade and my sway status bar vanished
-
jbo
I have questions
-
jbo
who would like to answer some questions?
-
lw
jbo: no one
-
lw
questions are bad
-
jbo
:<<<<<<<
-
lw
you will accept what we tell you
-
jbo
not sure whether I understand poudriere.conf BASEFS=
-
realdeimos
-
VimDiesel
Title: Don't ask to ask, just ask
-
jbo
I set ZROOTFS=/ssd0/poudriere where ssd0/poudriere is a dataset
-
jbo
so I guess I want to set BASEFS=/ssd0/poudriere ?
-
lw
no
-
lw
ZPOOL=ssd0
-
lw
ZROOTFS=/poudriere
-
lw
BASEFS=/poudriere
-
jbo
that... makes sense
-
jbo
thanks <3
-
lw
but create the zfs before you run poudriere: zfs create -o mountpoint=/poudriere ssd0/poudriere
-
jbo
wait... why the mountpoint?
-
jbo
is there something wrong with just mounting it under /ssd0/poudriere?
-
lw
no but then you have to set $ZROOTFS and $BASEFS to /ssd0/poudriere and i think it gets complicated
-
lw
one of those is reletive to $ZPOOL and i think the other isn't, can't remember which
-
jbo
yeah so I just did what you said but without mountpoint= and it still dropped the jail in /usr/local/poudriere/jails
-
jbo
must be AMD's fault
-
lw
are you sure it actually did that, it's a bit confusing
-
lw
it'll create filesystems in /poudriere then mount them in /usr/local/poudriere
-
jbo
wat
-
jbo
zfs list
-
jbo
ssd0/poudriere/jails 1.70G 898G 96K /ssd0/poudriere/jails
-
jbo
ssd0/poudriere/jails/140Ramd64 1.70G 898G 1.70G /poudriere/jails/140Ramd64
-
jbo
lw, it actually seems to set mountpoint= automatically then?
-
lw
yes exactly, that's what it does
-
lw
although, wait, maybe not
-
lw
i think one of those options tells it where to create the filesystems and the other says where to mount them
-
lw
but i can't remember which is which
-
jbo
now we get back to why I asked
-
lw
but like, just put them on /poudriere, it works
-
lw
ugh i need to find a new window manager
-
» jbo recommends x11-wm/bspwm
-
lw
what do people use on wayland, hyprland? apparently some freebsd people wrote that?
-
jbo
on wayland I once used hikari
-
jbo
worked nicely
-
lw
oh, hikari, that's what i was thinking of
-
jbo
lw, how can I confirm under FreeBSD that the TR is actually doing the boost freq thingy?
-
jbo
it's always reporting 4.2 max
-
lw
i don't think freebsd has any way to monitor that
-
lw
i'm not even sure it's exposed to the OS at all
-
lw
trying to build hikari
-
lw
[main-amd64-main] [2024-04-17_00h54m00s] [balancing_pool] Queued: 231 Built: 0 Failed: 0 Skipped: 0 Ignored: 0 Fetched: 0 Tobuild: 231 Time: 00:00:24
-
lw
FUCKING PORTS
-
alepzi
that's good right?
-
» jbo throws a CPU at lw