-
adilix
hi all
-
angry_vincent
Hi.
-
drobban
any emacs/spacemacs experts in here. getting an error running emacs I cant understand why Im getting. would be awesome if someone knows how I can debug this.
-
polyex
how's 14 running?
-
la_mettrie
drobban: maybe try #emacs channel
-
nimaje
polyex: hm
freebsd.org/releases/14.0R/schedule so a third rc was needed, but seems like currently they expect no fourth, or do they only add the "ass needed" entry for rc3 and add more rcs when they are sure they are happening?
-
VimDiesel
Title: FreeBSD 14.0 Release Process | The FreeBSD Project
-
polyex
as needed sometimes
-
armin
drobban: don't ask to ask, just ask. and please ask in the appropriate place. your question doesn't seem to be freebsd specific in any way. there's also #spacemacs on libera.
-
emru
Hey, I was asking on Python channel but nobody answered. I have a problem with python3 and kqueue. I use multiprocessing and selector (defaults to kqueue) and receive an error. I use python 3.9.17 and FreeBSD 13.1. I also reproduced it on fresh installation of FreeBSD 13.2. Here is an example code with error message:
bpa.st/6KQA
-
VimDiesel
Title: View paste 6KQA
-
nimaje
what do you expect that code to do? seems like nonsence to me, as the selector doesn't have any file descriptors
-
emru
it's an example
-
emru
If I do the same without the process it works correctly, in this case - blocks
-
nimaje
hm, "The queue is not inherited by a child created with fork(2)." seems like you have to create the kqueue in the process
-
emru
I am creating kqueue in the child process, s/DefaultSelector/KqueueSelector/
-
nimaje
no, you are creating it in the constructor of Test, calling .start() creates the process and only what is in .run() is run in the child process
-
nimaje
the better form is to pass a callable to the target kwarg of Process, instead of subclassing Process
-
nimaje
(same with threads, pass callables, don't subclass, if you can avoid it)
-
emru
oh, thanks, I'll try it
-
emru
yep, seems that it's working
-
Hello71
or just in general, composition over inheritance
-
mmlj4
on Linux I can do useradd -m username, non-interactively. What's the way to do that on FreeBSD?
-
tmp_
I'd have to compare the manuals for details, but FreeBSD has adduser(8) which takes a similar syntax.
-
mmlj4
I look at the manual but failed to find it. Lemme read it again.
-
tmp_
Shortish comparison: Put the usernames in a userlist file and run: adduser -f userlist
-
tmp_
That'll create the new accounts using the defaults in /etc/adduser.conf
-
tmp_
Which includes creating the home directory by default.
-
babz
pw useradd
-
tmp_
Note that lines in the userlist file must contain ten ':' characters after the username. Add 'random' after the last ':' to have it set a random password.
-
tmp_
The adduser(8) command generally fills in empty fields between the ':' characters with defaults.
-
tmp_
Okay, yeah, I keep forgetting about 'pw useradd'. That'd be 'pw useradd -m username' for the case mmlj4 mentioned.
-
tmp_
With defaults in /etc/pw.conf
-
mmlj4
hmm...
-
mmlj4
so to get what I want on 13.2 I have to do: pw useradd username -m; chsh -s /usr/local/bin/bash username
-
mmlj4
thanks, I'd never heard of the pw command
-
scoobybejesus
pw adduser username -m -s /usr/local/bin/bash
-
scoobybejesus
one command
-
scoobybejesus
usually put -n before the username
-
scoobybejesus
so.. pw adduser -n username -m -s /usr/local/bin/bash
-
tmp_
pw(8) is relatively newish, adduser(8) dates back to 2.1. Which release first had pw(8)?
-
nimaje
hm, the HISTORY in the man page doesn't say :(
-
ek
I do know it's been part of FBSD for quite a long time, though.
-
babz
man.freebsd.org says 2.1.7.1
-
ek
Yeah. Definitely been around since the 90's at least.
-
tmp_
Huh, I missed the intro to it.
-
ek
I'd imagine there's people here that weren't even born when it was intro'd. :)
-
tmp_
Probably!
-
tmp_
I've been doing batch user adds since 1994....
-
babz
:D
-
ek
I believe the first FBSD version I used was 3.1. Good grief that makes me feel old now.
-
tmp_
... I got started on BSD 4.3 and Sys V R 3
-
ek
Eh, we're just babies. :P
-
jgh
you rang? Unix Edition 7, on an m68k. Swapping, not paging
-
ek
Nice! Must've been fun.
-
ZedHedTed
1995 baby here. definitely too young or nonexistent to remember it being intro'd.
-
echelon
why does the freebsd ami in aws take so long to initialize?
-
debdrup
echelon: Eh? Rather famously, they're supposed to be down to the ms-range, I thought.
-
debdrup
Oh, that was for Lambda specifically.
-
debdrup
So it's limited to FireCracker.
-
echelon
debdrup: i don't think you can run lambda on top of anything besides amazon linux
-
debdrup
echelon: Not sure I understand; Colin has definitely been doing work to speed FreeBSD up; latest tweet I can find mentions 25ms:
twitter.com/cperciva/status/1694867769177813269
-
VimDiesel
Title: Colin Percival on X: "@mfreeman451 Latest stats I've seen is around 75 ms, but those are from Firecracker performance testing and I don't know for certain if that's an apples-to-apples comparison against FreeBSD's 20 ms." / X
-
debdrup
twitter.com/cperciva/status/1715887733414212016 even his laptop boots quick (5 whole seconds!)
-
VimDiesel
Title: Colin Percival on X: "The FreeBSD 14 kernel takes about 5 seconds to boot on my laptop. Of that, about 1.5 seconds is ZFS running benchmarks on checksum algorithms. This seems slightly suboptimal." / X
-
echelon
debdrup: the vendor recommendation for instance type was t4g.micro, that's what i selected
-
debdrup
echelon: Right
-
debdrup
That's not the same thing as Firecracker, is it?
-
echelon
well, running it on a laptop isn't the same as running it on xen
-
debdrup
Sorry, I got no real idea about anything AWS/EC2.
-
echelon
np
-
debdrup
Xen is a lot closer to a laptop than Firecracker is, if I understand right.
-
echelon
i didn't bring up firecracker
-
debdrup
Right.
-
debdrup
Anyway, the point I was trying to make is that the head of the tree is significantly faster than the -RELEASEs that are out, and that a non-zero amount of those improvements have gone in before 14-STABLE was branched, so it should be in 14.0-RELEASE when that comes out.
-
debdrup
-
echelon
ok, cool.. looking forward to upgrade to it
-
VimDiesel
Title: FreeBSD 14.0 Release Process | The FreeBSD Project
-
echelon
nice
-
echelon
this is how long it takes me to ssh in and get a prompt
paste.ee/r/ObHJ5
-
» debdrup nods
-
debdrup
One of the big differences between the Firecracker thing and either virtualized hardware or physical hardware (which amounts to the same thing, with the exception of the actual block diagram differences), is the hardware initialization step.
-
debdrup
And the hierarchical nature of device enumeration means there's not a whole lot of speed-up to be had, from what I understand.
-
debdrup
If there's speed-up to be had, it may be in the indivdual device drivers, but that's one of the things Colin invented TSLOG for, as described here:
papers.freebsd.org/2018/bsdcan/perc…l-profiling_the_freebsd_kernel_boot
-
VimDiesel
Title: Profiling the FreeBSD kernel boot: From hammer_time to start_init :: FreeBSD Presentations and Papers
-
debdrup
Colin's been at this for over 5 years at this point, he takes it quite seriously :)
-
debdrup
I'll also add that _none_ of his work involves init(8). :P
-
debdrup
There's probably quite a bit of speed-up to be had there, but Colin's starting from the bottom, which if you ask me is the right methodology.
-
debdrup
Inventing a directed acyclic graph for rc(8), ie. written in Almquist shell, might be a big ask though?
-
V_PauAmma_V
Could tsort be coaxed into spitting one out?
-
Hello71
echelon: is linux much faster? iirc ec2 provisioning is just not that fast in general
-
Hello71
also as I understand the image needs to be fully copied on ebs before starting the instance, so you should compare to a similarly sized linux image, not, like, alpine or something
-
echelon
Hello71: i can understand provisioning might take a while, but there's no explanation for why ssh takes so long
-
echelon
after it's already online
-
rwp
echelon, I am entering this discussion late but ssh has at least two things that sometimes feels like it is taking a long time.
-
rwp
1) DNS lookup of the connecting client. 2) key verification.
-
rwp
Reverse DNS lookup for connecting clients is sometimes slow or times out. This is often most of the time consumed when I look at things.
-
rwp
And then with everyone moving to 4096 bit keys then working through the host key verification and then the client key verification can take a while depending upon CPU speed.
-
echelon
rwp: thanks, that was it ;)
-
rwp
Which? DNS? Or ssh key handling? Or both? :-)
-
echelon
i dunno why it's even logged by default, for better details in logs?
-
echelon
dns
-
rwp
People. They like to see names of things rather than a bunch of address numbers.
-
debdrup
V_PauAmma_V: I'm not sure I understand the question.
-
echelon
why are there both /usr/local/etc/ipsec.* and /usr/local/etc/*swan* files/directories as a part of strongswan?
-
echelon
how do i decide which one i'm supposed to be using
-
crest
echelon: strongswan changed their configuration interface
-
crest
google for stroke vs vici
-
echelon
so i can use either
-
crest
if you're starting fresh go with the newer vici style configuration
-
crest
the old one looks compact, but it becomes a mess if you want more complex things
-
echelon
well, the endpoint that will be connecting to it will be using the old interface
-
echelon
oh, spoke too soon, had to install another package for swanctl
-
skered
Would (could?) FreeBSD be able to tap in to any sensor info that would tell me why this server's fans are spinnig up/down?
-
skered
I guess most of that unless there's something already in place (I'm thinking there isn't since I would have to set it up..) would all be in the BIOS?
-
meena
skered: sysctl should tell you some fair bit of info, and if not, there might be some packages in ports to help do that… or something else entirely
-
V_PauAmma_V
debdrup, I just noticed it uses rcorder instead. Perhaps I misunderstood your own question instead?
-
meena
V_PauAmma_V: yes. and rcorder can also produce a parallelised version, but there's again, how do we consume unsay in rc appropriately?
-
V_PauAmma_V
What's "unsay"?
-
armin
V_PauAmma_V: that's when you say something and you realize saying that was a bad idea.
-
V_PauAmma_V
I can't make sense of it that way in meena's answer. Perhaps I'm missing something.