01:45:53 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. 01:49:06 what do you want to be able to do without internet access? 01:49:27 install packages? 01:50:48 Best case, install packages and update the system. 01:51:05 My impression is that most people who operate offline do so with a fully self-compiled system from source. 01:51:23 That reduces the problem to have source transferred to their system for compilation. And updating it as needed. 01:51:54 Since everything is in git now then one can git clone everything and then copy it to the target system. 01:52:01 you can build your own package repo from ports, as long as you have some way to download the required distribution files 01:52:09 Can compile it on a different system if the offline one is not powerful for compilation. 01:54:30 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? 01:54:50 Aptly in Debian and RedHat Satellite has had me spoiled for too long :) 01:57:01 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. 01:58:22 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. 01:59:01 Also see poudriere for a framework for building ports. 01:59:13 Ports are the parts that are not in the core base operating system. 02:00:37 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. 02:00:37 last time I looked there was some weirdness that made hosting your own freebsd-update server difficult. I don't recall the details 02:01:23 I don't know if it's possible to maintain a server for freebsd-update by rsyncing an official one or whatever. 02:02:16 mynam: poudriere is what you want for port building - it can generate a package repository for use by pkg install 02:02:38 (it's the same code that's used to build the official pkg repository) 02:03:43 Ohh nice! Definitely bookmarking that. 02:05:13 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. 02:06:15 For compiling. Is "buildworld" something I'm looking for? 02:08:40 make buildworld is for compiling the base system (not the kernel) 02:08:58 make buildkernel is for the kernel (you should do buildworld first) 02:09:42 you may want to add a suitable -j option to that according to how many cpus you want to use 02:10:57 Ok Awesome! 02:11:06 I definitely appreciate it! 02:11:26 I can futz my way thru the tech bits but trying to get the right terminology is the hard part. 02:11:29 btw, I haven't tried it myself, but you might look into the new pkgbase system (which treats the base system as packages) 02:12:32 That would be nice. 02:12:38 I've added that to my research notes too. 02:13:02 I appreciate both of you for the help! 02:14:01 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? 02:15:59 feurig: there's no equivalent to freebsd-update for branches which are not yet actual releases. 02:16:08 not last i checked, anyway 02:16:25 so updating via source is the way to go if you're trying to track a -stable or -current branch 02:17:00 Is there a decent tutorial on 13.2 -> 14? 02:17:40 I've read around the handbook for the specifics for a few days now. 02:19:15 Just weighing the update between the current work environment and what the options will be in 3-6 months. 02:19:27 14 is still -current, until stable/14 is branched, so you have to treat it as such 02:20:28 RhodiumToad: thanks thought it couldnt hurt to ask. 02:20:45 I would probably wait for stable/14 before doing anything too serious 02:21:15 That was the nature of the query in general. 02:21:59 the thing with working with -current is that since the abi isn't fixed, you may have to rebuild ports regularly 03:35:28 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 03:37:41 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. 03:37:55 Any idea what I'm missing? 03:43:25 does usbconfig show a root hub for it? 03:44:50 given that usb is expected to provide power for external devices, it wouldn't surprise me if it needed a dedicated power connection 03:45:43 whether what you've done is sufficient/correct ... who knows 03:46:15 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) 03:47:26 I guess it's possible that the fan wiring only powers the 12v line, and perhaps it needs 5v as well for usb. 03:49:00 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. 03:49:13 does the motherboard have no usb ports? 03:49:43 is 0x1b21 the vendor id for the card? 03:49:49 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. 03:50:40 vendor ASM 0x1b21 ASMedia Technology 03:50:53 does that look likely? 03:51:06 is the motherboard usb disabled or enabled? 03:52:48 YES, asmedia is printed on the chip. 03:54:04 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.. 03:54:25 The device I want to pass through is a sonoff zigbee dongle. 03:54:30 so you'll probably see other root hubs for the motherboard? 03:55:22 anyway, if you see the root hub, but not any devices, it could well be a power issue 03:56:28 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... 03:57:41 How do I list my root hubs? Is there an easy way to trace where a device is connected? I mean, easier than dmesg? 04:03:33 usbconfig shows all the detected usb devices 04:04:05 I don't know if there's a way to see the actual topology 04:04:41 oh, devinfo will show the topology better 10:01:27 wait, devinfo can show usb? 10:25:46 when i use some software,i got 'vm_fault: pager read error'. https://bsd.to/TWWn 10:25:47 Title: dpaste/TWWn (Plain Text) 10:29:20 birz what CPU? 10:30:54 it's most likely a mmap issue 10:31:21 intel i5-6300U 10:35:01 roughly there are 3 likely causes "non-existent physical memory" (usually a bug) "hardware error" and "out of memory" 10:36:57 since you get the problem with 2 browsers the first is less likely 10:38:46 I suspect the filesystem broken,i use fsck test. got this https://bsd.to/1SCb. 10:39:20 fsck -f /dev/ada0p1 10:40:41 could be that, mmap or swap causing errors 14:48:10 have any of you played with this kit -> https://www.ipi.wiki/pages/ampere-altra-dev-kit 14:48:12 Title: Ampere Altra Dev Kit – I-Pi SMARC 15:00:17 drobban: I know some of our developers have 15:59:22 that dev kit in particular, or the altera platform in general? 16:00:18 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 16:53:34 drobban: I haven't played with that one in particular, but we do run well on other Altra machines (and they're very nice) 16:53:50 we have a couple ampere servers at $work 16:54:10 i'd probably personally spring for the 64-core at a minimum 16:54:35 -j80 builds on an 80-core altra, though, are *chef's kiss* 17:26:15 kevans: trying to find a product/datasheet, the information is somewhat vague when it comes to compatible memory types. 17:26:43 kevans: Im thinking about getting the 80core version 17:49:21 * rustyaxe dreams of 80 cores and hugs his 24 core "desktop" 17:53:12 does /bin/sh resolve to a POSIX compliant implementation on FreeBSD, or perhaps a csh interpreter? 17:53:47 pro tip: man 1 sh 17:53:47 and what does the SHELL (b)make macro use by default? 17:54:06 The 17:54:06 current version of sh is close to the IEEE Std 1003.1 (“POSIX.1”) 17:54:06 specification for the shell. 17:54:13 awesome 17:54:30 and make uses sh, not csh. right? 18:05:55 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 18:05:58 https://github.com/arichardson/bmake 18:05:59 Title: GitHub - arichardson/bmake: A git repository for the bmake releases 18:12:52 hello ? 18:13:49 hello 18:42:37 when did we add libxo support to mount? 18:42:43 13.1 doesn't have it 18:43:04 test 1 2 3 18:44:26 hi, I'm new to FreeBSD. Recently switched over from Linux... 18:46:31 Anyone here ? 18:47:17 omagreb: yes, there's people here 18:47:35 but some of them might be having dinner, or putting kids to sleep, or walking dogs, or writing code 18:48:48 * meena is doing some of the above 18:52:30 looks like I should've shutdown my vm, before taking a snapshot… all the modifications I made to the image are lost 18:52:40 i wish i had ZFS on this computer lol 19:09:36 meena: seems to be in current and 13.2+ 19:09:54 so I'll need a version check… 19:10:19 if you want libxo output from mount, I guess so? 19:10:20 wonder when i can remove the version check and the regex code… 19:11:04 when you don't need to support anything older than 13.2? 19:12:29 is this in a script or a program? 19:13:45 oh dear, gcc12, ghc, node18 and llvm13 all trying to build in parallel in poudriere 19:13:58 I feel a swap-space kill coming on 19:14:42 RhodiumToad: it's in cloud-init 19:15:51 bah, why does llvm13 build fortran by default, and why did I forget to disable that 19:16:20 i love these kinds of bugs… https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271081 19:16:22 Title: 271081 – www/firefox: crashes on arm64 with ASLR enabled 21:00:10 Swap: 8192M Total, 8192M Used, K Free, 100% Inuse, 7300K In, 2808K Out 21:00:23 " K Free" 21:00:31 not very good handling of 0 there 21:01:46 nothing's been killed yet though :-) 21:03:40 An is that K kelvin? It's not kilo (k) or kibi (Ki) 21:03:53 K as in kbytes 21:04:27 technically Ki, but nobody takes kibibytes seriously 21:04:36 that should be k as in kbytes 21:04:56 who cares 21:05:01 still it should be lower case 21:06:31 would be better if it showed the zero. is this freebsd , or are you showing another O/S for comparison sake? 21:06:44 npl, nist ... 21:06:48 freebsd 13-stable 21:06:59 as shown by top 21:07:26 in a VM currently thrashing itself to death trying to compile llvm13, ghc and gcc12 all at the same time 21:08:17 heh. stress testing, a proven way to find ze bugs 21:08:19 oh, and gcc48 too 21:09:07 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 21:09:38 (vm.pageout_oom_seq=200 vm.pfault_oom_wait=3 vm.pfault_oom_attempts=30) 21:10:10 the purpose of this exercise IS to find O/S bugs then? or are you looking for something else? 21:10:21 nope, just trying to build a bunch of packages 21:10:41 it's just that inevitably, sometimes poudriere schedules a lot of big stuff at the same time 21:10:58 it's not really very controllable about that sort of thing 21:11:34 it would be nice if you could add fake dependency rules, to force some large jobs to serialize 21:11:37 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. 21:11:56 yeah, that doesn't help much with the real memory pigs tho 21:12:21 my poudriere server is in a proxmox instance, has 24 cores, 24g ram, and can still be brought to it's knees 21:13:24 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 21:13:52 mine is a much smaller VM :-) 21:14:32 yeah, I've never seen mine use all the swap. not sure I want to do that. 21:17:59 8G of swap for a 4.5G vm. 21:18:47 ooh, I think I might have broken it 21:19:17 ah, no, it was just in the process of doing an OOM kill 21:19:31 Apr 26 21:18:48 kraal kernel: pid 18827 (c++), jid 9, uid 65534, was killed: failed to reclaim memory 21:26:44 do we have an equivalent of https://man7.org/linux/man-pages/man1/mountpoint.1.html / /prod/self/mountinfo on FreeBSD? 21:26:45 Title: mountpoint(1) - Linux manual page 21:27:09 (in base) 21:29:15 in what version of base and how ugly is it allowed to be? 21:30:17 RhodiumToad: it'll been in put into python, so i can work around ugly 21:30:35 I'm trying to provide a better fix for: https://github.com/canonical/cloud-init/pull/2143 21:30:36 Title: Fix linux-specific call on BSD. by holmanb · Pull Request #2143 · canonical/cloud-init · GitHub 21:31:46 can it assume root priv? 21:32:02 actually no need 21:32:57 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 21:33:27 (it won't actually try and execute the command) 21:35:46 what's it trying to do? find which filesystem a file is on? 21:35:56 yes 21:39:58 oh, so it can look for a noexec flag on the mountpoint? 21:40:30 yeah 21:46:40 https://github.com/canonical/cloud-init/blob/main/cloudinit/util.py#L2606 ← this is the function 21:46:43 Title: cloud-init/util.py at main · canonical/cloud-init · GitHub 21:46:45 that is broken… 21:48:58 i should rewrite awful regex to at least use named groups 21:49:12 how exactly is it broken? 21:52:47 the regex looks almost ok, except for ignoring filesystems not associated with /dev/* which may or may not matter to this app 21:54:06 I honestly think it's silly that it's looking for that kinda thing… it should just take the first thing and be happy 22:00:47 which first thing? 22:02:15 RhodiumToad: the first "word" should be the "device" 22:02:47 yeah 22:04:11 with regard to looking for noexec flags, the right place to look would be statfs() rather than parsing mount output 22:04:19 dunno if python supports that 22:05:18 i could write an FFI… 22:07:32 * RhodiumToad not a pythonist 22:08:24 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 22:08:56 even on linux :-) 22:09:29 python makes baby jesus cry 22:14:34 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. 22:14:52 RhodiumToad: not if the path doesn't exist tho :( 22:16:37 anyway, os.statvfs("/tmp") doesn't tell me about mount flags. 22:17:14 well, it does, i guess, but it's hard to read 22:25:32 statvfs is more portable than statfs but necessarily much less informative as a result 22:26:42 "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." 22:34:16 nice… 22:38:56 that is definitely a documentation 22:44:45 "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. 22:49:55 RATIONALE. \r\n\tNone. 22:50:21 https://pubs.opengroup.org/onlinepubs/9699919799/functions/statvfs.html 22:50:23 Title: fstatvfs 23:41:27 i love spending 2 hours of my life on 83 characters of regex 23:48:56 I find https://regex101.com/ useful 23:48:57 Title: regex101: build, test, and debug regex 23:51:20 jgh: I used that, and an ipython REPL 23:55:38 i've now told people about possibly siwtching to freebsd 23:56:22 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 23:56:47 hopefully i can time it with bookworm's release (well i technically am already using bookworm right now, its just still in testing rn)