-
mynam
Hello, hopefully quick question about mirroring. I'm on the docs page and section 3.3 says public mirrors are not allowed. I'm a new convert to BSD from Linux and I'm curious what my options are to run FreeBSD isolated from the internet? I don't exactly know the terminology to search yet so a push in the right direction would be appreciated.
-
RhodiumToad
what do you want to be able to do without internet access?
-
RhodiumToad
install packages?
-
mynam
Best case, install packages and update the system.
-
rwp
My impression is that most people who operate offline do so with a fully self-compiled system from source.
-
rwp
That reduces the problem to have source transferred to their system for compilation. And updating it as needed.
-
rwp
Since everything is in git now then one can git clone everything and then copy it to the target system.
-
RhodiumToad
you can build your own package repo from ports, as long as you have some way to download the required distribution files
-
rwp
Can compile it on a different system if the offline one is not powerful for compilation.
-
mynam
With a self-compiled system, will that allow me to output the binary files to a shared location for install so I don't have to compile on every server?
-
mynam
Aptly in Debian and RedHat Satellite has had me spoiled for too long :)
-
mynam
I guess the million dollar question is, what verbiage in the docs do I need to look for to set myself up for success? I don't have any special compilation requirements and essentially a rsync mirror will suffice.
-
rwp
In order: Yes. Yes. I am pretty sure it is covered in the FreeBSD Handbook. But there are other docs that might be more accessible.
-
rwp
Also see poudriere for a framework for building ports.
-
rwp
Ports are the parts that are not in the core base operating system.
-
mynam
There are a few things I use from ports currently so being able to build these and store the binary packages is something I've wanted. I'm of the mindset that you shouldn't compile in prod.
-
RhodiumToad
last time I looked there was some weirdness that made hosting your own freebsd-update server difficult. I don't recall the details
-
RhodiumToad
I don't know if it's possible to maintain a server for freebsd-update by rsyncing an official one or whatever.
-
RhodiumToad
mynam: poudriere is what you want for port building - it can generate a package repository for use by pkg install
-
RhodiumToad
(it's the same code that's used to build the official pkg repository)
-
mynam
Ohh nice! Definitely bookmarking that.
-
mynam
I'd really like my work to adopt FreeBSD. ZFS would solve a lot of problems for us and although we've got zfs on Linux, it's not supported in RHEL.
-
mynam
For compiling. Is "buildworld" something I'm looking for?
-
RhodiumToad
make buildworld is for compiling the base system (not the kernel)
-
RhodiumToad
make buildkernel is for the kernel (you should do buildworld first)
-
RhodiumToad
you may want to add a suitable -j option to that according to how many cpus you want to use
-
mynam
Ok Awesome!
-
mynam
I definitely appreciate it!
-
mynam
I can futz my way thru the tech bits but trying to get the right terminology is the hard part.
-
RhodiumToad
btw, I haven't tried it myself, but you might look into the new pkgbase system (which treats the base system as packages)
-
mynam
That would be nice.
-
mynam
I've added that to my research notes too.
-
mynam
I appreciate both of you for the help!
-
feurig
so if I were trying to test the future 14.0-release do I really need to do a source code upgrade. Is it really not possible to fast forward jails?
-
RhodiumToad
feurig: there's no equivalent to freebsd-update for branches which are not yet actual releases.
-
RhodiumToad
not last i checked, anyway
-
RhodiumToad
so updating via source is the way to go if you're trying to track a -stable or -current branch
-
feurig
Is there a decent tutorial on 13.2 -> 14?
-
feurig
I've read around the handbook for the specifics for a few days now.
-
feurig
Just weighing the update between the current work environment and what the options will be in 3-6 months.
-
RhodiumToad
14 is still -current, until stable/14 is branched, so you have to treat it as such
-
feurig
RhodiumToad: thanks thought it couldnt hurt to ask.
-
RhodiumToad
I would probably wait for stable/14 before doing anything too serious
-
feurig
That was the nature of the query in general.
-
RhodiumToad
the thing with working with -current is that since the abi isn't fixed, you may have to rebuild ports regularly
-
ghoti
I just installed a pci-e ucb card I bought on amazon. `pciconv -l` tells me it is xhci0 and good things like the vendor name. And when I plug anything into the USB port, it is not noticed. No response at all
-
ghoti
Now, the back of the card has what looks like a SATA HD power plug on it. I had an adaptor cable that converts old=style power (amphenol?) to SATA, so I hung it off one of the fan connections because my power supply has no extra SATA power. But still nothing.
-
ghoti
Any idea what I'm missing?
-
RhodiumToad
does usbconfig show a root hub for it?
-
RhodiumToad
given that usb is expected to provide power for external devices, it wouldn't surprise me if it needed a dedicated power connection
-
RhodiumToad
whether what you've done is sufficient/correct ... who knows
-
ghoti
Err, I *think* it does, but I'm not sure. The output of `dump_all_desc` has a first line of: ugen0.1: <0x1b21 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
-
ghoti
I guess it's possible that the fan wiring only powers the 12v line, and perhaps it needs 5v as well for usb.
-
ghoti
Sucks that my power supply has no sparea within reach. There are 2 SATA supply cables, each with 4 plugs spaced 2 inches apart. I need an extension, not an adaptor. Maybe.
-
RhodiumToad
does the motherboard have no usb ports?
-
RhodiumToad
is 0x1b21 the vendor id for the card?
-
ghoti
The motherboard does, but I'm trying to get USB on a separate PCI device so I can pass it through to a bhyve instance.
-
RhodiumToad
vendor ASM 0x1b21 ASMedia Technology
-
RhodiumToad
does that look likely?
-
RhodiumToad
is the motherboard usb disabled or enabled?
-
ghoti
YES, asmedia is printed on the chip.
-
ghoti
Motherboard USB works, I have 4 ports on the back, 2 on the chassis, and 1 internal .. but I don't want to pass my keyboard through. I will track down PCI devices for them again..
-
ghoti
The device I want to pass through is a sonoff zigbee dongle.
-
RhodiumToad
so you'll probably see other root hubs for the motherboard?
-
RhodiumToad
anyway, if you see the root hub, but not any devices, it could well be a power issue
-
ghoti
To pass something through, I need it to be the only thing on a PCI device. None of it needs 5Gbps, so if I can find a device on a bus on an otherwise empty device, I shoud be good...
-
ghoti
How do I list my root hubs? Is there an easy way to trace where a device is connected? I mean, easier than dmesg?
-
RhodiumToad
usbconfig shows all the detected usb devices
-
RhodiumToad
I don't know if there's a way to see the actual topology
-
RhodiumToad
oh, devinfo will show the topology better
-
debdrup
wait, devinfo can show usb?
-
birz
when i use some software,i got 'vm_fault: pager read error'.
bsd.to/TWWn
-
VimDiesel
Title: dpaste/TWWn (Plain Text)
-
paulf
birz what CPU?
-
paulf
it's most likely a mmap issue
-
birz
intel i5-6300U
-
paulf
roughly there are 3 likely causes "non-existent physical memory" (usually a bug) "hardware error" and "out of memory"
-
paulf
since you get the problem with 2 browsers the first is less likely
-
birz
I suspect the filesystem broken,i use fsck test. got this
bsd.to/1SCb.
-
birz
fsck -f /dev/ada0p1
-
paulf
could be that, mmap or swap causing errors
-
drobban
have any of you played with this kit ->
ipi.wiki/pages/ampere-altra-dev-kit
-
VimDiesel
Title: Ampere Altra Dev Kit – I-Pi SMARC
-
meena
drobban: I know some of our developers have
-
debdrup
that dev kit in particular, or the altera platform in general?
-
debdrup
because there's probably some particular peripherals on the dev kit not found on other altera servers, and i think there's at least a couple of the latter in the hands of various freebsd developers
-
kevans
drobban: I haven't played with that one in particular, but we do run well on other Altra machines (and they're very nice)
-
kevans
we have a couple ampere servers at $work
-
kevans
i'd probably personally spring for the 64-core at a minimum
-
kevans
-j80 builds on an 80-core altra, though, are *chef's kiss*
-
drobban
kevans: trying to find a product/datasheet, the information is somewhat vague when it comes to compatible memory types.
-
drobban
kevans: Im thinking about getting the 80core version
-
» rustyaxe dreams of 80 cores and hugs his 24 core "desktop"
-
preyalone
does /bin/sh resolve to a POSIX compliant implementation on FreeBSD, or perhaps a csh interpreter?
-
otis
pro tip: man 1 sh
-
preyalone
and what does the SHELL (b)make macro use by default?
-
otis
The
-
otis
current version of sh is close to the IEEE Std 1003.1 (“POSIX.1”)
-
otis
specification for the shell.
-
preyalone
awesome
-
preyalone
and make uses sh, not csh. right?
-
preyalone
ah, the bmake source appears to use ksh (lol) on HP-UX, possibly sh.exe on certain Windows environments, and plain sh on everything else
-
preyalone
-
VimDiesel
Title: GitHub - arichardson/bmake: A git repository for the bmake releases
-
omagreb
hello ?
-
la_mettrie
hello
-
meena
when did we add libxo support to mount?
-
meena
13.1 doesn't have it
-
omagreb
test 1 2 3
-
omagreb
hi, I'm new to FreeBSD. Recently switched over from Linux...
-
omagreb
Anyone here ?
-
meena
omagreb: yes, there's people here
-
meena
but some of them might be having dinner, or putting kids to sleep, or walking dogs, or writing code
-
» meena is doing some of the above
-
meena
looks like I should've shutdown my vm, before taking a snapshot… all the modifications I made to the image are lost
-
meena
i wish i had ZFS on this computer lol
-
RhodiumToad
meena: seems to be in current and 13.2+
-
meena
so I'll need a version check…
-
RhodiumToad
if you want libxo output from mount, I guess so?
-
meena
wonder when i can remove the version check and the regex code…
-
RhodiumToad
when you don't need to support anything older than 13.2?
-
RhodiumToad
is this in a script or a program?
-
RhodiumToad
oh dear, gcc12, ghc, node18 and llvm13 all trying to build in parallel in poudriere
-
RhodiumToad
I feel a swap-space kill coming on
-
meena
RhodiumToad: it's in cloud-init
-
RhodiumToad
bah, why does llvm13 build fortran by default, and why did I forget to disable that
-
meena
-
VimDiesel
Title: 271081 – www/firefox: crashes on arm64 with ASLR enabled
-
RhodiumToad
Swap: 8192M Total, 8192M Used, K Free, 100% Inuse, 7300K In, 2808K Out
-
RhodiumToad
" K Free"
-
RhodiumToad
not very good handling of 0 there
-
RhodiumToad
nothing's been killed yet though :-)
-
paulf
An is that K kelvin? It's not kilo (k) or kibi (Ki)
-
RhodiumToad
K as in kbytes
-
RhodiumToad
technically Ki, but nobody takes kibibytes seriously
-
paulf
that should be k as in kbytes
-
RhodiumToad
who cares
-
paulf
still it should be lower case
-
laidback_01
would be better if it showed the zero. is this freebsd , or are you showing another O/S for comparison sake?
-
paulf
npl, nist ...
-
RhodiumToad
freebsd 13-stable
-
RhodiumToad
as shown by top
-
RhodiumToad
in a VM currently thrashing itself to death trying to compile llvm13, ghc and gcc12 all at the same time
-
laidback_01
heh. stress testing, a proven way to find ze bugs
-
RhodiumToad
oh, and gcc48 too
-
RhodiumToad
I have tuned it to be somewhat less aggressive than default about actually killing processes for swap exhaustion, but I'm still slightly impressed that it kept going
-
RhodiumToad
(vm.pageout_oom_seq=200 vm.pfault_oom_wait=3 vm.pfault_oom_attempts=30)
-
laidback_01
the purpose of this exercise IS to find O/S bugs then? or are you looking for something else?
-
RhodiumToad
nope, just trying to build a bunch of packages
-
RhodiumToad
it's just that inevitably, sometimes poudriere schedules a lot of big stuff at the same time
-
RhodiumToad
it's not really very controllable about that sort of thing
-
RhodiumToad
it would be nice if you could add fake dependency rules, to force some large jobs to serialize
-
laidback_01
oh poudriere is awesome. yeah, I use it to, but I always short the build count by one 4 procs?, 3 threads or whatever it's called in the config.
-
RhodiumToad
yeah, that doesn't help much with the real memory pigs tho
-
laidback_01
my poudriere server is in a proxmox instance, has 24 cores, 24g ram, and can still be brought to it's knees
-
laidback_01
I'm sorry, I lied. it's 12 cores, 16G ram. I think I scaled it back because it was affecting the rest of the machine on big builds
-
RhodiumToad
mine is a much smaller VM :-)
-
laidback_01
yeah, I've never seen mine use all the swap. not sure I want to do that.
-
RhodiumToad
8G of swap for a 4.5G vm.
-
RhodiumToad
ooh, I think I might have broken it
-
RhodiumToad
ah, no, it was just in the process of doing an OOM kill
-
RhodiumToad
Apr 26 21:18:48 kraal kernel: pid 18827 (c++), jid 9, uid 65534, was killed: failed to reclaim memory
-
meena
do we have an equivalent of
man7.org/linux/man-pages/man1/mountpoint.1.html / /prod/self/mountinfo on FreeBSD?
-
VimDiesel
Title: mountpoint(1) - Linux manual page
-
meena
(in base)
-
RhodiumToad
in what version of base and how ugly is it allowed to be?
-
meena
RhodiumToad: it'll been in put into python, so i can work around ugly
-
meena
I'm trying to provide a better fix for:
canonical/cloud-init #2143
-
VimDiesel
Title: Fix linux-specific call on BSD. by holmanb · Pull Request #2143 · canonical/cloud-init · GitHub
-
RhodiumToad
can it assume root priv?
-
RhodiumToad
actually no need
-
RhodiumToad
mount -d -o current -u -- "$path" will succeed and output a mount command if it's a mountpoint, otherwise give a "not currently mounted" error
-
RhodiumToad
(it won't actually try and execute the command)
-
RhodiumToad
what's it trying to do? find which filesystem a file is on?
-
meena
yes
-
RhodiumToad
oh, so it can look for a noexec flag on the mountpoint?
-
meena
yeah
-
meena
-
VimDiesel
Title: cloud-init/util.py at main · canonical/cloud-init · GitHub
-
meena
that is broken…
-
meena
i should rewrite awful regex to at least use named groups
-
RhodiumToad
how exactly is it broken?
-
RhodiumToad
the regex looks almost ok, except for ignoring filesystems not associated with /dev/* which may or may not matter to this app
-
meena
I honestly think it's silly that it's looking for that kinda thing… it should just take the first thing and be happy
-
RhodiumToad
which first thing?
-
meena
RhodiumToad: the first "word" should be the "device"
-
RhodiumToad
yeah
-
RhodiumToad
with regard to looking for noexec flags, the right place to look would be statfs() rather than parsing mount output
-
RhodiumToad
dunno if python supports that
-
meena
i could write an FFI…
-
» RhodiumToad not a pythonist
-
RhodiumToad
the thing with statfs is you don't have to worry about navigating the filesystem, you give it any filename and it returns info about the filesystem that file is on
-
RhodiumToad
even on linux :-)
-
rustyaxe
python makes baby jesus cry
-
meena
It's closing it: the temp dir resolving function returns "/run/cloud-init/tmp" — if needs_exec=False; on Linux, /run is mounted as noexec.
-
meena
RhodiumToad: not if the path doesn't exist tho :(
-
meena
anyway, os.statvfs("/tmp") doesn't tell me about mount flags.
-
meena
well, it does, i guess, but it's hard to read
-
RhodiumToad
statvfs is more portable than statfs but necessarily much less informative as a result
-
RhodiumToad
"The statvfs() and fstatvfs() functions fill the structure pointed to by buf with garbage. This garbage will occasionally bear resemblance to file system statistics, but portable applications must not depend on this."
-
meena
nice…
-
LxGHTNxNG
that is definitely a documentation
-
V_PauAmma_V
"As standardized, portable applications cannot depend on these functions returning any valid information at all." is definitely a standard, if it still doesn't mandate more.
-
LxGHTNxNG
RATIONALE. \r\n\tNone.
-
LxGHTNxNG
-
VimDiesel
Title: fstatvfs
-
meena
i love spending 2 hours of my life on 83 characters of regex
-
jgh
I find
regex101.com useful
-
VimDiesel
Title: regex101: build, test, and debug regex
-
meena
jgh: I used that, and an ipython REPL
-
puddinghead
i've now told people about possibly siwtching to freebsd
-
puddinghead
after noticing that i do really have a reason to keep using linux what with ai work and cuda ive decided that ill get another 1tb ssd soon, and switch to dual booting debian and freebsd starting there
-
puddinghead
hopefully i can time it with bookworm's release (well i technically am already using bookworm right now, its just still in testing rn)