-
_xor
meena: Nope, will look in a bit.
-
_xor
What's API call to get the cpu busy time for a process in FreeBSD? (i.e. Linux equivalent of busy value of a pid in procfs)
-
_xor
Oh, getrusage apparently.
-
BaloneyGeek
mason: I was looking at the JailsEpair wiki page which I believe was written by you?
wiki.freebsd.org/MasonLoringBliss/JailsEpair
-
VimDiesel
Title: MasonLoringBliss/JailsEpair - FreeBSD Wiki
-
BaloneyGeek
It appears the Bugzilla entry linked to in the page about the racy networking in Jails (
bugs.freebsd.org/bugzilla/show_bug.cgi?id=237656) is now fixed
-
VimDiesel
Title: Invalid Bug ID
-
BaloneyGeek
Very funny VimDiesel, the title is `"Freed UMA keg (rtentry) was not empty (18 items). Lost 1 pages of memory." seen when running sys/netipsec tests`
-
BaloneyGeek
Anyway, my question was - does this mean we can now do away with the exec.prestop hack and remove the vnet line completely?
-
mason
BaloneyGeek: Yeah, I need to check that. I haven't vetted it and I wanted to verify before changing it, since the workaround doesn't actually hurt anything. Has it been pulled down to 13.1?
-
BaloneyGeek
mason: I have no idea how to check, sorry. I'm still extremely new to the FreeBSD world
-
mason
BaloneyGeek: No worries. I'll chase it down soon as I get a chance.
-
BaloneyGeek
I assume the githash mentioned would just be cherry-picked to something like a 13.1 branch?
-
mason
BaloneyGeek:
docs.freebsd.org/en/books/handbook/glossary/#mfh-glossary or MFS, unsure where the code has gone. I kind of assumed it was just in current but I haven't actually looked yet.
-
VimDiesel
Title: FreeBSD Glossary | FreeBSD Documentation Portal
-
BaloneyGeek
mason: The commit itself was pushed in March 2021, and has a "MFC after: 3 days" line in the commit message, but searching freebsd-src on Github doesn't seem to yield any other commits with the same commit title
-
BaloneyGeek
I've been scouring the internet for days on how to do VNET jails properly and your guide has the simplest setup I could find without a dependency on `jib`, so I'd really like to base my setup off it :-)
-
mason
BaloneyGeek: nice nice
-
mason
BaloneyGeek: So, with that in mind, you can ignore the noted glitch and just not bother setting up a sacrificial lamb at boot if it's been fixed. The ill effect I wanted to avoid was networking pausing briefly.
-
BaloneyGeek
Oh it's that bug? I thought the fix to that was to assign a MAC address to each epair b interface manually?
-
BaloneyGeek
What I'm trying to understand is the need for this line: `exec.prestop += "/sbin/ifconfig epair${ep}b -vnet ${name}";`
-
mason
BaloneyGeek: Oh, that. IIRC that was from a bug that was fixed where interfaces not removed from the jail side would lead to the system freezing.
-
BaloneyGeek
My brain is a little short-circuited by now, but does this mean at some point, under the hood, there's a named VNET being created with the name of my jail?
-
mason
BaloneyGeek: I'll be happy to revamp it all to eliminate workarounds for random bugs I've hit if they're gone. Plus side, the workarounds are safe even with the bugs fixed.
-
mason
BaloneyGeek: Not with the name.
-
BaloneyGeek
I can do you one better, since I'm setting this up myself
-
mason
BaloneyGeek: Here, for instance, I have an epair101a on the outside, and an epair101b on the inside that's the primary NIC for the jail.
-
mason
cool
-
BaloneyGeek
If you can tell me a reliable way to reproduce this, I can test this and report back, possibly with an updated config :-D
-
BaloneyGeek
(the freeze when we yank interfaces from underneath the jail)
-
mason
BaloneyGeek: Sure. I think the crash if the epair was left to be cleaned up has probably gone away. To test that, just don't include the -vnet line.
-
mason
BaloneyGeek: Other way around. If you let FreeBSD clean up the jail and vnet itself it'd freeze. The way around that was removing the vnet first.
-
mason
THEN tearing down the jail, hence the prestop removal.
-
BaloneyGeek
So can I also just change the line `exec.prestop = "/usr/sbin/jexec ${name} /bin/sh /etc/rc.shutdown";` to `exec.stop = "/bin/sh /etc/rc.shutdown";` then?
-
BaloneyGeek
mason: Ah so doing things the "normal way" used to pretty reliably lead to a system freeze if I understand correctly
-
mason
Yes. Hence the added bits. That said, a goal I left lingering was having the system bring up the NIC itself, potentially using DHCP, and I've struggled to get that to work reliably.
-
mason
I'm setting up a new bhyve and jail host and plan to explore it again this week.
-
mason
Was hoping for this weekend but we had a more-than-day-long power outage.
-
BaloneyGeek
I cannot test DHCP for the reason of "my server host won't let me", but I'd like to test setting up the IP using the usual rc.conf way
-
BaloneyGeek
Especially since I actually need a proper IPv6 setup
-
mason
BaloneyGeek: That said, pulling out my historical cruft will be a nice way to explore and learn. It shoudn't hurt anything leaving it, so you should be able to start from what's there as a baseline.
-
mason
Ah, I've not ever added IPv6 into the mix. If you find anything interesting to include I'd be happy to do so, and if you collaborate on it we'll want to move it out of my namespace.
-
mason
Sorry, also, I'm a bit distracted with a couple other things I'm doing concurrently.
-
BaloneyGeek
Right, I should be able to report back in a couple of days, either here or via your email in the wiki page
-
BaloneyGeek
mason: No worries, I'm going to bed now anyway. It's 4AM CET
-
BaloneyGeek
Thanks for the clarifications. Let's see how things go in the next few days :-)
-
mason
Good night! Ping me here as needed and I'll try to repond.
-
mason
respond*
-
jafarlihi
tmpfs is a KLD module, right? Why does sys/fs/tmpfs contain no DECLARE_MODULE or moduledata_t?
-
Edge-
Besides driver support, if a person *must* use Linux, I can't fathom *why* they would choose it over FreeBSD! Bill Joy and Kirk McKusick and others worked very hard on it since 1977. I know why Linux got its market share, and I'm no noob, but Linux is a glued-together piece of garbage when you compare it to BSD: a complete OS out of the box. And let's talk PF Sense vs IPtables! There's prewritten rules, it's a config file! it's not modular, designed not
-
Edge-
to be as capable to break. And all the distro's of Linux and the hardening and the difference in patch release times. WHY?
-
meena
Edge-: there's very little point in discussing why a technology has "won". it's always a very complex process
-
Edge-
meena: That's YOUR opinion, and you have NO RIGHT in telling someone what to discuss. So I'm finished talking to you.
-
mictty
Edge: we are in hunger of driver supports. That's right.
-
mictty
Edge: that may be in terms of expansion of user pool(desktop). In another case, it may not be a deal breaker.
-
Edge-
mictty: I know all of this, with lack of vendor-provided driver support that Linux gets due to known reasons of lawsuit... that FreeBSD does not get and its team have to hack drivers.
-
jafarlihi
Can someone please tell me what's the difference between KLD module and static kernel module? Like what makes a module static kernel module? How is it defined? They are both built with ".include <bsd.kmod.mk>" but only difference I can see is that one has DECLARE_MODULE and other doesn't.
-
debdrup
jafarlihi: I _think_ it's whether something can be loaded at runtime, or whether it has to be loaded with the kernel by the boot loader.
-
debdrup
And, more importantly, I suppose - you can unload them if you don't need them.
-
Macer
i know i check in on this every now and then but i was curious if smb_mountfs has evolved beyond smb1
-
debdrup
Macer: if it ever does, I can't imagine it won't be published far and wide, so there's no real point in checking every now and then, as there's nobody working on it
-
meena
wasn't smb* slated for removal, because it doesn't work beyond smb 1, and because no one is working on it, and because there's more functional alternatives in ports
-
daemon
is it possible to generate more than one matching public key from a single private key file (ed25519)
-
meena
daemon: what do you mean?
-
daemon
meena, is it possible to generate more than one pubkey for a private key, say for instance if you did a ssh-keygen -t ed25519
-
daemon
you would get an accompanying pubkey
-
daemon
but is there anyway to generate additional pubkeys that have a different hash
-
daemon
or are they all 1 ub per private key
-
daemon
1 pub per private key*
-
_xor
Heh, I would hope the answer to that is a definitive "no"
-
daemon
yeah me to but got to wonder :)
-
antranigv
here's a stupid question from a person who works in InfoSec: what's the difference between Security Advisories and Errata Notices?
-
debdrup
errata notices are fixes for things that are obviously broken (ie. doesn't work at all, or doesn't do what the documentation says), while security announcements are for actual security related things
-
V_PauAmma_V
Per email discussion, E in EN actually stands for "Engineering".
-
debdrup
-
VimDiesel
Title: FreeBSD Errata Notices | The FreeBSD Project
-
debdrup
an erratum is a correction - in the original meaning, to a text, but more broadly it can be applied to anything that's considered corrected by being updated by something published after the fact, i think
-
V_PauAmma_V
I thought that's what they were as well, but who am I to contradict imp?
-
debdrup
then imp has a lot of websites to correct :3
-
» V_PauAmma_V turns on the SEP field generator. :-)
-
» debdrup tilts his head at the purple mountain
-
» mictty doesn't get it
-
V_PauAmma_V
Hitchhiker's Guide to the Galaxy reference. (_Life, the Universe, and Everything_ specifically.)
-
CrtxReavr
Read all those books. . . not sure I remember a 'SEP field generator'
-
rwp
Me too. But I still had to look it up. A "Somebody Else's Problem" field. The Bistromath ship was covered in an SEP field. Think cloaking device.
-
CrtxReavr
Those were hands down the funniest books I ever read.
-
CrtxReavr
Constant strange look generators.
-
CrtxReavr
Apparently novels are not supposed to induce hysterical laughter in public places.
-
mictty
hmm
-
Macer
meena: oh is there?
-
Macer
i'm guessing it's all been relegated to fuse maybe?
-
meena
Macer: I don't remember the details
-
meena
-
VimDiesel
Title: DeprecationPlan - FreeBSD Wiki