-
ring0_starr
muahahah
-
ring0_starr
a security camera running freebsd??
-
ring0_starr
more likely than you think
-
ring0_starr
and you know me, i am ALL ABOUT SECURITY :--)
-
sig`
ring0_starr: what security camera? you self hosting it?
-
ring0_starr
"self hosting"???
-
ring0_starr
I don't get what you mean by that
-
sig`
streaming it to freebsd server?
-
ring0_starr
No, it IS a freebsd server running on a tiny SBC.
-
sig`
ah
-
ring0_starr
Like a quad core ARM Cortex-A53
-
ring0_starr
Drawing 3 watts max
-
fgarcia
if i understand correctly, self hosting is using a computer you own as a server, instead of renting
-
sig`
yeah, I have security cameras that I have setup to stream video
-
ring0_starr
well when did you equate a security cam to a web hosting server
-
ring0_starr
think of the absurdity of renting a security camera
-
sig`
who said rent
-
ring0_starr
although it increasingly is "like that"
-
ring0_starr
modern day IP camera vendors. they only do things through the cloud.
-
ring0_starr
My company despite my initial fears doesn't force people to connect to the cloud when they buy their product
-
ring0_starr
Although they have so much product security that as an outside researcher, assuming it all works as designed, you'd have a hell of a time getting into yourself
-
sig`
ring0_starr: not all... many are RTSP ONVIF
-
sig`
and use zoneminder for RTSP or mjpeg streams, that way you have no vendor cloud lockins
-
ring0_starr
I was working on hacking some Wyze cameras last year and i lost motivation pretty fast especially due to family issues
-
sig`
amcrest, reolink and lots more
-
ring0_starr
then I have some stupid Chinese aliexpress no-name IP cameras that run some kind of hacked together barebones buildrooted busybox linux with an ancient kernel, like 3.6 or something
-
ring0_starr
I mean that's cool and all because it's somewhat open, all of the code is vendor provided and it's so deep that i don't think anybody tried understanding the system at any deep level
-
ring0_starr
all of the documentation on those Chinese clone budget arm SoCs are horrible, you need to wonder who were they writing it for?
-
jpb
here's my writeup on crash recovery with ZFS:
jimby.name/techbits/recent/zxfr
-
jpb
comments welcome!
-
ring0_starr
I got caught with my pants down last month. I made a change to my FreeBSD website and rebooted, which I do from time to time. But … it crashed. And not only did it crash, but it trashed the boot code and would not boot at all.
-
ring0_starr
Not for nothing, but (insert whiny voice) this was not my fault!
-
ring0_starr
jbp: this sounds like a hardware problem, not a filesystem problem.
-
jpb
ring0_starr: i'm sure it was.
-
ring0_starr
You can design around that with some capacitors or a tiny backup battery
-
jpb
i'll leave that to the fanatical support people. this is a write-up on how to use zfs snapshots for backup and recover of boot environments.
-
jpb
*recovery
-
ring0_starr
I would focus effort on prevention but that's just me
-
ring0_starr
recovery is bound to be imperfect at best
-
ring0_starr
there are more issues at play that may go wrong, instead of a bulletproof because physics says so electronic power circuit that saves your system from crashing while its various controllers are in odd states
-
jpb
i've seen a lot of writeups on using zfs for backups, but couldn't find any that focused on recovery from a boot problems, as with all things internet, i hope it helps someone else.
-
sig`
jpb: nice
-
sig`
I just recently did a full migration snapshot to a brand new server... pretty cool
-
jpb
sig`: thx.
-
mason
SponiX: Well noted! Heh. Thank you.
-
kerneldove
ppl here that warned me against using zfs native encryption saved my butt ty. hope they fix it but till then geli is fine
-
mewt
is it actually still messed up?
-
ring0_starr
UFS2+J isn't that bad you know.
-
ivy
mewt: no, it's fixed since a couple of months ago
-
ivy
-
mewt
:thumbsup:
-
mewt
Feels like I heard really incredible amounts of FUD about that
-
ivy
well, it was a pretty serious bug that went unfixed for years, so people were understandably a bit annoyed
-
ivy
i still don't really understand why they never updated the documentation to warn people about it
-
mewt
are kernel modules considered part of the userland, for version purposes? I guess they have to be, or I've messed up somehow
-
kevans
define 'for version purposes'
-
mewt
as in, if I run freebsd-version -kru and only userland shows as 14.2-RELEASE-p5, and everything else shows as 14.2-RELEASE-p1, and the advisory tells me the min corrected version for the zfs module is 14.2-RELEASE-p4, am I good?
-
kevans
yeah, that's a little wart-y indeed
-
mewt
...hm
-
kevans
you should be fine, it's just that kmod-only fixes won't bump the kernel version
-
mewt
well, I just ran a freebsd-update fetch and freebsd-update install and rebooted, and this persists...
-
mewt
mk
-
mewt
yes, that's what I was asking, whether module changes bumped kernel version
-
mewt
just in very bad wording
-
kevans
if it was a module that happens to also be built into GENERIC you would have noticed a bump, but just zfs.ko won't trigger the kernel to need re-linked
-
mewt
gotcha
-
mewt
thanks
-
kevans
i kind of suspected this is what you were asking, but yeah- good to be sure
-
ivy
shame what(1) doesn't work anymore
-
ivy
(at least not on kernel modules)
-
kevans
it's seemingly not that hard to get newvers.sh versioning for kmods
-
kevans
i have a prototype here, just wondering if it'll be useful in a post-freebsd-update world
-
kevans
well, I guess it'd still be useful MFC'd for the remainder of 14's lifetime
-
ivy
kevans: i can't really say if it's useful or not, but i think if it works on the kernel it should also work on modules, just for consistency
-
» ivy thinks we should bring back __SCCSID, but this is probably a minority opinion
-
voy4g3r2
hello, i am working with llama.cpp and trying to "force" the model to load things into the GPU and CPU RAM. WHen I try to "force" the model to stay in system memory.. through an option.. i get failed to mlock() message.. which says to do ulimit -l as root.. which does not work.. are there options, available in the sysctl area that allow mlock to behave with 140001280-byte buffers?
-
ivy
voy4g3r2: are you running it in a jail? if so, did you enable allow.mlock?
-
voy4g3r2
no jail
-
voy4g3r2
i wish i could run llama.cpp in a jail.. but that is outside this problem
-
voy4g3r2
dang the gpu passthrough
-
voy4g3r2
i am getting recommendations to change vm.max_user_wired and some other /etc/login.conf and to be honest.. just seems to not be the "right" thing as it is just thrwoing darts at a board
-
voy4g3r2
this server has 64 gig of ram so i know i have plenty of space to keep in memory.
-
voy4g3r2
hrm... security.bsd.unprivileged_mlock=1 move to 0.. i get a different message..
-
voy4g3r2
just seems wrong to run a LLM as root...
-
voy4g3r2
well looks like.. if i run the llama.cpp program as root.. problem goes away :(
-
ring0_starr
-
ring0_starr
maybe nevermind on that freebsd security camera
-
ring0_starr
i can't even get a crash dump.
-
Tenkawa
ring0_starr: what bus is that camera?
-
Tenkawa
pci/usb/gpio?
-
ring0_starr
usb, but i don't even have that plugged in yet. this is just the board.
-
Tenkawa
What board are you working with?
-
ring0_starr
-
Tenkawa
Ah an Allwinner SoC...
-
ring0_starr
linux works fine with it so it's not like allwinner is the problem
-
Tenkawa
Unfortunately one of the few ARM vendors I don't use
-
ring0_starr
I guess the issue where I can't get a crash dump makes sense when the issue is the mmc controller timing out on its i/o.
-
Tenkawa
ring0_starr: never said it was although Allwinner is not viewed highly in the Linux world either...
-
ring0_starr
we don't always get to choose our hardware
-
voy4g3r2
i do not know if this will help... but this person does a lot of ARM/risc stufff.. maybe her X feed bac help?
-
voy4g3r2
-
voy4g3r2
real sharp and shares a lot of stuff on boot loading and troubleshooting
-
Tenkawa
have you tried enabliing the ddb to go over serial?
-
ring0_starr
at work one of our products use this "airoha" soc that's so shitty, it uses some custom unauthenticated protocol over bluetooth rfcomm profile for any and all debug functions
-
ring0_starr
they just didn't add authentication
-
Tenkawa
If it wil work on that unit it should be able to dump a crash dump via serial
-
ring0_starr
so like that level of attention to detail
-
ring0_starr
it's really a race to the bottom wherever anybody can cheap out they will
-
Remilia
kernel{arc_prune} please go away already, I don't want to downgrade to 14.2…
-
vortexx
mrsas0: Exit due to Hardware critical error from mrsas_ocr_thread <--- my raid card appears to be having more and more issues, I'm considering moving it into jbod mode...
-
vortexx
device = 'MegaRAID SAS-3 3108 [Invader]'
-
vortexx
it's randomly setting drives on the same 4-cable connector as Unconfigured(bad)
-
vortexx
reboot will clear this
-
rwp
I hear that this implies that it is a hardware raid configuration card. I would definitely reconfigure it to IT mode JBOD mode and then have ZFS manage each disk and raid itself.
-
vortexx
rwp: correct
-
vortexx
and I know this is the ZFS guidance
-
vortexx
I'll test changing the cables round to see if it's the cable or the raid card connector, too
-
vortexx
(2 connectors on card, has raid cache module, 2 2.5" HDD drives on one cable and 4x3.5" HDD drives on the other, a fair amount of testing to do if I swap connectors as well)
-
rwp
If your system is throwing storage errors then it's a good time to ensure that your backups are current. :-)
-
vortexx
they are
-
vortexx
I've had to rebuild the raid-5 config in the last month due to issues so backups & storage are current
-
vortexx
(hw is 2020 vintage)
-
vortexx
(at time of purchase)
-
jason123onirc
I am looking at playing encrypted dvds but it looks like the package libdvdcss is not in the 14 repos
-
jason123onirc
is there still a way to get it installed