-
mns
Tenkawa: /38
-
mns
oops
-
mns
multitasking :(
-
Tenkawa
Haahaa np..
-
Tenkawa
I'm trying to track down a mystery kerberos library hiccup
-
worldhacker
hi all i am God Husband and The Eathquake guy Nice to Meet you all ... . your president and prime minister too , How Life been citizen ... .
-
kerneldove
ai slop in irc now?
-
tuaris
-
ek
tuaris: That's a fine question. You'll likely get a more informative answer from the #FreeBSD-Ports channel.
-
duskgale
Hello. I have a question about setting up X with an Intel 945GM integrated graphics card. In particular, am I correct in the understanding that it requires the "legacy" Intel graphics?
-
duskgale
*driver
-
duskgale
Attempting to follow the instructions provided in the handbook yields X working with graphical errors upon loading.
-
duskgale
-
Remilia
-
Remilia
0 root -8 - 0B 3056K CPU5 5 87.8H 96.21% kernel{arc_prune}
-
kerneldove
anyone have a rough idea of how much resource overhead jails add? like i'm wondering if 5k tiny server processes would take much more if each server process was in its own jail with access to its own port of the main system's ip
-
Remilia
jails are funky chroots
-
Remilia
if you are not doing VNET there's almost no overhead
-
duskgale
Also, is MATE (fisrt time using — decided to check out) supposed to take a bit to actually load my background image?
-
duskgale
I'd guess that using an almost 20 year old system could be a factor, but it may also be normal. Wouldn't know.
-
Remilia
duskgale: with an SSD it *should* be fine? SATA is older than 20 years after all
-
duskgale
>With an SSD
-
duskgale
No SSD in sight.
-
Remilia
how large is the image then
-
duskgale
I've an 120GB HDD running amd64-stable.
-
Remilia
120 GB is closer to 25 years old than 20
-
Remilia
it probably cannot do more than 100-120 MB/s linear
-
duskgale
So, it's just my drive being slow?
-
Remilia
if your background image is 10 MB+ and fragmented, yeah
-
Remilia
you'd hit IOPS
-
Remilia
especially as you are starting your DE which means lots of other stuff doing disk reads?
-
duskgale
It happens even with default ones. I'll check I/O stats later, but the computer does start lagging tremendously on big amounts of disk writes.
-
Remilia
duskgale: remember that with spinning rust and random read/write operations your IOPS drops down to double digits
-
Remilia
compared to thousands for SSDs
-
duskgale
When I was building large programs from source a few hours in my WM would be barely responsive
-
Remilia
also check smartctl output because I would not trust 120 GB spinning rust in 2025
-
Remilia
especially if it is Seagate, WD, or Samsung
-
Remilia
Hitachi should be fine
-
Remilia
though I guess it was still IBM then?
-
kerneldove
do vnet jails add enough overhead that running a network intensive server (nginx) in a jail is prohibitive?
-
Remilia
kerneldove: not in my experience
-
kerneldove
know how much cpu overhead it would add?
-
kerneldove
is it like .1% or like 3% or?
-
Remilia
kerneldove: for reference I am running Apache in one jail and PHP-FPM in another, and requests go haproxy -> varnish jail -> apache jail -> php jail
-
Remilia
I do not really see much overhead but I did not compare it to not running in jails
-
kerneldove
would be great to find some comparison benchmarks
-
Remilia
epair_task stays under 2%
-
duskgale
It's the HDD that was presumably originally shipped with the machine. I got it with Windows, and I'm fairly sure I ran CDI to check how it's doing.
-
duskgale
Unless I'm misremembering, it came out with good results.
-
duskgale
I'll run some tests later. You're probably right, though.
-
Remilia
duskgale: does `egrep '^(ad|ada).:' /var/run/dmesg.boot` give you a model?
-
duskgale
Hold on.
-
duskgale
It's a WD drive.
-
duskgale
-
duskgale
This one.
-
kerneldove
is there a command that returns how many subdirs it has in it or 0 if none?
-
kerneldove
subdirs a dir has
-
Remilia
oh no a netsplat
-
Remilia
kerneldove: `find <path> -type d | wc -l` is an option
-
kerneldove
i went with ls -l . | grep ^d | wc -l, is either better than the other?
-
Remilia
that's wow
-
Remilia
I wouldn't haha
-
kerneldove
?
-
Remilia
using grep for this is weird to me
-
Remilia
the one downside of find in my example is it will list the path itself too
-
kerneldove
i just want the count
-
Remilia
not sure what you mean
-
kerneldove
you said it lists the path itself
-
Remilia
yes, the number is +1
-
Remilia
so `find /tmp -mindepth 1 -maxdepth 1 -type d | wc -l` would give the number of subdirectories without recursion
-
Remilia
and without counting itself
-
Remilia
mindepth 1 removes that self entry
-
kerneldove
ah ok that 1 will work ty
-
Remilia
it should also be faster than using grep
-
kerneldove
ok what about this, how can i count up the number of files in any dir named "foo" under "somepath"?
-
Remilia
kerneldove: have you tried using find
-
kerneldove
i tried 2 times. 1. find . -type d -name foo -exec find {} -type f | wc -l. 2. find . -type d -name foo -exec sh -c 'find "$0" -maxdepth 1 -type f | wc -l' {}. but neither worked
-
duskgale
Why do you have "-name foo" there?
-
kerneldove
i only wanna count files in dirs named foo
-
duskgale
Makes sense.
-
Remilia
you could chain with xargs probably
-
Remilia
you can pass multiple paths to find
-
Remilia
duckworld: actually maybe something like... find `find path -type d -name foo` -type f -maxdepth 1
-
nimaje
(why use the deprecated barely noticable `…` syntax instead of $(…)?)
-
kerneldove
i got something working but not sure if it's totally right: find . -path '*/foo/*' -type f | wc -l
-
kerneldove
find . -path '*/foo/*' -type f -printf . | wc -c works on linux but on freebsd it says find: -printf: unknown primary or operator \n 0
-
kerneldove
yay! find . -path '*/foo/*' -type f -exec printf %.s. {} + | wc -c works on linux AND freebsd
-
nimaje
instead of spawning many printf processes find . -path '*/foo/*' -type f -print0 | tr -dc '\0' | wc -c is probably better (use NUL as terminator, delete anything else and then count the number of NUL bytes
-
kerneldove
that seems even better nimaje. it works on freebsd and linux too
-
kerneldove
tyvm
-
kerneldove
comment from #bash: it won't spawn printf for every single pathname traversed but that method might end up being faster. however, you must specify LC_ALL=C tr -dc '\0', otherwise some implementations of tr(1) will try to decode according to the effective ctype (probably UTF-8) and fail with EILSEQ.
-
kerneldove
pathname components may contain arbitrary bytes (other than NUL and /), so one must allow for it.
-
kerneldove
what do you think nimaje?
-
kerneldove
fwiw it works on freebsd and linux too
-
nimaje
yeah, that LC_ALL=C tr … should make it more robust and yes, the -exec printf %.s. {} + will not spawn printf for every path, but it will spawn an unknown number (bounded by the number of paths) of printf processes, so 'many', why the tr way spawns statically knowable exactly three processes (and that was my point)
-
kerneldove
ok ty!
-
Remilia
nimaje: because it is hard to teach new tricks to an old pony
-
Remilia
I always go like 'but $() won't work in my IRIX machine's default shell'
-
kerneldove
anyone have recent benchmarkings/numbers on how much overhead jails add? less than 1% or?
-
llua
that is a weird question
-
hodapp
and any overhead is going to be really specific to operations, it's not just gonna be a flat "< 1%"
-
llua
does other container implementations add overhead?
-
hodapp
e.g. if you're using Docker with a lot of layers, I think that can add overhead
-
llua
so usual linux being crap stuff
-
hodapp
more Docker being crap. if the same concept were implemented anyplace else, it'd be similarly problematic
-
voy4g3r2
or the position could be.. is it more efficient "virtualize" an environment or buy a whole new set of equipment?
-
hodapp
for the sorts of things containers are used for, it's almost always for where new equipment would just be silly
-
voy4g3r2
yes, it is valid question to ask.. what is the "overhead" with a follow-up of.. what are you trying to accomplish? and is the virtualization of your environments warrant going forward with analysis. but to each their own.
-
ivy
kevans: what do you think about an IFF_L2ONLY flag (or maybe a cap makes more sense) that prevents L3 addresses being assigned to an interface? i'd mostly like this for bridge but i wonder if there are other places it's useful
-
Tenkawa
Anyone run into this before?
-
Tenkawa
ld-elf.so.1: Shared object "libprivateheimipcc.so.11" not found, required by "libkrb5.so.11"
-
Tenkawa
I can't find any references to libprivateheimipcc out there..
-
ivy
Tenkawa: are you on main? if you updated past c7da9fb90b0b you must do a clean build (delete objdir)
-
Tenkawa
I "think" I did.. but I'll wipe it and try again
-
Tenkawa
Thanks for the pointer
-
ivy
you also need to rebuild all ports, in case that error came from a port, i'm not sure if the builders have updated yet or not
-
ivy
(well not all ports, all ports that use base kerberos)
-
Tenkawa
It was from a pkg... I have no ports on this boxz
-
Tenkawa
s/boxz/box
-
ivy
well same thing, if you're installing ports from packages the packages need to be rebuilt
-
Tenkawa
I wonder if I might have to switch them to ports due to that
-
Tenkawa
yeah
-
ivy
alternatively you can build src with WITHOUT_MITKRB5, but if you're using pkg.f.o packages, that will break again once the builders update
-
Tenkawa
Honestly I'd prefer not to have KRB at all...
-
Tenkawa
yeah... I was worried about that..
-
Tenkawa
I just found an arm64 board that works great and I'm trying to tune it.... thats when I started discovering these things
-
kevans
ivy: it seems like like a flag would be a better fit, unless you're suggesting an (inverted from your flag sense) L3 capability that you have to add on probably in a few places
-
kevans
?
-
ivy
kevans: an L3 capability might make more sense but also feels more invasive.. the idea was the bridge would set L2ONLY when you add a member interface
-
kevans
right, an L2ONLY capability would be kind of weird since you can traditionally disable caps via ioctl, but you'd want this to be immutable as long as it's still in
-
kevans
you can change flags, too, but we already have the notion of IFF_CANTCHANGE
-
ivy
an alternative would be to have per-AF caps (or some similar system) so an interface has to indicate it supports inet and/or inet6... for example that means you could prevent wg interfaces from having OSI addresses configured on them (not that we support OSI, but...)
-
kevans
i'd bring it up to -network@ folks
-
kevans
sometimes they respond if you write something egregiously bad enough, which may be your indicator
-
kevans
(sometimes they don't respond at all)
-
kevans
er, -net, sorry
-
dacav
Hi. I just had this peculiar error message from pkg: `pkg: An error occurred while fetching package: No error
-
dacav
The easy guess is that time was out of sync, given that it is a VM and it was suspended
-
dacav
so I actually fixed it with `ntpd -qg`
-
dacav
Anyway, the error message is somewhat misleading. Should I flie a bug report?
-
Tenkawa
ivy: interesting.. after rebuilding and still having the problem I ended up verbose truss tracing the problem and curl ended up being being the root issue..
-
CrtxReavr
It doesn't hurt ot file a bug. . . though I'm not sure it's right to say the error message was misleading. . .
-
CrtxReavr
I mean, did it explicitly tell you your system time was off? No.
-
dacav
No, it did not. I guessed it
-
dacav
Well, not misleading, but incorrect
-
CrtxReavr
For all it knew, the server's time was off - point was, there was an unacceptable delta between them.
-
ivy
CrtxReavr: since there was an error, it should obviously not say "No error"... i believe there's already an open bug about this, it seems to happen with any TLS failure
-
CrtxReavr
ivy, that I'd agree with.
-
dacav
Something like "SSL kaboom" would have put me in the right direction, let's say
-
ivy
(basically, it's not reporting the error from openssl properly)
-
dacav
Oh, if there's already some error, I guess it's OK :)
-
dacav
s/error/bug report/
-
CrtxReavr
dacav, what does this return?: openssl s_client -connect <server>:<port>
-
dacav
Oh, late, sorry
-
CrtxReavr
Well. . . now you've corrected your time.
-
dacav
well, I can try to restore the snapshot, and the time will be off again!
-
dacav
Hold on
-
CrtxReavr
I used to run labs use to develop and test NAS devices. .
-
CrtxReavr
I got a request from the testers for an NTP server that would be very wrong.
-
CrtxReavr
It took more effort to setup time I would guessed.
-
rtprio
haha, yes, i suppose it would
-
ivy
-
rtprio
how did you end up doing that
-
ivy
but i've definitely seen it with non-static pkg as well
-
dacav
verify error:num=9:certificate is not yet valid
-
dacav
that's great, ivy. Thanks
-
Tenkawa
interesting libcurl is where my break was with that unrelated other library problem I ws just working on...
-
rtprio
i think i saw that 'no error' when dns was working but my default router was not
-
CrtxReavr
rtprio, it's been. . . a scary long time ago. . . but I deployed a FreeBSD VM. . . and I think it involved both setting the time arbitrarily wrong, but also setting a runtime option for ntpd to not sanity check itself on launch.
-
CrtxReavr
It did work though though. . . the testers could ssh in, set an arbitrary system time and restart ntpd, and it would serve the wrongly set time.
-
rtprio
CrtxReavr: i had a system where freebsd picked the wrong timecounter, and ended up gaining a minute for every minute
-
CrtxReavr
So they were able to test the ntp client on our NAS devices.
-
CrtxReavr
I did a lot of crazy shit with FreeBSD in that job.
-
CrtxReavr
One of the cooler things was doing "WAN emuation."
-
CrtxReavr
I used a FreeBSD box as a router, and the testers were able to introduce arbitray levels of bandwidthy, latency, and a precentage of packet loss.
-
CrtxReavr
So they could test remote filesystem mirroring on a "WAN" connection that was literally in the same cabinet.
-
CrtxReavr
Used ipfw & dummynet for that trick.
-
CrtxReavr
The "magic sauce" on that config was that that the settings for the ques were applied both inbound and outbound, so you had to actually cut the desired values in half, since they'd be applied twice.
-
CrtxReavr
queues
-
Remilia
arc_prune eating 100% of a core was unexpected
-
Remilia
wish I was on 13.something so it could be fixed with an update but no, 14.3, and the code matches the patch
-
» CrtxReavr happily runs 13.x.
-
CrtxReavr
I encounter enough whacky issues with apps, networks, and my own sketchy code. . . I don't need issues with my OS as well.
-
CrtxReavr
It's been so rare that I've been excited about a new OS feature on FreeBSD.
-
Remilia
thank you for your input
-
ivy
i wrote a bit about the new bridge stuff in 15.0:
people.freebsd.org/~ivy/bridge_vlan_filtering.txt (mostly while we're waiting for the manpage to be updated...)
-
Tenkawa
Is there a good tutorial out there for migrating a zfs os drive to another drive? Now that I am more confident this system is going to run well I want to move it to a better performing drive.
-
Tenkawa
I have a second NVMe drive already connected via PCie if it is possible via oniine mirror/detach method.
-
rtprio
Tenkawa: man zpool-add
-
Tenkawa
Thanks
-
rtprio
if it's the same size
-
Tenkawa
unfortunately its not.. its a few gb smaller... making this a bit ... problematic
-
ivy
no, don't use zpool add for this! you want zpool *attach*
-
SarahMalik
... ope
-
Tenkawa
That does look more adaptable
-
ivy
(well, i suppose you could zpool add the new device then zpool remove the old one, if you're on a recent enough version, but this leaves a bunch of bookkeeping data around)
-
kerneldove
llua i didn't ask if jails added overhead, i asked how much. so no it wasn't a weird question you just misconstrued it as weird
-
kerneldove
and for type of workload, lots of network traffic. so imagine a webserver in a jail
-
llua
it wasn't miscontrued
-
llua
i just asked a question in response
-
voy4g3r2
anyone here by chance play around with jitsi, that is available in ports?
-
voy4g3r2
kerneldove: may i could ask in a different way.. do you have a cohort (user group/count) that is expected to use service? say 100 concurrent users? 1000? 2000?
-
kerneldove
a couple thousand active udp peers
-
voy4g3r2
using nginx or apahce?
-
kerneldove
ya that's the kinda example i use
-
kerneldove
voy4g3r2 ^