00:00:54 Feels a little like overkill to run one program in a jail, but I added memory recently… 00:07:00 It's only files on disk, right? If it is really just one program then the memory usage won't be any different than if it were not in a jail. 00:07:19 And if the files on disk were clones of a snapshot then there wouldn't be significantly more disk space used either. 00:11:56 Nah, it's tiny. 01:33:51 Im kinda, stuck where i am with the mpt0 issue, not a lot of people having the same issue and i cant seem to really figure out.. why its happening? So, i have a plan 01:33:51 im gonna switch over to ubuntu again, i have a spare disk so i can just pause freebsd basically, then ill see if the wiring and the drive and everything work still. See if i can narrow it down to just the mpt driver, or my hardware failed just now 03:40:06 hi, I have a weird case of stuck src build of databases/mysql-server80 on 13.1 releng. It consistently hangs on what seems to be the last file in the build, for at least 4 hours. https://pastebin.com/KJf2935g 03:40:07 Title: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND - Pastebin.com 03:46:31 Do you see no CPU or IO activity for the compilation? Have you checked whatever logs that might be generated in the port build directory? 03:47:48 the build was using 2 jobs but is now down to just one cc job burning 1 core at 100%. there is no activity, the build disk has spun down in the meantime. if it's actually calculating anything, it's being done in ram 03:49:22 the file itself is a tiny helper file, so there is no reason why it should be taking so long. Unless it's doing some additional work while hiding behind that commandline 04:28:32 exit 07:11:52 ultramage: did you enable any extra optimisations? 08:32:13 ultramage: mimicking what the others have asked plus did pressing ctrl+t produce any info whilst the cc appears to hang ? 10:15:46 didn't we have a wiki page detailing the differences between MacOS and FreeBSD? I can't seem to find it 10:18:33 https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/BSD/BSD.html#//apple_ref/doc/uid/TP30000905-CH214-TPXREF101 i don't think anyone tested this website on anything other than safari 10:18:34 Title: BSD Overview 10:42:40 meena: works_for_me(TM) (on macos using microsoft edge :-D) 10:47:36 otis: maybe it's just a Firefox mobile thing then 10:54:58 in the grand scheme of Semver, is 13.1 a major or a minor release? 11:03:46 Yes. 11:50:56 it's been at 100% for 12 hours now, I can safely call it stuck now. I haven't dealt with a malfunctioning compiler like this before, so I'm not sure how to go about it. 11:53:23 my only tweaks are CPUTYPE?=native and MAKE_JOBS_NUMBER=2. same with the kernel/world build. My only changes to the port makefile were switching libicu dependency from ports to bundled. 11:54:10 mi_switch+0xc2 sleepq_catch_signals+0x2e3 sleepq_timedwait_sig+0x13 _cv_timedwait_sig_sbt+0x10f seltdwait+0x75 kern_poll+0x52b sys_poll+0x51 amd64_syscall+0x112 fast_syscall_common+0xf8 11:54:42 I can break in with gdb if needed 11:55:37 I remember that when this happened in the previous attempt, I ctrl+c'd and tried resuming the build. Then it would hang on some other file. I will try that again if this attempt goes nowhere 11:59:09 hm so the syscall is [select]. So I guess it's busy-waiting on a pipe? 12:23:39 oh that's printing the status of the 'make' process that's waiting on the foreground. the background 'c++' process looks like this https://pastebin.com/Qj9trzaE 12:23:40 Title: [Switching to LWP 100269 of process 38470]0x00000000044230c7 in operator!= () - Pastebin.com 12:25:49 Is there any way to have persistent shell command history (i.e., not just for the current session) when using /bin/sh as root's shell? 12:25:59 runOnMachineFunction -> allocatePhysRegs -> selectOrSplit -> selectOrSplitImpl -> tryLastChanceRecoloring -> tryRecoloringCandidates is the common part on all the call stacks I paused on. The levels above differ every time. I sometimes see that it's recursing. 12:31:28 msiism, if you check the file on your home dir .sh_history 12:31:41 you'll find it there. 12:33:44 Unfortunately, I don't have that file. Also, sh(1) doesn't mention it, as far as I can see. 12:34:03 you can see it with ls -a 12:34:08 is a hidden file. 12:35:13 Yeah, but it's not there. 12:36:05 I mean, sh(1) should mention that file if that is where histroy is stored, right? 12:36:32 I have it on my dir. 12:40:55 Okay, what shell are you using? 12:41:23 sh 12:41:48 Like /bin/sh? 12:43:07 yes 12:47:59 Weird. 12:50:32 Helper: What version of FreeBSD are you running? 12:50:43 current 12:53:18 Oh, as it seems, I'll have to use fc to get persistent history. 13:16:24 https://freshbsd.org/freebsd/src/commit/c4a4b2633d975bd0813afca6b8e23ead29d80e82 you know, i would've expected a bigger difference 13:16:25 Title: FreeBSD / src / c4a4b2633d975bd0813afca6b8e23ead29d80e82 - FreshBSD 13:17:26 Well, as far as I can see here on 13.1, /bin/sh just doesn't offer persistent command history, at leats not out of the box. 13:33:40 debdrup: that's a one line change 13:36:54 meena: you comment remind me of this https://ftp.openbsd.org/pub/OpenBSD/songs/song62.ogg 14:24:24 So, my machine just rebooted because of a kernel panic. It also told me where the relevant log file is. But then motd used most of the screen and the info was gone. 14:25:01 Someting-something-core.txt, if I remember right. 14:26:51 msiism: /var/crash ? 14:27:08 Let's see. 14:28:13 Seems like it. However, the file just tells me the system is unable to find a kernel debugger. 14:28:20 So, I should probably install gdb then. 14:28:52 msiism: also, dmesg or /var/log/messages might have the info you were denied 14:30:01 https://docs.freebsd.org/en/books/developers-handbook/kerneldebug/ 14:30:02 Title: Chapter 10. Kernel Debugging | FreeBSD Documentation Portal 14:30:46 Yeah, /var/log/messages has it. 14:31:27 "reboot after panic: vm_fault_lookup: fault on nofault entry, addr: 0xfffffe0097be7000" 14:36:29 So, I'm not sure what to make of this. Could this be because of broken RAM? 15:02:17 Good day, 15:03:32 Would someone know which define in C can be used to differentiate FreeBSD, for example #ifdef __FreeBSD__ ? 15:03:34 Thanks 15:09:02 https://stackoverflow.com/questions/7314346/which-preprocessor-symbol-to-check-to-detect-freebsd 15:09:03 Title: Which preprocessor symbol to check to detect FreeBSD - Stack Overflow 15:19:19 <_xor> meena: Is there an already existing equivalent to `pkg which` (or `pkg provides`) for base packages? 15:19:47 <_xor> meena: Currently, I'm using a separate tool that greps the archives for file names. 15:30:44 _xor: not that I'm aware of. I usually have a system somewhere lying around with the full installation and query that 15:31:12 less ideal with CURRENT where shit shifts on a weekly basis somee 15:44:53 Thank you 16:17:12 msiism: we don't use gdb anymore 16:43:06 <_xor> meena: How are you querying it? 16:43:29 <_xor> oh, with pkg-which after pkgbase packages are installed? 16:43:37 _xor: yes 16:44:07 but i just opened this bug, https://github.com/rosorio/pkg-provides/issues/7 16:44:08 Title: How to provide a provides DB for a PkgBase repo · Issue #7 · rosorio/pkg-provides · GitHub 16:45:01 <_xor> I've been meaning to self-host the pkg-provides db (which supports doing that, so no changes required there). 16:45:19 <_xor> It would need to be generated though. 16:45:22 and to think all this time i was just grepping plists 16:45:36 <_xor> rtprio: Yes, pkg-provides is quite useful :P 16:46:06 <_xor> I do kind of wish though that pkg natively had a method to run query on remote repos. 16:46:53 <_xor> ...or at least include a pre-generated indexed plist db in the repo that can be optionally fetched to do local queries on not-yet-installed packages. 16:48:50 https://github.com/rosorio/pkg-provides/blob/master/pkg-provides.8 i don't see a way to generate the db 16:48:51 Title: pkg-provides/pkg-provides.8 at master · rosorio/pkg-provides · GitHub 16:50:44 <_xor> Hang on, I have it somewhere I think. 16:50:51 <_xor> Link to the source that does that. 16:54:39 <_xor> Hmm, apparently not. I guess I was just downloading the generated db. 17:23:17 maybe poking at the files, we can reverse engineer it, _xor! 18:08:30 <_xor> meena: It wouldn't be too difficult, given that it's loading it and running a PCRE against the db. 18:08:48 <_xor> meena: Not sure which fmt it's in, need to look further at the source, but that's not too hard. 18:09:36 <_xor> meena: I tend to think though that generating a SQLite db in /var/db/pkg/${REPO_NAME}-plist.sqlite is a better approach. 18:09:51 <_xor> meena: Then FTS capabilities that are built into SQLite can be taken advantage of. 18:11:16 <_xor> ...also, this way makes it possible for it to be per-repo, since currently AFAIK pkg-provides always just looks for and loads /var/db/pkg/provides/provides.db, which makes it inflexible. 18:12:01 <_xor> I just put it on my secondary TODO list for later to take a gander at whipping something up. 18:13:14 <_xor> I just got done patching sysutils/podman since one of the dependencies that upstream is pulling isn't written to respect build tags and tries to use cgroups on FreeBSD to get container stats (which obviously fails). 18:13:24 <_xor> About to test it now and see if it works. 18:13:27 * _xor crosses fingers 18:31:00 * parv exclaims at "... one of the dependencies that upstream is pulling isn't written to respect build tags and tries to use cgroups on FreeBSD to get container stats ..."😱🤬 18:55:57 <_xor> Good lord did that require more patching than I wanted :| 20:14:26 _xor: meanwhile, bapt has revealed to be that it's a locate DB, produced using locate, but not yet how 20:19:01 _xor: we need to port *something like croups* to FreeBSD. I reckon Solaris contracts might be a good candidate, but maybe I'm also talking out of my ass 21:09:54 meena: why is the puppet-caddy module so sad 21:10:12 i want to bring it up to caddy2 and freebsd but it's so... linux-y 21:11:08 rtprio: i have looked at it once and i really don't know where to start. caddy is… weird 21:11:56 it is, but i'd take 2 line vhosts over 15-20 of boilerplate like nginx 21:13:32 hahh 21:14:20 i use the puppetlabs-apache module, with custom vhost only 21:15:30 https://codeberg.org/pkgbase/puppet-environment/src/branch/production/data/common.yaml#L21 so this is what my vhost definitions look like 21:15:31 Title: puppet-environment/common.yaml at production - puppet-environment - Codeberg.org 21:20:05 I need to switch to mod_tls 21:20:50 but i don't wanna compile it myself… 21:26:53 <_xor> rtprio: Lots of projects are unnecessairly Linux-y, unfortunately :/ 21:27:27 <_xor> rtprio: I use templating to produce my configs, and nginx also supports includes natively, so maybe look at that for 2-line vhosts? (I used to do that and it worked fine) 21:27:50 <_xor> meena: Ah, cool. Didn't know it was a locate db. 21:29:15 <_xor> If FreeBSD were to get cgroup-like functionality, then I'd say just port cgroups to leverage the large body of existing projects out there that use cgroups, but...I'm not super familiar with cgroups and don't know what it provides over jail-specific namespacing. 21:30:50 * _xor just took a quick Google to skim current state of cgroups 21:30:56 _xor: that's difficult because GPL, and because the Linux Kernel is weeeeeeeeird 21:31:10 <_xor> Freezing/restarting seems to be something cgroups do that jails don't. 21:32:12 <_xor> Hmm, I was expecting cgroups to be more granular than jails, but so far it doesn't exactly seem like it. 21:32:50 <_xor> Was just looking at the isolation capabilities offered by cgroups and as I was going down the list I was expecting to hit something that jails don't do, but nothing so far? 21:33:50 i used to, but they were still so verbose 21:34:02 and caddy handles letsencrypt for me 21:34:15 <_xor> That was the one thing I didn't like about docker when I first looked at it years ago, was the lack of namespacing for UIDs/GIDs. Then later it was bolted by mapping from host to container (e.g. host 1001 -> container 1001001, etc). 21:34:43 <_xor> I think jails got that right, isolating ownership and membership as well. 21:35:02 _xor: this vaporware lives in my head for years now, and describes what i want more from jails / FreeBSD: https://scratchpad.pkgbase.live/Tn-dtb8OT--CttN1Djn8lw# 21:35:03 Title: jrc: Principles - HedgeDoc 21:35:07 <_xor> rtprio: Yeah that's fair, I've heard caddy does that. 21:36:35 I use mod_md for that 21:37:11 Holy shit it really has been two years 21:37:31 it's also weird that no linux seems to packag caddy, for reasons i have not entirely been able to find out 21:40:50 Available via Homebrew 21:48:04 meena, Are accounting & resouce control easier to apply to a jail than an account? 21:49:47 ...s/account/normal user account/ 22:52:32 <_xor> Same mechanism, different subject.