00:07:05 on Linux distros you can get a gdb-multiarch - do we have something equivalent? 00:12:23 jbo: I mean there's lldb. 00:13:03 fatalnix, I need GDB. 00:13:16 fatalnix, need to debug some RISC-V target that is using GCC to build 01:44:04 Hey, is this channel a good place to ask for newbie help, or is it better to ask my questions on Discord? 01:48:26 I don't know about Discord, but this channel is a good place for all levels, including newbie. We all were one, once. 01:50:25 <3 01:54:48 Cool. I'm gonna start with question 1. I installed 13.2-RELEASE on my pi (aarch64) and I'd like to read the handbook, but there's no /usr/local/share/doc/freebsd 01:58:39 You have to install it 01:59:01 You can either read it online at https://docs.freebsd.org/en/books/handbook/ or install en-freebsd-doc via ports or packages as explained in https://docs.freebsd.org/en/books/handbook/ports/ . 01:59:03 Title: FreeBSD Handbook | FreeBSD Documentation Portal 01:59:21 At install (well, if it is same procedure as x86) you can select to install it, but it isn't in default 01:59:40 so, tl;dr 01:59:55 pkg install en-freebsd-doc 02:00:37 Oh got it. I thought had installed en-freebsd-doc, but there was an error with pkg that I overlooked. My DNS server was misconfigured, so after fixing that and rerunning pkg install en-freebsd-doc fixed it 02:00:56 ๐Ÿ˜Ž 02:01:58 I take it back. It's not solved. The package reinstalled successfully, but the docs don't show up still 02:02:10 Is there another path that they could be located in? 02:03:15 Nope. I am an idiot ๐Ÿ˜‚. I kept omiting the `share` from the path 04:18:43 Neat, FreeBSD has RAIDz expansion. 04:19:01 Time for everyone to throw everything including the kitchen sink at it, please. 04:21:09 it's not a good time to relinquish my sink right now, thanks 04:24:41 https://freshbsd.org/freebsd/src/commit/d09a3bf72c0b even with four paragraphs of technical explanation, this is one heck of a doozie to grok 04:24:42 Title: FreeBSD / src / d09a3bf / fflush: correct buffer handling in __sflush - FreshBSD 07:27:31 I'm looking for a usb-c dongle or usba since i have a hub that can output speaker and be used as a mic also. I don't like headphones. anyone mind helping me look 07:27:43 i actually don't even know what it would be called so i don't know what to look for 07:28:12 This is for a chromebook i want to put freebsd on and use it as my main laptop 08:33:46 Hi. Until the problems w.r.t. QEMU are fixed for the current "FreeBSD-13.2-RELEASE-arm-armv7-GENERICSD.img" image, could someone with write access **please** add a link to the relevant forum discussion (https://forums.freebsd.org/threads/kernel-panic-on-armv7-with-qemu.89016[/post-609775]) to the https://wiki.freebsd.org/QemuRecipes wiki topic? I can't have been the only one who had difficulty finding a solution. 08:33:47 Title: QemuRecipes - FreeBSD Wiki 08:36:14 bashing my head against audio (on 15.0-CURRENT) 08:36:27 I have an external USB DAC for output, works great 08:36:50 and an external USB mic for input, works great, but also says its an audio-out device too 08:37:06 but I haven't figured out how to have both working at the same time 08:37:30 https://www.irccloud.com/pastebin/qqKdrlt3/sndstat 08:37:31 Title: Snippet | IRCCloud 08:37:55 https://www.irccloud.com/pastebin/lWr1uh3z/mixer 08:37:56 Title: Snippet | IRCCloud 08:38:39 so pcm1 is an output-only device, and pcm0 is both input and output? 08:39:11 yes pcm1 is the fancy DAC - audio out 08:39:27 but you want to use pcm1 for out and pcm0 for in at the same time? 08:39:28 and pcm0 is the microphone that thinks it is also an output 08:39:42 RhodiumToad: precisely 08:40:08 if the microphone *actually* played audio I'd be fine with that for webrtc meetings and just switch in between 08:40:30 since they're physically separate devices, that probably means that you need to configure whatever software you're using to use two separate devices rather than just the default 08:41:00 webrtc thus firefox or chrome, not much luck I expect 08:41:09 ooh I *can* get audio out of the microphone 08:41:32 so I will go down the stupid but working path of just disconnecting the fancy DAC during meetings 08:41:44 what does about:support show in firefox for the audio devices? 08:41:50 nobody going to need my 140BPM in hi fidelity anyway 08:41:57 heh 08:45:37 about:support shows absolutely nothing in firefox (using a fresh profile) 08:45:58 oh, is it still broken? I thought it got fixed 08:47:27 I'm running ESR again until firefox 121 which has a fix for crashing on startup, at least for me 08:48:13 it turns out the microphone has a little 3.5mm jack plug on the bottom which I can use 08:52:34 after a bit more testing it appears that firefox will *always* pick the USB audio device that has a microphone, for both. 08:53:06 so long as I do the audioconf and use the "microphone" 3.5mm jack for output via headphones, its all good 20:09:14 guys, is it ok to use swap on zfs ? 20:13:47 I've used in the past and had performance problems when swap was hit 20:13:53 (when memory was full) 20:14:40 IIRC, last time someone asked it, the answer was "not safe due to possible deadlocks". 20:15:07 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199189 20:15:09 Title: 199189 โ€“ SWAP on ZFS can crash server 20:15:44 V_PauAmma_V: thank you, I think I'll use swap outside of zfs 20:44:53 one more question regarding swap, if I have a machine with 16 GB ram and two nvme drives (that will be used on a zfs mirror), what is the recommended size of the swap partition (outside of zfs) ? 20:45:45 is it ok to use 4-8 GB swap partition, or should I go for 2x of ram size (32 GB swap partition) 20:46:08 the nvme drives are 1 TB in size, but I think 32 GB is too much for a swap partition 20:46:12 Look at the swap recommendation on the wiki https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199189 20:46:14 Title: 199189 โ€“ SWAP on ZFS can crash server 20:46:20 Oops. Wrong paste. https://wiki.freebsd.org/SystemTuning 20:46:21 Title: SystemTuning - FreeBSD Wiki 20:47:08 and one more question, regardin my setup, if I have those two nvme drives, should I create two swap partitions on each drives? 20:47:36 The wiki recommendation for 16GB RAM would be 16GB swap. But honestly I am old-school and have terabytes of disk so allocate 32GB of swap in that case as I will never miss it from the storage pool. 20:47:51 rwp: thank you, so I should create a 16 GB of swap partition 20:48:15 I see 20:48:32 For people with 256GB of RAM obviously they are not going to allocate that much swap space. But if I am on a 256MB Raspberry Pi then I would allocate a gig of swap space. 20:52:57 I have a lenovo x230 with 16 GB of ram (freebsd 12.x) and swap on zfs zvol, when I open many tabs in firefox and the memory is full, the machine is almost unresponsive if I do not exit firefox quickly 20:57:00 As noted above swap should never be on zfs since zfs itself uses memory and the combination will often deadlock. 20:57:28 https://www.schmidp.com/2014/01/05/freebsd-10-does-swap-work-on-a-zvol/ 20:57:29 Title: philipp schmid - FreeBSD 10: does SWAP work on a ZVOL? 20:57:49 https://github.com/openzfs/zfs/issues/7734 20:57:53 Title: Swap deadlock in 0.7.9 ยท Issue #7734 ยท openzfs/zfs ยท GitHub 20:57:53 7734 โ€“ update atari800 - upgrade to the latest version https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=7734 20:59:23 Poor confused VimDiesel. 20:59:31 I don't know how FreeBSD handles suspend and hibernate on a laptop but on Linux systems I always allocate a little more swap than I have RAM so that I can guarantee hibernation to disk works trivially without things like zram compression and such. Again I have terabytes of storage and I will never miss the small amount of swap needed to store my ram. 21:01:57 I note that how much swap is needed is one of those things that people for some reason unknown to me have a strong emotional reaction to and fights break out discussing it. It's worse than an editor war! Which is why I cited the wiki page rather than my opinion on the subject. 21:03:45 rwp: "As noted above swap should never be on zfs since zfs itself" It seems many ppl don't know that, I was reading this thread: https://forums.freebsd.org/threads/is-swap-on-zfs-safe.27855/ 21:03:47 Title: Is swap on zfs safe? | The FreeBSD Forums 21:04:06 now it is clear for me, no more swap on zfs (thanks again) 21:05:26 ZFS has so many other useful benefits that I just accept as a compromise that I give up having swap there as part of the tradeoff. It's worth it! 21:10:38 meandrain, Also people have recently told me when I was using Firefox as an example of a memory hog that Firefox dynamically uses all available memory by default but can be configured to use less. I don't know the configuration option to tell it to do that however. But knowing that one exists means one could tell Firefox to use no more than some smaller limit and that should avoid Firefox consuming all memory. 21:11:51 rwp: that make sense. I also have swap on zfs on two servers (nginx+php) and had no such problem like on desktop 21:13:28 If one never hits being out of memory then they would never trigger any problems. 21:14:25 But... On a server... If that reacts to external influences, like Apache servicing web requests, and it gets hit with abuse from the network as always happens, then when it does get hit under stress that's also a bad time to hit a deadlock on top of the original attack/abuse. 21:21:03 hello ;) I'm trying out freebsd on a system that has RTL8125B network cards. can I install the drivers for these (realtek-re-kmod...pkg) on the system booted from the usb stick and get the network cards running, or do I have to reboot? I tried just running `pkg install ./...`, but ifconfig doesn't show any new interfaces after that :-/ 21:21:16 sorry, I'm very new to freebsd, not sure whether I need to do something like modprobe on linux 21:23:45 rwp: no amount of swap guarantees that hibernation to the swap partition always works correctly, as you potentially have to save ramsize + swapsize on the swap partition 21:24:52 Not familiar with that card, but you're probably looking for the kldload command (which has a manual page available with "man kldload"). 21:26:59 nimaje, My "weasel words" did say on a Linux system and on Linux it is only ram not ram+swap. On FreeBSD it is RAM+swap? 21:27:55 I have not really worked through the problem of hibernation on FreeBSD. I also assume that using an ephemeral key for encrypted swap would cause the stored contents to be lost which would also cause things to not work. 21:28:28 V_PauAmma_V: thanks, I'll try `kldload if_re` ;) 21:30:09 maybe this helps? https://forums.freebsd.org/threads/if_re-for-rtl8125-module-loads-no-device-output.89372/ 21:30:10 Title: Solved - if_re for RTL8125- module loads, no device output | The FreeBSD Forums 21:31:05 rwp: how can they just ignore to save swap? when a program needs more than fits in ram, then that has to be saved to for hibernation; I didn't really look into it, but afaik freebsd doesn't have hibernation support 21:34:23 Well... I guess I have avoided all of those problems by generally using 2x RAM for swap on Linux machines with up to 32GB of RAM. And never had a problem with hibernate to disk that way. Because I will never have that much swapped out. And then if it is RAM plus a small amount of swap then it all works. 21:36:48 I need to get back to debugging why my laptops with FreeBSD the graphics will not resume from ram suspend. I just get a black screen. Can log in with ssh but so far don't know the cure. Thinkpad X201 series with the radean graphics. Life and time is what keeps everything from happening all at once. 21:37:36 yeah, it probably works for most situations like that, but "guarantees" is just wrong there 21:38:09 meandrain thanks 21:42:51 rwp: hm, I formed a habit of makeing sure swap is empty before suspending because I sometimes had problems with resume too and it seemed to work only when swap is empty, so I do swapoff -a && swapon -a 21:46:56 That's a clever good hint to empty out swap. I like it. 21:48:42 not sure if swap really is the problem, but I hadn't problems since I started doing that 21:50:08 thanks again, this solved the problem, now I can load if_re and things work on the odroid h3+ :D 21:50:50 ecraven, What steps were needed? Did you need to use a different network to bootstrap to get the port module installed? 21:51:47 gotta run bbiab 21:52:17 rm /boot/kernel/if_re.ko; pkg add re-...pkg ; kldload /boot/modules/if_re.ko 21:52:28 the first might not be necessary if giving the full path to kldload anyway 21:53:04 I used a *second* usb stick with just the pkg on it. I tried but couldn't mount the UFS filesystem on linux in order to just put the pkg directly on the "main" usb stick 21:53:26 sorry, this is opnsense, they don't package the if_re module by default :-/ maybe "normal" FreeBSD works fine here anyway 21:57:25 Probably removing the in-base module is somewhat problematic as it will be returned on an update, would break things in the future. 21:57:30 Probably better to load the desired ports module by full path if needed. Seems more robust that way. And I have no idea about details of opnsense but just commenting upon likely trouble. 21:58:30 rwp: yea, normally things are loaded via /boot/loader.conf (I think?), so this wouldn't happen, this is just because I wanted to try it from the usb stick *without* rebooting 22:02:59 normally stuff is loaded automatically or via kld_list in rc.conf and only via /boot/loader.conf if that is nessesary 22:03:24 thanks, I'll go and read up on how freebsd works some more. thank you all for the kind help! 22:08:05 I think when you setup your interfaces via the ifconfig_* variables in rc.conf needed kernel modules should be loaded for that automatically, but not sure how well that works if you have two with the same name 22:21:30 Is HardenedBSD just FreeBSD with extra packages? 22:27:38 Zyxer: no. It's FreeBSD with lots of patches 22:28:17 So FreeBSD repo/packages are not available? 22:28:21 meena 22:32:06 Zyxer: they rebuild our ports with different flags. I think they started building with PIE a much longer time ago for example.