-
memo_book
By the time of late 3.x and 4.x I had a parallel port Zip drive and floppies with bad blocks, save the boot disk were history.
-
memo_book
4ish and later I had a CD drive with its own ISA card interface.
-
memo_book
And FreeBSD Mall was a think along with Walnut Creek's store front that did more than FreeBSD CD sets iirc.
-
TheRealCthulhu
was free built off the tailwinds of BSD or did it carve its own path?
-
mfisher
-
mlxdy2
What's policy of FreeBSD on non-free software?
-
rtprio
what do you mean policy?
-
rtprio
run non-free software if you want to run it
-
mlxdy2
I would like to avoid non-free software
-
DoofusCanadensis
then do so
-
rtprio
ok, then don't install it? what is the question
-
mlxdy2
Usually in Linux distros package managers you can disable/enable non-free repositories to avoid accidental injection of non-free dependencies. And I wonder how is it in FreeBSD.
-
rtprio
there are some switches in the ports tree to refuse to build ports of a particular license
-
rtprio
you can look into that, if that's a path that would bring you joy
-
ant-x
mlxdy2, or you could check whether that software is free or not before installing?
-
rtprio
there's no functionalty on the pkg repo for a license excluder
-
mlxdy2
rtprio Oh, okay
-
DoofusCanadensis
free vs not-free is really a social issue. you can't fix social issues with technology
-
rtprio
who said anything about fixing social issues. not installing software just doesn't install software. don't read too much into it
-
ant-x
DoofusCanadensis, license preference is also a social issue.
-
BarnabasDK
maybe thats the problem
-
BarnabasDK
it should be a software technical question
-
ant-x
Where humans are involved, morality is involved. Software licneses have a moral aspect to them.
-
BarnabasDK
what are you doing, what is it, who can change it, and who can sell it
-
BarnabasDK
now you just need a a measure for "moralaity"
-
BarnabasDK
but generally I agree
-
ant-x
The lack of an absolute measure of it makes us humans :-)
-
mary751
Hello I have a FreeBSD 15.1 server w/ 192GB RAM running bhyve and sylve GUI for 20 VMs. Every morning at 3am the server crashes. It seems that by default the daily cronjob for each VM and the server runs at the same time, overconsuming all of the RAM without releasing it, leaving only ~4gb RAM causing it to crash. I have another FreeBSD server (15.0 p9) with similar configurations but only 5 VMs and have not experienced any errors. The malfunctioning
-
mary751
server states processes are killed due to a failure to reclaim memory. is anyone aware of any possible bugs or any insight I would appreciate, thanks!
-
hc
Are you using zfs?
-
hc
ZFS' arc cache can use up a lot of memory
-
karolyi
192G ram, must have cost a fortune
-
hc
I have this setting in my /etc/sysctl.conf on my 128GB server: vfs.zfs.arc.max=34359738368
-
hc
And a slightly larger setting on the 512GB server. Both had problems of oom killer killing bhyve processes randomly before tuning this setting
-
hc
If your cronjob traverses the filesystem, that could contribute to ZFS needing more and more memory
-
bsdrobert
do you need periodic to run in those VMs
-
bsdrobert
Or on the host
-
mary751
yes i use zfs, for which i have a 4tb nvme and a 4tb spinning drive. but all the machines are sitting on nvme. normally all the machines don't use >16gb RAM, so the remaining should have been plenty to handle the periodic daily cronjobs
-
karolyi
mary751: you can also tune cronjobs to have jitter, look into "-j" and "-J" (man 8 cron)
-
bsdrobert
to be honest i think perioidc is a double-edged sword. it can really swamp a machine. esp if run on a host with many jails.
-
mary751
bsdrobert: I have to learn the benefit of that periodic run in VMs but again, my other server with less VM's also configured identically does not run into these errors
-
karolyi
bsdrobert: been there, done that, now I use 30sec jitter for my cronjobs everywhere
-
mary751
karolyi:thank you I have not heard about jitter I will have to look into it. I manually staggered the daily cronjobs in three different batches at different time intervals but it does not seem the memory gets cleaned after periodic daily runs
-
karolyi
tuning the ARC by hc's suggestion might also be a good idea
-
mary751
hc: that is very helpful, thank you, I am using zfs and have not limited the arc size. I need to learn more about how cronjob traverses filesystem (by the way, my host has zfs and the VMs are zfs). anything else I could look into?
-
hc
mary751: Not really; the one I mentioned is the one setting that I needed to adjust on all my FreeBSD bhyve hosts. Since FreeBSD switched its zfs implementation to the zfsonlinux one, the kernel sometimes cannot communicate quickly enough to the zfs subsystem that it needs more memory
-
hc
With that setting you're limiting it proactively
-
karolyi
the periodic does a lot of stuff, if you don't need security reports within your VMs, turn them off. there is a security report and a daily report that will traverse all your files, checking for possible security issues, reports that normally only few people read
-
mary751
karolyi: alright I need to get educated on what periodic security reports looks like, I don't even know where they are located. Can netdata view them, or do i need to view them manually, or web interface, or just text?
-
bsdrobert
mails to root by default iirc.
-
karolyi
I can imagine how those simply overload ZFS if you have a lot of them running at the same time
-
hc
( With "not really" I meant I can't think of anything else, not that there isn't anything else )
-
karolyi
mary751: cat /etc/crontab, ls /etc/periodic/
-
mary751
thanks so much guys I'll be back in an hour or so
-
karolyi
my jail template basically comments out everything in the crontab so the jails don't hammer my server, and then I enable things on a custom basis. some jails don't even have cron running
-
karolyi
just some ideas to ponder on
-
hc
The zfs cache is very memory hungry, it basically uses all of the available free memory. Kind of like the idle process uses up all idle cpu time. If the zfs cache doesn't release the memory quickly enough, well...
-
hc
But I've never heard of zfs getting 'overloaded'
-
bsdrobert
i lean towards just turning periodic off. it doesn't have defaults that scale.
-
karolyi
hc: imagine 20 VMs doing it independently of each other at the same exact time
-
karolyi
it can easily become an OOM in my opinion
-
hc
karolyi: Why? Are the VMs overprovisioned? If not, should be fine
-
karolyi
hc: that's not a question I should answer. :)
-
hc
It wasn't mentioned in the initial question so I take it that is not the case
-
karolyi
then again, overprovisioning is relative to what else you have running at the same time
-
karolyi
for example, you might have provisioned the VM's memory allocations well but the periodic run on the host machine can spike ARC usage and then all of a sudden, OOM
-
karolyi
who knows to be honest, it's not like we see a log of it after the crash
-
hc
But the arc cache should never cause an oom situation. It didn't use to when the old zfs implementation was in use
-
karolyi
to be honest if it's proven not overprovisioning, I'd start suspecting the memory, and running memtest. I've seen weird crashes because of faulty memory, and it only surfaced when I started loading up on it
-
karolyi
(of course, because it actually started storing data that got corrupteD)
-
hc
Or you just try limiting the arc cache first ;-)
-
karolyi
ya, as a first measure. and also adding cron jitter
-
karolyi
or turning unnecessary shit completely off
-
hc
I've never used cron jitter. Then again, my guests all use xfs or ext4
-
hc
Turning unnecessary things off is good, but finding the root cause is even better :-)
-
karolyi
the problem isn't zfs, but hammering the CPU at the same exact moment for no necessary reason. those jobs usually can run within a 30 second window
-
karolyi
that's my case
-
hc
You mean rowhammering the CPU?
-
karolyi
nah, just overloading stuff unnecessarily. row hammering might also happen but I don't think because of cron :)
-
bsdrobert
oh what, zuck is here.
-
karolyi
was
-
mary751
karolyi: i was wondering if it could be a faulty memory. perhaps I should reboot the server and run memtest in bios
-
karolyi
mary751: or a memtest usb stick/iso
-
ant-x
-
karolyi
also, ventoy for booting it
-
ant-x
Ventoy, or the brick of a CD-RW drive and a blank :-?