-
ketas
lw: or hw, that is?
-
ketas
the door blew off
-
ketas
i bet lot of sw isn't built with "nails as fuses" approach
-
ketas
and are checked
-
ketas
how do you even imagine it being certified further
-
ketas
what about drivers license for computers?
-
ketas
lot of users seem to need that
-
ketas
but how do you enforce that?
-
ketas
also why isn't it engineering
-
ketas
yet it runs all?
-
ketas
i have no idea how to fix proposed issues
-
ketas
in that field
-
ketas
grand programmers guild?
-
ketas
wouldn't it be nice if i walk info software house and it won't collapse
-
ketas
but
-
ketas
the xz problem was only noticed after a stray lag appeared to a random guy, while in that severely regulated world, citicorp was asked by random student that looks like your building will fall over if wind blows from the corner
-
ketas
who knows really
-
johnjaye
on the engineering thing, it is strange how much of a separation there is between software and non-software.
-
johnjaye
even in situations where software is directly controlling expensive hardware
-
johnjaye
E.g. in the case of the Ariane 5 crash which cost almost $400 million dollars in damages... who was held "accountable" for that? Who lost their job or license? nobody.
-
dch
woop woop bsd.network is coming back up again… like email I guess it will take a while to backfill those spicey hot takes
-
kevans
dch: o rly?
-
kevans
oooo yeah, there it is
-
dch
status.bsd.network new status page and a funny update hopefully the recovery wasn’t too difficult
-
VimDiesel
Title: Terrible Status Page
-
ketas
johnjaye: yeah, i read that "The system is designed to have a backup, standby system, which unfortunately, runs the exact same code." major fail indeed, double (precision :p) fail... but accountability is other topic, sometimes people get fired, sometimes not, depending, maybe you can't even build teams if you need to fire people all the time... also i didn't fully look into a5, but if somebody said that
-
ketas
it's cheaper to use same code for ...
-
ketas
... both, it's no longer sw issue
-
dch
I'm using a neovim plugin that takes pretty snapshots
github.com/mistricky/codesnap.nvim
-
VimDiesel
Title: GitHub - mistricky/codesnap.nvim: 📸 Snapshot plugin with rich features that can make pretty code snapshots for Neovim
-
dch
it has configurable font names, but I can't figure out how to format the name of the custom font I choose
-
dch
is there some sort of tool or standard for how fonts are used?
-
dch
fc-list is the best I've found so far for listing but I'm missing some subtlety in how fonts should be named
-
dch
I think it's choosing the font but always ends up as italic
-
nimaje
dch: fc-match ?
-
alepzi
i got a web server that runs nginx and my node app. can i put both of those in a jail or can a jail only have 1 running daemon?
-
jastrom
alepzi yes you can run them both in the same jail
-
alepzi
i got a web server that runs nginx and my node app. can i put both of those in a jail or can a jail only have 1 running daemon?
-
alepzi
just set up the normal rc.conf stuff and a jail can run any number of daemons just like a normal install?
-
voy4g3r2
pretty much
-
alepzi-
just set up the normal rc.conf stuff and a jail can run any number of daemons just like a normal install?
-
alepzi--
just set up the normal rc.conf stuff and a jail can run any number of daemons just like a normal install?
-
alepzi--
sorry dunno what's up with my internet
-
[0x1eef]
The question came through fine, all three times :P
-
alepzi--
sorry bout that
-
voy4g3r2
alepzi--: yes, you can setup a nginx and node app on the same jail
-
voy4g3r2
alepzi--: navigate to the jail and perform the actions you would perform outside of jail. thinkgs like pkg -j <jailname> install <node and other stff>
-
alepzi--
and the jail's /etc/rc.conf to enable services?
-
voy4g3r2
correct
-
alepzi--
ok tyvm
-
voy4g3r2
you are welcome
-
alepzi--
there any limitations on a jail vs a full install?
-
voy4g3r2
alepzi--: a jail can not be a highver version than the baseline operating system
-
alepzi--
anything else?
-
voy4g3r2
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
alepzi--
yep, read it
-
voy4g3r2
there are a few areas.. thick jail vs thin jail vs vnet
-
voy4g3r2
so i am not sure what you mean by limitations
-
voy4g3r2
it comes to personal preference at this point, i am NOT a fan of thin jails
-
alepzi--
ya seems most ppl advocate thick jails
-
voy4g3r2
but reason is subjective and not based on the handbook.. i just read what the differences are and picked thick jails as it is more isoaltion and hard drive space is cheap
-
voy4g3r2
then some will say they prefer vnet setup so they can build out a network.. which is fine too
-
alepzi--
ya i hear that too, to use vnet with jails
-
alepzi--
so that's my plan, vnet thick jails
-
alepzi--
then maybe thin jails within thick jails if i ever want to nest
-
voy4g3r2
uhh, i would not recommend that
-
voy4g3r2
have distinct jails
-
alepzi--
don't recommend what exactly, nested jails?
-
voy4g3r2
yes
-
alepzi--
why not? jc
-
voy4g3r2
just make stand alone jails
-
voy4g3r2
that makes it more difficult to manage.. how many levels deep are you going?
-
voy4g3r2
host -> jail -> jail -> jail
-
voy4g3r2
host -> jail
-
voy4g3r2
have multiple top of hte level jail and then figure out how to get jail #1 to talk to jail #2
-
voy4g3r2
it is not to say you could not nest jails inside of jails, i just think it would add complexity to the situation that is not needed
-
alepzi--
ok ty
-
voy4g3r2
would anyone have tips/tricks on why a bhyve client could not communicate with a host (through a simple ping) but can download pkgs and browse web? the host can ping the bhyve... the bhyve can ping everything EXCEPT the host
-
hernan
voy4g3r2: host is blocking ping ?
-
hernan
voy4g3r2: try to listen on a random port in the host ie. nc -l 9999 and then try to connect from vm into host ie. telnet $host 9999
-
hernan
lower your firewall
-
voy4g3r2
the host can ping the client
-
voy4g3r2
the client can ping the host and ANY other machine
-
voy4g3r2
i can even ssh into the bhyve machine no problem
-
alepzi
are zfs features useful to thick jails or only to thin jails?
-
alepzi
oh i guess zfs clone can't be used with thick jails
-
rwp
alepzi, What's your definition of thick jail that it can't work with zfs clone?
-
alepzi
i guess thick jail means it has its own base
-
rwp
A zfs clone is a live file system like any other. But it is sharing disk space underneath with another branch of the file system. The usual purpose of a clone is to share that space. If one removes and replaces all files then the disk space is no longer shared. But that is not the same as not working with it. Right?
-
rwp
zfs clones are good for when someone has a template that is all set up. Maybe change a couple of things in /etc for it. Then clone out a hundred or thousand of them and they all share the disk space and can be forked off almost instantaneously. All of the disk space is shared.
-
rwp
But it works best when those images are temporary, created on demand for a short run time, and then discarded afterward freeing up the space.
-
alepzi
so clone is best for ephemeral jails, not long running ones?
-
rwp
Right!
-
rwp
If one is going to create a long running image where everything over time is going to change then a clone does not save any space. Yet zfs still needs to keep track of all of the reference pointers. Better there just to start off with a fresh empty dataset for it then.
-
rwp
All of those things will "work" though. You won't notice any failures or it not working. It's just a matter of disk space usage. The organization chosen will have an effect on disk space use.
-
alepzi
i better learn more on zfs fundamentals like clone vs copy vs template...
-
alepzi
ty
-
ketas
clones suck
-
ketas
how do i upgrade it?
-
alepzi
why
-
» rwp laughs
-
rwp
ketas is illustrating exactly the problem with clones and *long running jails that need upgrades*.
-
ketas
if i disconnect it
-
ketas
it's fucked
-
ketas
no "dedup"
-
ketas
i use nullfs mounts
-
ketas
i actually have own etc's under /root
-
ketas
bonus: no space usage
-
ketas
i have jail dist over which i tar | tar some changes
-
ketas
it's a zfs dataset
-
ketas
so i can just destroy it on upgrade
-
ketas
after jails stop
-
ketas
but sometimes you need writable etcs
-
ketas
oh, /usr/local comes from on of the jails
-
ketas
one
-
ketas
others have it ro
-
n30
is there any way to get freebsd faster in read and write on disks ? i have ssd disks in my box and its extremely slow ... i have an identical box but with debian and that is 10 times faster. 1048576000 bytes transferred in 79.344914 secs (13215415 bytes/sec) <-- -this dd test is from freebsd box ... 1048576000 bytes (1.0 GB, 1000 MiB) copied, 14.2255 s, 73.7 MB/s <-- this one is my debian box. 2 identical
-
n30
servers
-
V_PauAmma_V
What bs= value do you use in dd? (default or explicit)
-
n30
dd if=/dev/zero of=/tmp/file.txt count=1024 bs=1024000
-
n30
did i write
-
V_PauAmma_V
"1024000" is a weird blocksize, in that it's not a power of 2. For dd, FreeBSD performs best with "bs=128K", IIRC.
-
ketas
use status=progress too
-
n30
but the box is extremely slow no matter what i do
-
hernan
n30: ssd can become fragmented over time. maybe thats the case ?
-
hernan
also, what FS is it?
-
ketas
and which ssd
-
n30
samsung evo 850
-
n30
and its ufs filesystem
-
ketas
13m/a, 73m/s only?
-
n30
err 870
-
ketas
i hope the reads are better
-
n30
not on the freebsd server, its really crappy here
-
hernan
i have had that same question years ago. UFS write speed sloooow vs linux, but on sata hdds. I dont think i found the answer. but no problem with ZFS
-
ketas
i had slow zfs years ago
-
hernan
=p
-
ketas
it was fucking slow and i attributed it to zfs
-
rwp
Verify that the SATA interface is running at 6 Gbit/s, I use "smartctl -i /dev/ada0 | grep current:" to report it.
-
n30
it was fast as crazy before but not anymore
-
ketas
zfs is still kinky
-
ketas
but how can ssd to be that slow...
-
n30
rwp: i dont have any current there .
-
n30
-
VimDiesel
Title: [root@mail ~]# smartctl -i /dev/da0smartctl 7.4 2023-08-01 r5530 [FreeBSD 13.2 - Pastebin.com
-
rwp
-
n30
rwp: i have raid on my box . 2 disks in raid 1
-
n30
but it have been way much faster
-
ketas
lacks smart
-
ketas
how?
-
rwp
I always raid everything too. That example is just one disk in the pair. But I am using zfs pretty much everywhere.
-
ketas
it's connected to usb or what?
-
rwp
pkg install smartmontools
-
n30
The most recent versions of packages are already installed
-
ketas
oh right
-
rwp
Just for background information "geom disk list" will list the devices, and the sector and stripe sizes. Is it possible that it is a 4K AF disk but used as a 512 byte sector one?
-
ketas
are we dd'ing hdd or ssd here now
-
rwp
There is also "diskinfo -cit /dev/adaX" there too. Here is an example from here:
termbin.com/7jn0
-
n30
rwp: ill test
-
n30
-
VimDiesel
Title: [root@mail ~]# diskinfo -cit /dev/da0/dev/da0 512 # secto - Pastebin.com
-
hernan
da0 ? is that usb ?
-
rwp
USB storage is always terrible performance. And often glitchy.
-
ketas
i wish usb is better
-
ketas
iirc usb3+ actually had some better standards?
-
n30
hernan: nah not usb
-
n30
its hp raid array
-
ketas
but where's the ssd you tested
-
n30
da0 is the raid 1 with 2 pieces of ssd
-
ketas
oh
-
n30
i have an identical box with debian on that works ten times faster
-
n30
this freebsd box was fast as crazy before with both reads and writes
-
ketas
hence the wrong data
-
ketas
but why is it ffs 13mbytes/s
-
n30
i have for some weeks ago removed drives from server and checked with smart tool in windows to see if disks are broken but they have 92% health left
-
n30
so there is no issues with disks hw or the raid
-
n30
yeah i wonder that too
-
ketas
might as well raid 1 two 2.0 usb flashes then
-
n30
before it took a few minutes to compile kernel ... now it take hours
-
ketas
same speed
-
ketas
before?
-
ketas
what was there before?
-
n30
yeah a few months ago
-
ketas
hdd's?
-
n30
ketas: the ssd drives were faster then
-
ketas
but how
-
n30
ì dont know? that is why i ask here
-
ketas
there was older fbsd there?
-
n30
im all out of ideas
-
n30
nah
-
n30
same as now
-
ketas
so now it's slow?
-
n30
Yes
-
ketas
maybe ssd actually crapped out
-
ketas
or raid card
-
ketas
sadly you can't test now
-
n30
crapped out?
-
ketas
well if it worked before
-
hernan
do you have spare ssd to replace and see if it writes faster ?
-
ketas
same hw same fbsd
-
n30
hernan: nah i dont not yet
-
ketas
i'd suggest, on upgrade, do mirror in zfs
-
ketas
could at least debug more
-
n30
but i checked the drives with crystaldiskinfo and i have 92% health left?
-
hernan
or switch with the windows raid and disks and see if there is any difference
-
ketas
clue is probably, it was fast before
-
hernan
give that windows raid equipment is similar, maybe you could take out the windows disks, replace with the freebsd disks and plug on the freebsd and see if that changes anything
-
hernan
that will tell you if the raid equiment has degraded (it shouldnt but..)
-
n30
hernan: did not test speeds in windows with them... i only verified the drive health to be sure its not "broken"
-
ketas
get spare ssd
-
ketas
take old one out and r/w test it
-
hernan
yeah
-
hernan
and keep it as backup with health left goes down to 5%
-
hernan
better be prepared
-
ketas
what was read speed?
-
ketas
but write... hell knows
-
ketas
does it get hot?
-
ketas
they do throttle
-
ketas
some
-
ketas
how much writes it got?
-
ketas
i hope that raid allows smart passthru
-
ketas
i wonder if raid does trim...
-
ketas
so much fun with hw raid
-
ketas
yes they have benefits