-
lw
i don't even dare log into my bank unless they do the same, i just use the phone app
-
lw
hooray for the open internet, i guess
-
rwp
I have had no trouble logging into ebay.com from FreeBSD. Not a problem so far.
-
nimaje
I normally use 'bot' as UA, some sites give better versions they want to give those search engine crawlers
-
rwp
Remembered a reference Dan Langille posted that included a list of things to turn off from periodic in jails, and probably useful elsewhere too.
gist.github.com/dlangille/ce60ac76b69f267a3f1de33495a338fc
-
VimDiesel
Title: Periodic things to turn off in FreeBSD jails · GitHub
-
kenrap
rwp: I'm still able to log into ebay even when using librewolf with the enhance privacy protections. Though some websites like amazon still think I'm a bot and require me to verify I'm not.
-
dvl
rwp: Perhaps we should summarize that and submit a PR, grouping those items into ...something.
-
dvl
rwp: and by we, I hope you.
-
kenrap
My user-agent would look weird as f**k to them
-
lw
rwp: i also had no problem logging in, until i tried to buy something and they suspended me, and then told me that "any related accounts" will also be suspended, so now i'm scared to log into my work account...
-
» rwp chuckles (with dvl) :-)
-
rwp
I had that dlangille reference because it is still in my queue to read, understand, grok completely, and then go fix up all of my systems. I still need to do that.
-
rwp
I have bought a lot of things off eBay using my FreeBSD Firefox. Just verified now that I do not override User-Agent there. (User-Agent Switcher plugin FTW!)
-
lw
it probably didn't help that i made a new account
-
lw
when poudriere attacks 12:10AM up 4 days, 8:24, 2 users, load averages: 13.01, 12.17, 8.73
-
kenrap
Hmm, doesn't the browser ports automatically build them using "Linux" as the OS default user-agent?
-
lw
kenrap: this one (that i pasted above) has both linux and freebsd in, which is weird. i don't know if it's qtwebengine doing that...
-
rwp
Current pkg installed Firefox gives me "Mozilla/5.0 (X11; FreeBSD amd64; rv:121.0) Gecko/20100101 Firefox/121.0" which I just pulled from the log just now.
-
kenrap
my librewolf user-agent shows: Mozilla/5.0 (X11; FreeBSD amd64; rv:109.0) Gecko/20100101 Firefox/117.0
-
lw
yeah, ff's is much more esensible
-
lw
this one is from qutebrowser
-
kenrap
Well, I was definitely wrong on both accounts thinking that the obscure user-agent was about fingerprint resisting and that "Linux" is an automatic default for all browsers built in ports in general.
-
rwp
I don't know why any site would use User-Agent as anything more than a mild hint but some do. It's insane.
-
kenrap
-
VimDiesel
Title: GitHub - fingerprintjs/fingerprintjs: Browser fingerprinting library. Accuracy of this version is 40-60%, accuracy of the commercial Fingerprint Identification is 99.5%. V4 of this library is BSL licensed.
-
SomeRandoUser
Is it possible for linux and freebsd to use the same swap partition?
-
lw
technically yes, but possibly they won't like that they use different partition types
-
lw
me: "well, this vm provider only offers linux, i'll use zfs on there and i'm sure it'll be fine"
-
lw
my vm:
-
lw
2!fuchsia /home/lexi# zfs destroy -r backup/data
-
lw
Connection to fuchsia.eden.le-fay.org closed by remote host.
-
jbo
here we go building lang/rust again...
-
lw
jbo: i feel your pain [02] 01:08:43 lang/rust | rust-1.75.0 build 01:07:54 72.2% 8%
-
lw
i need to get around to submitting enough PRs that i don't need to build ports from source anymore
-
jbo
not sure whether you truly do. because before I left the office I turned off my 32-cores 256 GB RAM build server so now I'm stuck building on a stupid desktop machine
-
jbo
what do you mean, lw? you can always just use an overlay. should be unrelated to PRs entirely.
-
lw
jbo: i have devel/electron25 in my tree, so i do
-
jbo
not sure how submitting more PRs helps with that?
-
lw
no, these are different problems
-
lw
1) electron takes ages to build, so i feel your pain, 2) i need to build ports because the default options are stupid, but we can fix that with subpackages, like enabling jack in pulseaudio
-
lw
but i have to send patches to enable subpackages where needed
-
jbo
aye
-
jbo
hmm, for some reason my repo also has devel/electron25 in it. I better go hunting
-
jbo
> electron25-25.9.8_2 Build cross-platform desktop apps with JavaScript, HTML, and CSS
-
lw
it's signal-desktop for me
-
jbo
oh, that's right!
-
lw
fricking hate signal
-
lw
the guy who created it claims to be an anarchist but threatens legal action against anyone who makes a third-party implement of their protocol
-
lw
how the fuck does that work
-
jbo
the sentence of "Build cross-platform desktop apps with JavaScript, HTML, and CSS" is just enought of a hint that something like that shouldn't exist IMHO :D
-
jbo
"here are technologies that are purposefully designed not be used for desktop applications put together to make desktop applications"
-
lw
oh this is fun (on my linux vm) fuchsia.eden.le-fay.org login: [ 249.856720] Kernel panic - not syncing: System is deadlocked on memory
-
lw
i guess 2GB RAM is not enough to destroy a zfs dataset?
-
jbo
lw, I still haven't figured out why syncoid does not succeed on anything other than the first sync for me
-
lw
jbo: i'm fighting with syncoid right now (it's what caused all this) but at least it's not syncoid's fault...
-
jbo
lw, one "problem" is that the progress bars of each snapshot rarely reach 100%
-
jbo
then I get
-
jbo
mbuffer: error: outputThread: error writing to <stdout> at offset 0x0: Broken pipe
-
jbo
and cannot mount '/storage/sanoid_test/beefy02/poudriere/jails/140Ramd64-main-ref': failed to create mountpoint: Permission denied
-
jbo
but one some datasets it works
-
jbo
.__.
-
lw
jbo: broken pipe sounds like the ssh connection died, anything on the remote?
-
lw
no idea about permission denied though, i guess you're sending as non-root and using zfs delegated administration? i've never tried that
-
jbo
lw, it's a very stable NAS type machine doing exactly nothing. never had _any_ issues with it. also on the same network just one switch away
-
jbo
yes @ second
-
lw
that's a poudriere dataset, i guess it has a mountpoint set in /poudriere or something and you don't have permission to create it...
-
lw
(you = the non-root user)
-
jbo
yeah I'm using a poudriere dataset to test sanoid/syncoid :D
-
rtprio
hrm, is it worth a dedicated build host (for poudriere, and the world) ?
-
jbo
lw, well on the destination host:
-
jbo
zfs allow storage/sanoid_test/beefy02
-
jbo
user jbo create,mount,receive
-
lw
rtprio: like a dedicated computer? imo, no, unless you're doing constant back-to-back builds
-
lw
rtprio: a dedicated VM though, sure
-
jbo
rtprio, I have three separate dedicated build hosts .__.
-
lw
jbo: i have never used delegated admin but i guess you need to find a way to make it not send the mount attribute
-
jbo
lw, agreed
-
lw
jbo: ... or create /poudriere and make it owned by you but that doesn't sound like a good solution (especially if you back up >1 host)
-
lw
jbo: you have 3 computers dedicated to building ports? how many do you maintain??
-
jbo
lw, I really want this sanoid/syncoid situation to work for non-root users.
-
jbo
lw, I have a "production poudriere server", a "development poudriere server" and a "lol I hate my life poudriere server"
-
lw
jbo: i might play with this when i have some free time in which case i'll let you know what i learn
-
jbo
to be fair, I usually just run two.
-
lw
other than that i probably can't be much help though
-
lw
jbo: did you try setting canmount=noauto on the entire hierarchy?
-
rtprio
it would be a vm
-
rtprio
I guess the packages have usually been enough for me
-
lw
rtprio: a vm to build packages sounds completely reasonable to me. i don't do that myself but like, why not
-
jbo
rtprio, running poudriere in a VM is fine. however, you can also ditch the VM and just run poudriere in a jail. works well too. the reason why I run one poudriere in a VM is because kernel forward compatibility "restrictions"
-
jbo
rtprio, if you have no reason not to use official packages then keep doing that. poudriere is fun and works great but rabbit hole mechanics apply.
-
lw
rtprio: although note that because poudriere creates its own jails, you don't need like a "14 build host" and "15 build host", just create jails of the appropriate version and put COMPAT_FREEBSDxx in your kernel
-
jbo
lw, the canmount=noauto would be for the dataset on the dest host, right?
-
lw
jbo: yeah, set it on the dest host (and hope it doesn't get overwritten)
-
jbo
lw, what would override it potentially?
-
lw
jbo: well, if syncoid notices the property is "wrong" compared to the source system and resets it. i don't know off hand if it does this
-
lw
(i don't back up my poudriere filesystems)
-
jbo
well that would apply to a non-poudriere fs too
-
jbo
I'm just using the poudriere ds because that is a decent test and I don't care if I trash it :p
-
lw
i do backup my root pools and never noticed / getting mounted over the backup server's root
-
jbo
so what does the mountpoint property show on your destination host dataset?
-
lw
# zfs get mountpoint zroot/ROOT/default
-
lw
NAME PROPERTY VALUE SOURCE
-
lw
zroot/ROOT/default mountpoint / received
-
lw
5!fuchsia /home/lexi# zfs get mountpoint backup/hemlock/zroot/ROOT/default
-
lw
NAME PROPERTY VALUE SOURCE
-
lw
backup/hemlock/zroot/ROOT/default mountpoint /backup/hemlock/zroot/ROOT/default default
-
lw
first = source, second = backup host
-
lw
so it seems like it's not sending the property
-
jbo
hmm... so the mountpoints on my destination host datasets are all set to something other than what the source host has - which is good.
-
lw
maybe more relevant:
-
jbo
I remember the first time I was dealing with ZFS send|recv I ended up with a broken dest host because I was recursively snapping/sending zroot which caused the remote host to boot from the wrong dataset...
-
lw
[11!] root@hemlock /etc/periodic/daily
-
lw
# zfs get canmount zroot/ROOT/default
-
lw
NAME PROPERTY VALUE SOURCE
-
lw
zroot/ROOT/default canmount noauto received
-
lw
6!fuchsia /home/lexi# zfs get canmount backup/hemlock/zroot/ROOT/default
-
lw
NAME PROPERTY VALUE SOURCE
-
lw
backup/hemlock/zroot/ROOT/default canmount on default
-
lw
but then, if it doesn't send canmount *or* mountpoint, i don't understand why you had this problem to begin with
-
lw
because the mountpoint would just be default on the backup host, right?
-
jbo
just checked, it's indeed default on the dest host
-
lw
hm
-
jbo
any ideas? :/
-
lw
jbo: is it possible that 'zfs send' of /storage/sanoid_test/beefy02/poudriere/jails created it with root as owner, and now you can't create the child filesystem because... it's owned by root?
-
jbo
lw, well I mean when I zfs list on the dest host I see datasets created/send by syncoid
-
lw
jbo: i'd suggest asking the sanoid people, i know jim salter (who wrote it) works for klara sometimes so they're probably open to support freebsd
-
jbo
I'd assume that this is just something stupid that I would have liked to be figured out by now :p
-
jbo
lw, here's my syncoid line: syncoid --no-privilege-elevation --no-sync-snap --recursive zroot/poudriere jbo⊙111:storage/sanoid_test/beefy02/poudriere
-
lw
i've never tried it as non-root so i don't really have any idea how it works :-/
-
jbo
you could try now :p
-
lw
i cannot because i have to wait for my backup vm provider to upgrade the memory...
-
lw
i thought 2GB might be okay for zfs but it turns out it's really not :-d
-
jbo
my datacenter remote host that does zfs recv has 4GB
-
lw
my current situation is, "zfs destroy backup/old-fs" causes a kernel panic
-
lw
soooo i'd rather not touch it until that's sorted :-)
-
jbo
a real kernel panic?!
-
jbo
not just OOM killer?
-
nimaje
hm, I throught under 4GB you should tune for performance and under 1GB you have to tune to have zfs running properly
-
lw
jbo: fuchsia.eden.le-fay.org login: root
-
lw
Password:
-
lw
fuchsia:~# zfs destroy -r backup/data
-
lw
[ 1891.754792] Kernel panic - not syncing: System is deadlocked on memory
-
lw
[ 1891.754804] CPU: 0 PID: 1 Comm: init Tainted: P O 6.6.9-0-virt #1-Alpine
-
alepzi
hey i hear fuchsia is pretty cool. start rewriting freebsd in rust wen?
-
lw
i might replace this vm with a proper server at some point but for now i just asked them to add another 6GB of memory
-
jbo
lw, you can get a VM from a provider that offers zfs recv as a service :)
-
lw
jbo: are any of those providers not terrible? this is a small company run by a guy i know on irc...
-
jbo
rsync.net
-
jbo
just saying
-
lw
they're pretty huge, that puts me off
-
lw
also i pay £1/150GB for disk space, which is more than most backup services, but cheap compared to a lot of VM providers, and i can run my own OS
-
lw
(well, any OS as long as it's linux, but still)
-
jbo
which brings me to a question: how do you backup a zfs-native-encrypted dataset over zfs send|recv ?
-
lw
i use a separate encryption key on the source host and the backup host. and yes, this is not a good idea if you are encrypting secret data... for my use-case it's fine
-
lw
but i believe you can tell syncoid to use zfs send -x which sends the raw encrypted data
-
jbo
can I zfs send the encrypted dataset? so it's still encrypted on the dest host?
-
lw
yes
-
jbo
neat
-
lw
if you send it with -x, the destination host can't decrypt it at all, the only information it has is that the dataset exists
-
alepzi
so it's like live backups?
-
lw
obviously you can't mount the dataset in that case
-
lw
(well unless you copy the encryption key to the backup host)
-
jbo
nah I just want to have a retrievable copy - not accessible on the dest host
-
lw
alepzi: that's how zfs backups works in general, you end up with a copy of the source filesystem on the destination that you can access normally
-
lw
jbo: this is again something i've never tried, but i might play around with it at some point
-
jbo
lw, so far I have only used passphrases for zfs encryption anyway. might want to look into using a yubikey tho
-
lw
i just use /etc/zfs/data.key. which... yeah, this is not secure, but the only reason i use encryption is so i can throw out old disks without wiping them
-
jbo
I was a bit "meh" to learn that I can't "properly" use a yubikey with KeepassXC
-
jbo
lw, that sounds like a terrible idea (the "without wiping them" part)
-
lw
jbo: why? they're encrypted, no one can read the data
-
nimaje
afaik the password is used to protect a key that gets generated when you decide to do encryption
-
jbo
lw, maybe not now
-
lw
not now? what do you mean
-
jbo
encryption gets broken all the time down the road
-
lw
eh
-
lw
if someone cares enough about my secret data that they break AES-256 to read it, they can have it
-
lw
more power to them
-
jbo
:D
-
lw
like i said, the data on these disks is not that secret, if it is, do not do like i do :-)
-
jbo
mbuffer: error: outputThread: error writing to <stdout> at offset 0x0: Broken pipe
-
jbo
mbuffer: warning: error during output to <stdout>: Broken pipe
-
jbo
:<
-
jbo
warning: cannot send 'zroot/poudriere/data/packages@autosnap_2024-01-11_02:05:59_daily': signal received
-
jbo
warning: cannot send 'zroot/poudriere/data/packages@autosnap_2024-01-11_02:05:59_hourly': Broken pipe
-
jbo
[00:57:55] [03] [00:56:42] Finished lang/rust | rust-1.75.0: Success
-
jbo
at least that... slowest rust build yet.
-
lw
[02] 00:13:15 devel/electron27 | electron27-27.2.1 build 00:08:35 8.9% 2.6%
-
jbo
lw, any ideas or hints regarding the broken pipe?
-
lw
why is it building electron27
-
lw
did they upgrade signal?
-
alepzi
lw so do you know how ZFSBOOT_GELI_KEY_FILE works? like how i can generate one?
-
lw
jbo: broken pipe must be a symptom of something else, are there no errors before that? or something on the remote host (in messages or auth.log or something)?
-
lw
alepzi: never used geli, sorry
-
alepzi
isn't that what does the zfs disk encryption you talkeda bout?
-
lw
alepzi: although if it's like zfs, i would dd from /dev/random
-
lw
i'm using zfs native encryption, that's different from zfs-on-geli which is an older method
-
lw
(older but not necessarily worse, it has some advantages)
-
alepzi
how do i use zfs native encryption with unattended bsdinstall?
-
lw
i don't know, sorry
-
alepzi
how do i use it period then plz?
-
alepzi
or how do you use it?
-
jbo
geli is device/disk level encryption. zfs is dataset level encryption
-
lw
hang on, my desktop is so slow when ports is building
-
lw
-
VimDiesel
Title: OpenZFS Native Encryption | Klara Inc
-
jbo
lw, broken pipe does not show up anything on the dest hosts auth.log
-
alepzi
which type is enabled by ZFSBOOT_GELI_ENCRYPTION?
-
jbo
lw, first it goes "Accepted public key", then "received disconnect" then "disconnected"
-
lw
alepzi: since it has GELI in the name i'm guessing that is for zfs-on-geli
-
alepzi
ya
-
alepzi
ok i'll read that link thx
-
jbo
-
alepzi
while i'm reading it any of you guys switched from geli to zfs native encryption and regretted it for this or that?
-
VimDiesel
Title: ZFS - GELI vs ZFS encrypted dataset | The FreeBSD Forums
-
alepzi
nod
-
lw
i think the main downside of zfs native encryption is it exposes dataset names. so if you have a dataset called mypool/illegal-anarchist-bomb-recipes, don't encrypt that with zfs
-
jbo
storage/media/adult :D
-
alepzi
does it slow disk i/o, use more cpu, anything disadvantages like that?
-
lw
geli encrypts the entire disk, so without the encryption key you can't even tell there's a zfs dataset on it
-
lw
alepzi: not that i know of, both should use AESNI for encryption on modern CPUs
-
jbo
one feature I like of zfs-native-encryption over geli is that you can ad-hoc load and unload keys
-
alepzi
ok well that cuts out the whole geli layer so prolly smart for me to switch to
-
lw
alepzi: however one benefit of zfs native encryption (as i was discussing with jbo earlier) is you can transparently send the encrypted dataset to a remote system without decrypting it
-
alepzi
oh hmm
-
jbo
for example on my laptop I only load keys of datasets I need, then unload them again.
-
alepzi
that does sound pretty cool
-
jbo
can't easily do that with GELI afaik unless you have more hardware
-
jbo
fire up the web browser -> unload dataset keys :p
-
lw
yeah, geli can only decrypt the entire pool
-
alepzi
so kinda seems like native zfs encryption is better in every way except dataset name leak
-
lw
you'd need separate pools to do that
-
jbo
lw, can you have more than one pool on a drive with geli?
-
lw
jbo: i've never tried but couldn't you apply geli separate to two partitions? that's how encrypted swap works
-
jbo
dunno
-
lw
just do geli on partition level, not disk level
-
jbo
hence I"m asking :p
-
lw
i think geli can work on any geom device and a partition is a geom device...
-
jbo
yeah always encrypt your swap for sure :D
-
jbo
that makes sense
-
jbo
lw, that mediaelch PR probably has to wait. my desktop is awfully slow at testporting
-
lw
jbo: no rush, i only use mediaelch when i download entirely legal, public domain films from reputable websites
-
jbo
lw, is there a "zfs way" of checking whether the src and dest datasets are "equal"?
-
lw
ok why is poudriere making my wayland so sad
-
jbo
something like mtree but then to check whether sanoid/syncoid did the thing
-
jbo
wayland is making itself so sad :p
-
» jbo ducks
-
lw
what the heck
-
lw
Jan 11 01:43:07 ilythia kernel: swap_pager: out of swap space
-
lw
Jan 11 01:43:07 ilythia kernel: swp_pager_getswapspace(28): failed
-
lw
Jan 11 01:49:16 ilythia kernel: swp_pager_getswapspace(27): failed
-
lw
Jan 11 01:55:29 ilythia kernel: swp_pager_getswapspace(11): failed
-
jbo
better that than a broken pipe
-
lw
i have 32GB RAM and it's not even close to used
-
lw
Mem: 3772M Active, 14G Inact, 2903M Laundry, 9971M Wired, 1559M Buf, 1228M Free
-
lw
ARC: 3835M Total, 1480M MFU, 1025M MRU, 30M Anon, 65M Header, 1213M Other
-
lw
wtf is 14GB inact doing?
-
jbo
you might want to read about memory management of the FreeBSD kernel
-
lw
jbo: will that give me a magical sysctl to fix this problem?
-
jbo
-
VimDiesel
Title: Memory - FreeBSD Wiki
-
lw
-
lw
swap is 100% full, memory is empty
-
lw
<jbo> lw, is there a "zfs way" of checking whether the src and dest datasets are "equal"?
-
lw
jbo: i'd probably do like diff =(zfs get all mypool) =(ssh myhost zfs get all mypool)
-
lw
but i guess that's not what you mean by "zfs way"
-
jbo
I'm looking for zfs-diff I guess :p
-
lw
i don't think that exists
-
jbo
it does
-
lw
does it? why did you ask then :-P
-
lw
oh this shows all differences
-
lw
i thought you just wanted properties
-
jbo
because the manual says "between two snapshots of a given filesystem"
-
lw
but that is not what you asked, i am bad at reading
-
lw
jbo: this wiki page is not helpful, why do i get 'out of swap space' errors when i have 14GB inactive?
-
jbo
lw, because your swap is full according to your own reports
-
lw
Mem: 3783M Active, 14G Inact, 2896M Laundry, 9753M Wired, 1558M Buf, 930M Free
-
lw
root@ilythia /h/lexi# swapoff /dev/nda0p2
-
lw
swapoff: /dev/nda0p2: Cannot allocate memory
-
lw
...
-
lw
i blame the vmm
-
lw
jbo: anyway if 14GB of RAM is Inact why would it matter if swap is full?
-
lw
isn't inact meant to be basically pages on the freelist
-
jbo
inactive is not "free". that would be more your clean queue
-
lw
this reminds me of early FreeBSD ZFS where it didn't free ARC pages properly and you'd run out of memory, except i limited ARC to 8GB
-
jbo
the inactive queue holds pages that need to be passed to the backing storage first
-
lw
jbo: are you sure? the wiki says it's "pages evicted from the buffer cache", in which case surely they can't be pending writes to the backing store
-
jbo
and AFAIK inactive pages don't become free pages immediately. instead, inactive pages are flushed, then become cache pages and only then free pages (if it ever happens)
-
lw
in any case something is definitely wrong here, because i'm barely using any memory and yet something is causing out of memory errors
-
jbo
everything I say is AFAIK
-
lw
top says 3.2GB active, which is 10% of total memory...
-
jbo
I haven't studied this in a while
-
jbo
lw, any chance that you're getting screwed up by TMPFS with insufficient memory?
-
lw
no tmpfs here, i disabled it in poudriere
-
jbo
that must be fun when building electron
-
lw
it's not too bad, takes about 4 hours
-
jbo
wut? is that a clean build or with cache?
-
lw
maybe it's my ~5MB/s of background NFS I/O causing pages to not be freed
-
lw
jbo: clean, with ccache it's like 50 minutes
-
jbo
sounds like somebody is streaming
-
lw
i might post this to a list because i'd like to know what's going on. not sure what the right list is though... -current?
-
lw
or -questions
-
jbo
are you running current?
-
lw
yes
-
jbo
then I'd say so.
-
lw
although i'm pretty sure i've seen this on releng/14.0 as well
-
jbo
the current ml has the benefit of having more developers with "intimite" knowledge of VMM (I assume)
-
lw
interestingly there are similar messages from earlier while i wasn't running poudriere: Jan 3 18:26:54 ilythia kernel: swap_pager: out of swap space
-
alepzi
anyone see more kernel panics when switching to zfs native encryption from geli?
-
lw
yes, but only because of PR#275306 which was fixed in (i think) 14.0-p3
-
VimDiesel
275306 – 14.0-RELEASE: ossl(4) causes data corruption on encrypted ZFS filesystems/volumes
bugs.freebsd.org/bugzilla/show_bug.cgi?id=275306
-
jbo
alepzi, what are these random questions about?
-
alepzi
wow
-
lw
well, in that case i didn't switch "from geli" since i've never used geli
-
jbo
well, that sounded more negeative than necessary
-
alepzi
jbo why assume they're random?
-
alepzi
not sure if it's 14 or zfs but lately it's felt a lil buggy in freebsd and zfs land
-
alepzi
i think .0 releases are usually a lil rough though
-
jbo
lw, based on what I understand, syncoid is "by default" not setting the mountpoint on the dest host
-
lw
jbo: that matches my limited experience
-
jbo
lw, why does the dest host dataset need allow mount then?
-
jbo
"then"
-
jbo
I mean in general
-
jbo
you'd think that it can replicate the dataset without mounting
-
lw
jbo: my suspicision is, say the filesystem is /foo and the child filesystem is /foo/bar, and you've sent /foo and /foo is owned by root, now you can't can't create /foo/bar? but this doesn't really make sense since the zfs send for /foo should have included the mountpoint... so... idk
-
jbo
not feeling confident running this on a production server yet :/
-
jbo
maybe one day I'll understand how zfs mountpoints truly behave
-
jbo
I'm currently also in the process of ditching the jail management solution I used in favor of just raw jail handling
-
lw
today in skynet news | 1 Jan 11 Jamie Landeg-Jones ( 19) BSDforge is alive.
-
jbo
lw, the mediaelch testport for qt5 just failed - did you testport that?
-
lw
jbo: i did, can you show the log?
-
jbo
lw, on which target (version, arch)?
-
lw
i can't testport it right now since i'm bulding normal ports (you know, electron)
-
lw
jbo: uh... i guess 15-current, amd64? but whatever you have is fine
-
jbo
well as a committer I have to test reasonable/sane configurations which is why submission-to-commit can actually take such a long time and why its nice to have a whole separate beefy build server
-
lw
oh, i meant, can i see the build log from the failure you mentioned
-
jbo
lw, the qt5 flavor failed on 14.0-RELEASE on amd64:
bsd.to/17L6/raw
-
VimDiesel
Title: 17L6
-
lw
ty
-
jbo
you're probably missing the buildutils
-
lw
oh that's weird, i'm sure i fixed that for qt6, maybe qt5 needs a different USE
-
jbo
buildtools:build and qmake:build if memory serves right
-
jbo
yes
-
jbo
-
VimDiesel
Title: ports - FreeBSD ports tree
-
lw
no, it doesn't use qmake, it uses cmake
-
jbo
still needs the build tools
-
lw
does it still need qmake though, that's weird
-
jbo
yeah, see the commit I made & linked. that's also a cmake based build
-
lw
jbo: ok, i'll test a fix once this poudriere is done
-
lw
i'm sure i tested it with testport though because i said in the PR: "fix testport errors"
-
lw
maybe that doesn't build both qt6 and qt5 version
-
CrtxReavr
-
VimDiesel
Title: Pre-announcement of BIND 9 security issues scheduled for disclosure 17 January 2024
-
lw
CrtxReavr: this is going to be yet another nsupdate issue, i bet
-
jbo
lw, you have to test all flavors
-
lw
jbo: i thought testport did that. but clearly not
-
jbo
lw, if you don't specify the flavor it will build the default flavor
-
lw
(i did test qt5 manually but i probably had builttools installed locally)
-
jbo
:)
-
jbo
lw, you're running wayland, right?
-
lw
i am
-
jbo
I assume that is not nvidia hardware then?
-
lw
jbo: no, Radeon RX 6800 XT
-
jbo
never had a non-intel or non-nvidia GPU. does that work well?
-
lw
it has worked flawlessly in freebsd (except for that loader(8) issue), but i haven't tried any real 3D apps on it yet
-
jbo
I adore that nVidia provides FreeBSD drivers themselves officially. no CUDA tho :(
-
lw
i've been meaning to try Factorio or X4 but i always have other stuff i need to be doing, like these darned ports
-
jbo
I can land your ports more quickly if you test then more thorougly in the future :)
-
lw
well ok, i mean i didn't even know testport existed when i submitted these
-
jbo
that's fine - it's a learning process. nothing wrong with that. that's why I tell you :)
-
lw
i guess if i was a ports export i could just commit them myself, but i'm not, so i do what i can :-)
-
jbo
now you also know that testport doesn't build all flavors :p
-
lw
s/export/expert
-
jbo
that's a long way to go - gotta start somewhere tho :)
-
lw
jbo: i didn't mean i waste time waiting for you, i mean i waste time fixing the ports because of my own errors
-
jbo
nothing wrong with that. gotta learn stuff.
-
lw
but also i've been submitting a lot of patches for the new version of net-im/toot recently
-
lw
which is actually pretty interesting
-
lw
... also i submitted an update patch for the current net-im/toot and before it was applied a new version was released, so i made a patch for that, heh
-
jbo
that's a good start :)
-
lw
wait, the came out wrong
-
lw
i mean the author of net-im/toot is making a new, unrelated app which i've been submitting packages for, and in the mean time i also made some patches for the existing port
-
lw
the former patches are not freebsd related
-
lw
jbo: so here's a question, how do you become a ports committer? i've submitted a few patches for src but i don't see any benefit to having a src commit bit... but being able to commit to ports would handy. is it just a matter of learn how things work then asking?
-
jbo
lw, as far as I can tell its much, much easier to become a src committer than a ports commiter. AFAIK there are something like 4000 committers but only 165-ish are ports committers. the rationale is that screwing up in src is less disasterous than screwing up in ports
-
lw
hmm
-
lw
i guess it's true that my src patches have been accepted much more easily than ports commits
-
jbo
lw, in my case it was engaging in FreeBSD community stuff for the better part of 10 years, contributing to ports in terms of PRs and patches and stuff for a few years and maintaing a healthy amount of ports (although that one is low in my case). plus I am an "embedded developer" so I played the "I touch a lot of software that is not commonly used" card
-
lw
port is basically a rube goldberg machine in the end
-
lw
jbo: 10 years? no wonder there are only 165 committers
-
jbo
there are no hard rules on this AFAIK. but there is a vote even after you pass the basic "does it make sense?" bar
-
jbo
my recommendation: just keep going. don't try to force anything.
-
lw
i'm not pushing, i'm just curious
-
jbo
that's the correct approach :)
-
jbo
I'm still under mentorship and I don't expect that to change any time soon either.
-
jbo
my blood pressure is still skyrocketing ever time I push to the repo :p
-
lw
i set up a git fetch hook to mention you on irc every time you push to ports
-
lw
(this is lie, i did not do that)
-
jbo
hah :p
-
jbo
yeah that was an almost-shit-my-pants-again moment indeed
-
lw
there has to be a better way to do this stuff
-
jbo
what stuff?
-
lw
i submitted a PR for a port recently because it wrongly installed a binary setuid root, and it was completely ignored until an unrelated non-committed submitted a PR which a patch which ended up being committed
-
lw
s/non-committed/non-committer
-
lw
jbo: ports stuff, like not putting so much load on a small number of people
-
jbo
lw, small number of people is probably very intentional in this case.
-
jbo
lw, you can always mail to the ports ML to bring stuff to attention
-
lw
i think (i don't mean this in a negative way at all) that ports committers are pretty overloaded
-
jbo
stuff easily gets missed on bugzilla especially if its not properly assigned, tagged and stuff. we do luckily have the triage team tho :)
-
lw
i did mail -ports about something else (devel/py-urwid has been broken for months) and got zero replies
-
lw
again, not complaining. but it's not a great situation
-
jbo
FreeBSD is certainly not perfect - we all try to do our best tho.
-
jbo
python stuff is it's own story entirely. you can mail python@ for stuff if necessary
-
lw
i know it's not perfect, i'm not complaining, it just feels like maybe there's a better way to allocate available resources? idk
-
jbo
based on my whole-life experience, I think the "active" FreeBSD ports team is doing an excellent job
-
jbo
it's always a trade off tho :)
-
lw
this is really just a response to learning there's only 165 ports committers, i thought there would be more
-
lw
oh, fixed my swap problem Swap: 18G Total, 2048M Used, 16G Free, 11% Inuse
-
lw
at least until it decides that's not enough either
-
jbo
don't quote me on the exact number. but when I was given the commit bit I was congratulated with "welcome to an extremely exclusive club" :D
-
jbo
might be 168 now, 172, dunno.
-
jbo
it was around 165 when I became one.
-
lw
so for example like, the issues in my ports have been because they're new ports and i did them wrong, but i'm fairly sure i could update an existing port with fewer issues
-
jbo
being a ports committer is not what I would consider a fun activity btw. It's just my way of contributing / "giving back"
-
lw
mainly because someone else already did the hard part
-
lw
i certainly wouldn't expect it to be fun, i just want to fix issues on my freebsd systems :-)
-
lw
lmao if i wanted something fun i'd choose literally any git repo other than ports.git
-
jbo
you can help a lot without a commit bit. being a commiter just puts the blame and pressure on you. PRs that contain patches for existing ports are alway, always highly appreciated.
-
jbo
not to spill any secrets here but I think it's also self explanatory that committers are picking which PRs they handle. if you're a submitter with a good reputation you'll get much quicker turn around.
-
lw
i'm used to people hating me but i don't think i've submitted enough PRs for that quite yet
-
jbo
it's more about the quality of the patches I'd say
-
lw
well i do have 16 open PRs. but uh, i think most of those are ones i cc'd myself on
-
alepzi
imagine if commercial users of freebsd hired 10 ppl to do nothing but fix bugs freebsd would get so good
-
lw
on a more src-oriented note i don't understand why we can't get this committed:
freebsd/freebsd-src #957
-
VimDiesel
Title: libkrb5: avoid crash if MD4 is not available by llfw · Pull Request #957 · freebsd/freebsd-src · GitHub
-
lw
it's broken, upstream will never be updated, the fix is trivial
-
lw
alepzi: they do? netflix, klara, darpa, chelsio, amazon, iXsystems, plenty of other companies pay people to work on freebsd
-
jbo
and sony :p
-
lw
ilythia /s/main (main)> git log|grep 'Sponsored by'|head -5000|uniq -c|sort -nr|head -10
-
lw
37 Sponsored by: Netflix
-
lw
33 Sponsored by: Juniper Networks, Inc.
-
lw
30 Sponsored by: The FreeBSD Foundation
-
lw
27 Sponsored by: The FreeBSD Foundation
-
lw
26 Sponsored by: Serenity Cyber Security, LLC
-
lw
25 Sponsored by: Netflix
-
lw
24 Sponsored by: Juniper Networks, Inc.
-
lw
24 Sponsored by: Kumacom SAS
-
lw
22 Sponsored by: Netflix
-
lw
21 Sponsored by: Innovate UK
-
lw
('the freebsd foundation' includes a lot of donation from companies like sony)
-
jbo
lw, to round off this conversation: just keep going and don't feel limited by not being able to commit yourself. everything you can contribute you can without that ability.
-
lw
wait, that was a bad command
-
lw
ilythia /s/main (main)> git log|grep 'Sponsored by'|head -5000|sort|uniq -c|sort -rn|head -10
-
lw
1528 Sponsored by: The FreeBSD Foundation
-
lw
648 Sponsored by: Netflix
-
lw
352 Sponsored by: Klara, Inc.
-
lw
343 Sponsored by: Rubicon Communications, LLC ("Netgate")
-
lw
238 Sponsored by: Juniper Networks, Inc.
-
lw
173 Sponsored by: Arm Ltd
-
lw
166 Sponsored by: Beckhoff Automation GmbH & Co. KG
-
lw
109 Sponsored by: Beckhoff Automation GmbH & Co. KG
-
lw
104 Sponsored by: DARPA
-
lw
99 Sponsored by: Chelsio Communications
-
jbo
how about not spamming the channel?
-
lw
that's 3760 out of 5000 commits that were sponsored, well over 50%
-
jbo
lw, regarding your GitHub pull request: 1\ I think that whole GitHub story is a bit controversial, 2\ Personally (!!!) I would have extendend that krb5_set_error_message() message to say why (i.e. because MD4 is lacking)
-
lw
jbo: no harm when it's this quiet
-
kenrap
If one squints really hard, you might be able to see a sony commit in there somewhere ;)
-
mfisher
haha
-
jbo
nice use of unix piping tho, lw
-
lw
it's still not perfect because of the whitespace, but if i try it again you'll probably murder me
-
jbo
nah :p
-
jbo
but I assume that will be some sed WOL
-
lw
i was thinking awk '{print $3-}'
-
lw
i guess freebsd awk doesn't like that syntax
-
lw
-
lw
i wonder why DARPA submits so many patches
-
lw
oh, that's CheriBSD
-
alepzi
lw wow cool
-
lw
the main difference between freebsd and linux is linux has a lot of users who sell it to customers (redhat, canonical, ...) while freebsd tends to have users who use it internally (netflix, klata, juniper, ...)
-
lw
so the 'end user' experience in freebsd might be less polished but that doesn't reflect on the internals
-
lw
like, netflix is not sending patches to make wayland better
-
lw
(well idk, maybe they are, but i imagine that's not their main focus)
-
kenrap
Hmm, would Netflix use wayland in any way for their business internals?
-
kenrap
That would be interesting to know
-
lw
kenrap: perhaps some of their freebsd-focussed employees run it on their desktop?
-
lw
i have no idea though
-
lw
heh: 499e84e16f56013e24fb69ae8ecfe75180e8d704 copyright: Bump the copyright date. Sponsored by: Netflix
-
lw
i doubt netflix cares about the copyright date so i guess they just pay imp@ to do stuff
-
_xor
I wish Wayland would get more love, but from the opinions I've gotten so far, the API is a pain in the neck.
-
_xor
...and I run Wayland on my desktop.
-
lw
in fact all of imp's commits seem to be sponsored by netflix
-
lw
_xor: i know netbsd complained about it because they didn't want to implement libinput...
-
lw
which, is fair, they have their own input system, why should they clone linux's?
-
kenrap
lw: netflix technically uses a specialized FreeBSD system derived from CURRENT, so your idea is not farfetched at all.
-
lw
my main concern about wayland is that GNOME is going to dominate it with their CSD crap and whatever else and ruin it for normal users
-
zwr
well, the X11 API also sucks, is Wayland at least an improvement?
-
lw
zwr: yes and no, it's an improvement for systems that use KMS/DRI (which includes freebsd) but it means the compositor (window manager) has to manage all the OS-specific stuff so niche platforms like netbsd get screwed unless they implement the Linux APIs
-
lw
... or write their own compositor, which isn't really a great solution
-
lw
it's fair to dislike it because it's another aspect of the Linux Leviathan, which is the reason we have timerfd in freebsd now
-
lw
posix is dead, all that matters is being compatible with linux, the microsoft of unixes
-
lw
well adding 16GB of swap space has apparently fixed my 'out of swap space' errors but i don't really understand why
-
lw
i still have 11GB of Inact memory
-
zwr
to be honest, timerfd has the benefit that you can poll() (or any better "wait on many fds" function) for a timer or file or anything else that works via fds and create something like a reactor program, and that's a design that works really well for many kinds of programs and scales well with threads up to a point. you can rig other APIs like clock_nanosleep() to do the same thing, but it means spawning a
-
zwr
thread which is a waste of resources. microsoft actually got this right with more or less everything being a HANDLE there.
-
lw
zwr: but you can already do this with kqueue EVFILT_TIMER
-
zwr
but yes, Linux generally has inferior API design to the BSDs, and it pains me whenever a BSD implements an inferior Linux function for Linux compatibility. Most recently, NetBSD got getrandom() when they already had the superior arc4random()
-
lw
the functionality of timerd is fine *for linux* because their epoll() api is so limited, but freebsd already has an API to do that... but we have to implement the Linux API because Linux is the standard
-
voy4g3r2
anyone here work with iocage at all? i am getting confused.. i create a jail, with an ipaddress, then i ssh into this new ip address...but it does not ssh into the machine..
-
voy4g3r2
nevermind..
-
voy4g3r2
iocage console <jail name> for now
-
» lw wonders why traceroute6 doesn't show IP addresses
-
lw
ah, you need -l
-
lw
but this should be the default for consistency with traceroute
-
yuripv
probably done due to v6 address lengths
-
lw
there's basically no difference in practice
le-fay.org/tmp/30d/vUeM5r.txt
-
lw
i might send a patch to make this default
-
lw
-
VimDiesel
Title: traceroute6: remove -l flag by llfw · Pull Request #1023 · freebsd/freebsd-src · GitHub
-
lw
meena: i don't remember if we talked about this, but can non-committers submit patches on phab? and if so how do you know who to add as reviewers?
-
yuripv
lw: yes, you can create account and submit reviews
-
yuripv
there are some rules in there that would possibly add the reviewers (if someone is interested in the parts you modify), otherwise check last committers who modified it, and/or send a request to hackers@/net@?
-
tykling
hello o/ how do I go about debugging leaking nmbclusters? I have a pair of bird bgp routers running 13-STABLE from about a month ago and the active router is leaking mbuf clusters like crazy
-
tykling
I didn't have metrics for mbufs until yesterday so I can't say for sure when this began, but I strongly suspect it was when I updated in december, from 13-STABLE-384a885111ad (december 21, 2023) to 13-STABLE-2cbd132986a7 (december 19, 2023), where I also upgraded bird2 from 2.0.11 to 2.14
-
Aedil
&8
-
tykling
ugh, I mean from 13-STABLE-384a885111ad (december 21, 2022) to 13-STABLE-2cbd132986a7 (december 19, 2023)
-
tykling
I am looking for a way to identify what might be causing this, and hopefully get it fixed, what are some things people usually do when hunting mbuf cluster leaks? is it possible to see a list and what allocated them?
-
rtprio
tykling: how many/which network related src commits were between those dates? is it possible to try 2.0.11 with 384a885111ad ?
-
yuripv
(or bisect)
-
meena
lw: what yuripv said
-
antranigv
If a process is in D state, how can I check *what* is it waiting for?
-
meena
antranigv: usually the function it's sitting in should give you a clue, so really, just the usual
-
antranigv
meena what do I do if I can't even kill -9 a bhyve vm?
-
Kalten
kill -30 ;-)
-
antranigv
Kalten wait, is that a joke or a real signal? :D
-
Kalten
antranigv: /usr/src/sys/sys/signal.h interesting: 30 is SIGUSR1—it could be, that it is just an unhandled signal terminating most?
-
luna_
-
VimDiesel
Title: BSD Now 541: Learning and Teaching
-
tercaL
antranigv: So, did that work?
-
Bheam
Yo. noob to bsd. Is there a simple way to skip bootloader menu (unless holding some key) and show a custom boot splash? I found some info on splash but it seems outdated and not supporting UEFI etc.
-
tercaL
Is it a bad practice to take a backup of a running bhyve VM instance (actually doing tar on the 'disk1.img' VM disk while it's running)? Should the VMs be stopped before doing so? Any data loss possibility, otherwise?
-
meena
-
VimDiesel
Title: FreeBSD / src / cb350ba / kerberos: Fix numerous segfaults when using weak crypto - FreshBSD
-
tercaL
If "powering them off" is needed for a healthy backup procedure, and in case of dozens of VMs running, how would you handle that?
-
meena
tercaL: yes, that's bad practice not just on bvhyve. Generally, the recommended way to do this is to freeze a VM, then take a snapshot, then unfreeze it. that generally takes maybe 5 seconds altogether
-
tercaL
meena: Oh, thanks. "Freezing" a VM? What's its switch?
-
tercaL
I just know vm poweroff, start, stop, destroy and so on.
-
meena
dunno how to do that in bhyve 😬
-
f451
tercaL: zfs snapshot of the running volume (from the host) works well in that context
-
f451
dunno if it's recommended or not
-
f451
prob not but ive not seen any ill effects on fast hardware
-
kenrap
hmm, even though splash(4) only supports the old syscons(4), vt(4) is capable of a "graphics mode" which makes me thing it's possible to have a boot splash. But I guess that requires a splash-like reimplementation for vt to begin with *shrugs*
-
f451
tercaL: some folks run incremental backups every 15 mins on running systems
-
f451
but backing up a disk? power it down every time
-
f451
disk1.img that is. use zfs volumes for the backing store of the guest
-
babz
recovering from "instant" snapshot of a volume would be the same thing as if your machine lost power at that very moment
-
f451
would that imply bad news for the snapshot?
-
babz
the filesystem is suposed to remain coherent
-
babz
that doesnt mean it's content is supposed to make sense
-
f451
the reason im asking is because I've seen people writing they're incrementally snapshotting at short intervals. I'm presuming they're able to recover if where they're snapshotting from becomes unusable. They are not interrupting services
-
babz
depends what you are doing
-
babz
ie if you snapshot while an update is running, don't expect the backup to boot
-
f451
there must have been testing for this
-
f451
ive not seen it mentioned that either a live system should not be snapshotted or, if not that, that the system needs to be quiet, or how quiet. But that might just be down to not reading all of whats needed
-
f451
i mean it's lore that a system needed to be off or quiet due to the inconsistent data risk but i thought copy-on-write was meant to eliminate that
-
babz
once again, it's equivalent to pulling the plug, but without the electrical/mechanical damage
-
f451
yeah i understand. but i thought zfs works round the consequences.
-
tercaL
^^same here
-
rogersm
does anyone have experience driving a fan through GPIOs? This is for a raspberry pi?
-
rogersm
I plan to create a script to gather cpu temp and speed up/down the fan
-
Bheam
so i'm trying bhyve. and trying to passthru a nic device but having no luck. bhyve won't boot and just exits with status 4
-
Bheam
any ideas?
-
Bheam
i set vmm_load="YES" in boot loader, and pptdevs="2/0/0", then -s 5:0,passthru,2/0/0 to bhyve
-
Bheam
i see bhyve.log has Unable to setup memory (12)
-
CrtxReavr
Buy moar rams.
-
Bheam
right reduced memory from 14gb to 12gb, boots now. weird that it only happened after i added passthru :/
-
CrtxReavr
I was joking. . . sorta.
-
Bheam
well it worked lol
-
CrtxReavr
But the memory allocated to passthrough, likely couldn't be paged (swapped), which is likely the reason.
-
babz
sysctl -a | grep iommu
-
Bheam
-
VimDiesel
Title: Mozilla Community Pastebin/zTepkrgK (Bash)
-
CrtxReavr
for i in $(sysctl -a | grep iommu | cut -d: -f1) ; do sysctl $i ; done
-
Bheam
lol what :p
-
Bheam
(it didn't really do anything different)
-
CrtxReavr
Well, not output wise, but. . . somehow it seemed less ghetto.
-
Bheam
depends what kinda ghetto you live in i suppose
-
CrtxReavr
Though, for that matter: sysctl hw.iommu
-
Bheam
either way. is my pastebin missing something and i can't use iommu?
-
babz
looks fine
-
babz
CrtxReavr: it only lists keys in hw.iommu
-
Bheam
my passthru device doesn't work though. it's a windows guest and it says "cannot start" in device manager :/
-
CrtxReavr
babz, as does 'sysctl -a | grep iommu'
-
Bheam
hmm reboot "kinda" helped. no more error, but now says network cable unplugged (it's a nic)
-
babz
no, it also matches hw.vmm.iommu
-
babz
but whatever
-
CrtxReavr
Not on my system. . . but whatever. >=]
-
Bheam
could be wrong device i guess, passing thru all nics :p
-
Bheam
can i get 'vncviewer' for freebsd? or something else i can run from command line in "kiosk mode"
-
Bheam
as i understand getting gpu passthru to work is a hassle?
-
Bheam
especially with windows
-
Bheam
omg ethernet works
-
last1
I have a FreeBSD vm that keeps on freezing under heavy php load, I can't put my fingers on it
-
last1
when it freezes, I see under top many processes in STATE: *vm pa
-
last1
what does that do ?
-
CrtxReavr
man top
-
last1
STATE is the current state (one of “START”, “RUN” (shown as “CPUn” on SMP systems), “SLEEP”, “STOP”, “ZOMB”, “WAIT”, “LOCK”, or the event on which the process waits)
-
babz
* means it's wating for a lock
-
last1
how can I troubleshoot this ? There's literally nothing in the logs
-
last1
the box just seizes up
-
last1
not in console, /var/log/messages
-
last1
in esxi I see the vm taking like 12Ghz of cpu
-
babz
i think vm_pa is for vm_page_grab
-
rwp
I would be suspecting memory resource exhaustion stress. (Just checking but you don't have swap on zfs do you?)
-
rwp
I would reduce the memory resource footprint for the system. Perhaps add more swap so that it can survive long enough to at least log something.
-
rwp
But the problem might be hardware. The machine might just be crashing due to hardware problems. And then that is not a software problem to solve.
-
rwp
Good luck!
-
last1
the physical host itself has plenty of ram, the vm sits @ Mem: 7667M Active, 1795M Inact, 1727M Laundry, 2760M Wired, 1245M Buf, 2002M Free
-
last1
swap isn't even in use
-
last1
the whole system starts being sluggish, then eventually freezes up completely. If I kill the http connections, it comes back eventually in ~2-3 minutes
-
rwp
last1, Hmm... No idea here. Sorry. Hopefully more clues will present itself. Perhaps set up a remote logging syslog to capture final bits?
-
rwp
I would keep a terminal logged in with a "tail -F /var/log/messages" at least with the hope of seeing something when it happens but it sounds like that would not be helpful in this case.
-
rwp
I would keep a terminal logged in with top running and hoping that it might show a clue.
-
rwp
I realize these are pretty brute force and ignorance approaches to debugging this. I am hoping someone else will have better ideas for you.
-
rwp
That 2 minute recovery though may be a clue. The "Internet Lifetime of a Packet" is 2 minutes. And you said if you kill the http then this happens.
-
rwp
Just brainstorming here but is it possible you are getting an attack abuse from the Internet that is attacking your web server and it is consuming all networking resources?
-
rwp
-
VimDiesel
Title: Slowloris (computer security) - Wikipedia
-
last1
no, it's not an attack
-
rwp
I have been seeing those hitting my servers on and off rather routinely.
-
last1
it's the apache/php processes that keep on taking resources
-
rwp
What limits have you set on those processes? Perhaps reduce those further?
-
last1
what do you mean by limits ?
-
rwp
I am always tuning MaxRequestWorkers to prevent the network from overwhelming my web servers with abuse.
-
rwp
Especially if it is using PHP which consumes significant memory for every interpreter module.
-
rwp
I'll be honest here and admit that my Apache+PHP servers are all running Linux and not FreeBSD. But have plans to change that in the future. But on Debian/Ubuntu /etc/apache2/mods-available/mpm_prefork.conf needs to have MaxRequestWorkers adjusted from the default there of 255 down to something the system has memory for or it will OOM Killer out trivially when the net abuse hits it.
-
rwp
How large that can be varies depending on how much ram the server has available. Maybe 32 is a good limit if it has a lot of ram. Maybe only 12 on a small 1GB Linode VM. (I like Linode btw).
-
last1
oh, I'm way past that
-
rwp
I always thump on my own servers using "ab" the apache-benchmark tool to stress a machine myself. Effectively attacking myself. But then I can watch the machine and see how it reacts.
-
rwp
How it reacts to the inevitable abuse that will come from the hostile Internet. And then I tune things until it handles it okay.
-
rwp
Honestly the best way to harden Apache from network abuse is to switch to Nginx. Nginx is shrugging off the Slowloris attacks and hardly noticing for example. But Apache I am still tuning around and sometimes needing to restart as needed reactively.
-
last1
These servers are sitting behind CloudFlare -> Nginx -> Apache
-
last1
with mpm_event running
-
last1
they aren't hitting any of the limits from Apache workers nor php-fmp
-
last1
*fpm
-
rwp
CloudFlare will protect you against a lot of these types of problems, probably should protect against Slowloris completely. But not all of them. Won't protect against MaxRequestWorkers with PHP being too high for example. You might still be running out of memory there.
-
rwp
Good to hear you are using php-fpm. FTW!
-
rwp
That's a different set of tuning needed there though. Can still be an issue. I would still look at it.
-
rwp
This is where I like "htop" and the bar graph of memory use at the top. There are other tools too and some others might be better. Maybe others here will suggest their favorite way of monitoring memory resource use?
-
rwp
I would keep an htop running in a terminal and keep an eye on it when it is failing and see what that is showing.
-
rwp
I would implement system trend monitoring such as with Munin or Cacti or Grafana monitoring and see if you see bad things happening.
-
rwp
I am still using the old Munin which I am happy with but all of the cool kids are using Grafana today.
-
last1
alright, I've installed htop
-
last1
maybe that will shed a bit more light
-
rwp
That bar graph of memory at the top is why I like it. Green is userland and then other colors to the right are buffer cache and other things. If you see the green bar graph consume all of the memory that is a bad thing.
-
babz
do you have access to the hypervisor, or is it a managed vm ?
-
babz
in any case: do you have access to a serial console ?
-
last1
it's my hardware top to bottom, I have access to everything
-
last1
there are no other messages in the console
-
last1
when the issue starts happening, it's so badly frozen, I can't even do a reset from the hypervisor
-
last1
esxi prints: failed to reset, lol
-
rwp
The hypervisor is still responsive to you though?
-
last1
yes
-
last1
this is 13.2 btw
-
last1
13.2-p8 I think
-
last1
it doesn't seem to be an exhaustion of resources though, it's as if something locks up
-
rwp
Since your hypervisor system is still responsive that would lead me to believe that it is not a hardware problem but something in software. I guess that's good. Because then the solution would be a software solution too. Good luck!
-
rwp
Significant pkg upgrade day today! My desktop wants 263 upgraded with 75 reinstalled, plus a ghostscript upgrade from 9 to 10 removing and adding a few. All looks okay.
-
rwp
My servers generally want a more modest 27+22 today.
-
rwp
Most of that on the servers is for perl module packages too. So actually pretty tame there.
-
ZedHedTed
damn. sucking up all that bandwidth should be fun!
-
rwp
It's unfortunate that most of the bandwidth is packages telling me the port has no maintainer and asking us to please help. :-(
-
kenrap
rwp: I feel very happy you. It's always a pleasant feeling seeing numerious updates :)
-
kenrap
*happy for you
-
dmr104
i have built the drm-510-kmod from ports, and have done `kldload radeonkms`; i have made a xorg.conf file which refers to it. when i startx i get. Failed to load module (module does not exist) No drivers available, no screens found
-
alepzi
is it good practice to set 600 on any files .bashrc sources? also is it good to set 700 ~ to make our whole home dirs private?
-
meena
alepzi: who you sharing that computer with?
-
alepzi
but does that even matter? because what if it's just me, but then some other account gets hacked into somehow
-
dmr104
where do i put firmware so that the module which requires it will find it?
-
alepzi
i guess i don't see the benefit to ever leave ~ open to reading
-
dautor
I'm guessing random semi-trusted daemons / programs. I do 700 on home as a precaution.
-
alepzi
ah ok so i'm not crazy
-
dautor
I'm guessing they are a potential threat*
-
alepzi
do you also set 600 for files bashrc sources? or just 700 on ~ and that's it
-
dautor
However, it won't help for untruested programs running as your user.
-
dautor
I do not use bash, so no.
-
alepzi
which sh do you use dautor?
-
dautor
I use fish for interactive shell.
-
mfisher
back in the old days, people couldn't finger you and read your .project/.plan if your ~ was 700, but you're probably not giving anything up now
-
dautor
Yeah... It's probably a default that should change one day to a more secure option.
-
voy4g3r2
i am going down the crazy rabbit hole of ports and have a question.. i am going to be testing this out in a bastille jail first and once i got this operational.. is there a recommended approach to move to host? i figure backups are good.. then is there like a handbook entry that discusses this in more detail
-
alepzi
mfisher: yea i feel like there should be a better way for ppl to share with other users and daemons than having ~ be group or world read
-
alepzi
like /var/share/alepzi
-
voy4g3r2
eww pf what a pain
-
voy4g3r2
this is a complex beast
-
voy4g3r2
anyone have exposure to bastille (container manager) and be able to have the host.. work as normal and "lockdown" the constainers?
docs.bastillebsd.org/en/latest/chapters/networking.html this documentation explains locking down host and container.. down to JUST ssh.. but then basically i can not use anything.. like smb
-
VimDiesel
Title: Network Requirements — Bastille 0.10.20231125-beta documentation
-
mfisher
I'd interpret that as just as an example of how you can set up SSH for per-container direct access, not instruction that you can't expose containerized services using other firewall configuration