-
meena
-
VimDiesel
Title: freebsd-src/stand/kboot at main · freebsd/freebsd-src · GitHub
-
debdrup
It's an implementation of an API found in Linux, iirc.
-
debdrup
It makes a kind of sense given who's paying for the work if you consider what they might want (or, more likely have, since there's a delay between something being tested in production at Netflix and it going into the FreeBSD tree).
-
debdrup
Unless they've been making big architectural changes that they've yet to talk about, their front-end is Linux on a butt provider while FreeBSD provides the data-intensive part of the CDN in the form of Open Connect Appliances.
-
debdrup
All of this is public information, and they've been fairly vocal about all of it - the secret sauce of how they can handle about a third of the internets traffic at its peak is in the configuration.
-
debdrup
The configuration and its associated institutional knowledge (and by extension the engineers that configured it).
-
debdrup
That latter part will, I believe, turn out to be more significant - a fact that might be dawning on people who're trying to run a certain bird site.
-
V_PauAmma_V
s/run/ruin/ :-)
-
debdrup
Well, yes.
-
debdrup
It's not like infrastructure degrades instantly if the people with institutional knowledge disappear, but usually by the time it does it'll be too late to do anything about it.
-
debdrup
And institutional knowledge isn't really something you can document your way out of, because much of it is knowing 1) what has been tried in the past and 2) just as importantly, if not more, how those attempts failed
-
ngortheone
debdrup: so history is the best documentation
-
sopparus
hello
-
sopparus
can I set a static dns server in some other way then adding it to resolv.conf ?
-
sopparus
wg-down quick empties resolv.conf
-
sopparus
and I have to readd manually
-
tsoome
you cant. but you should check what to do about that wg-down to get dns servers back
-
sopparus
hehe yeah thats probably a better idea, thanks
-
sopparus
removing DNS = from wg.conf was only thing needed
-
NXH
exit
-
meena
man.freebsd.org/install(1)#COMPATIBILITY "Historically install moved files by default. The default was changed to copy in FreeBSD 4.4." — okay, but how do i get the old behaviour?
-
VimDiesel
Title: install(1)
-
meena
looks like there's no way, so you have to delete the old one yourself
-
debdrup
ngortheone: that's not what I said.
-
» meena points at the fall vs decline of (Western) Rome discussion historians have been having for 150 years now
-
pkubaj
i'm having an issue with my server
-
pkubaj
all the 4 drives plugged to the controller are spamming dmesg with errors
-
pkubaj
and of the mirrors is stuck ain a resilvering loop
-
pkubaj
i would like to replace the disk controller but is it safe, provided the resilvering is going?
-
V_PauAmma_V
ISTR someone here saying resilvering is resumable across reboots, but don't take my word for it.
-
debdrup
ZFS resilvers won't be affected by a reboot except that it'll add however long the reboot takes to finish the resilver.
-
debdrup
Only thing that can cause problems during a resilver is if there's an URE and not enough data availability to fix the issue, or if there's catastrophic hardware failure.
-
pkubaj
ok, thanks
-
pkubaj
then i'll try to replace the controller
-
meena
wouldn't it be really cool if Phab linked to bugzilla when someone opens a review with PR: pr-number ?
-
meena
-
VimDiesel
Title: ⚙ D38370 certctl(8): Remove untrusted certificates from TRUSTPATH
-
CCFL_Man
so i'm using some command line utiliuties that werte normally built for linux and it looks like pipes are not working correctly or there is something with the /bin/sh. is there some shell debugging i can use to see what is going on?
-
Kalten
CCFL_Man: first line
-
Kalten
#!/bin/sh -x
-
Kalten
to echo all commands including values of variables
-
Kalten
use `set -x` to activate this from some line on, and `set +x` to turn it off again.
-
Kalten
And you could write to stderr without disturbing stdout (which is mainly used by the pipes) by `echo "my Vari is ${vari}" >&2` or `printf "something %s here\n" "${vari}" >&2` or `date >&2` etc.
-
Kalten
Echoing to a log file via setting a log file `LOG=/tmp/my.log` and using things like `echo "my Vari ${vari}" >> ${LOG} in the script, while using some `tail -F /tmp/my.log` in another terminal (`-F` means: stay on file, not inode, and continue cat-ing it.) You can use `\n`-Keys to add empty lines in the tail-output for your convinience, and can
-
Kalten
even write there (is not added to the log file)
-
Kalten
and to copy a pipes output to a log file (maybe using `tail -F /tmp/my.log` again) something like
-
Kalten
`mycommand parameters | tee -a /tmp/my.log | secondcommand params` as tee(1) does copy to the file (`-a` for appending)
-
Kalten
does that help?
-
meena
do we support set -o pipefail ?
-
Kalten
according to the manual page sh(1) yes :-) (I take it, you did mean that.). One could write some test to test it.
-
meena
yes
-
CCFL_Man
sh -x vtcat -vvv @vlf44:1 -- -,f4 | vtwrite -L /mnt/nas/vlf44/log/vtwrite_32k.log -G 3600
-
CCFL_Man
sh: cannot open vtcat: No such file or directory
-
CCFL_Man
vtcat exists and can be called directly, but with that pipe, vtcat returns no error
-
mason
CCFL_Man: full qualified path instead?
-
CCFL_Man
ahh
-
CCFL_Man
that still returns the usage help output of vtcat
-
CCFL_Man
now, that command string will work fine on linux systems, but i'm trying to debug why it won't run on freebsd
-
Kalten
in Linux the sh is a bash called sh, in freeBSD it is a real sh. Might there be the problem?
-
Kalten
is vtcat a shell script?
-
mason
Kalten: Depends on the Linux. Debian, sh is dash, like FreeBSD's ash.
-
Kalten
mason: good to know. I thought, all Linux distributions used bash in place of sh. Interesting...
-
CCFL_Man
no, vtcat is a compiled program. do you think i should contact the author?
-
CCFL_Man
perhaps it's not a freebsd or shell issue
-
debdrup
The real sh was Stephen Bourne, and ash was, of course, written by Kenneth Almquist.
-
debdrup
was written by*
-
debdrup
I had to look up their first names :(
-
Kalten
CCFL_Man: mbut you have compiled it for FreeBSD?
-
CCFL_Man
yes. i can use the other functions of the program without issue
-
Kalten
`truss /path/vtcat -vvv @vlf44:1 -- -,f4 | /path/vtwrite -L /mnt/nas/vlf44/log/vtwrite_32k.log -G 3600` would tell you far more.
-
CCFL_Man
let me try that
-
Kalten
buckle up ;-)
-
CCFL_Man
'truss, right?
-
Kalten
truss(1) traces system calls. plenty of output—hence: buckle up :-)
-
Kalten
sometime it helps
-
Kalten
what is this vtcat and vtwrite thing?
-
debdrup
if I remember correctly, it's VLF signal processing software
-
debdrup
i have vague memories of messing around with it when I was an active HAM
-
mason
Kalten: Is that packaged? If so others might have an easier time looking. If it's not, maybe pull out that vtcat invocation and run it alone, see if it has a usage message, etc.
-
mason
Sorry, tabfail. CCFL_Man ^
-
ngortheone
debdrup: I meant that historical records can serve as a missing link, an addition to traditional documentation. As an answer to what was tried and how/why things failed. Sorry if my comment was a bit out of context :)
-
CCFL_Man
Kalten: that is good information. i think i'lk post it to the author
-
CCFL_Man
mason: it's not packaged, but i can use vtcat in other ways with a pipe, but with that spefic pipe and format output "-- -,f4", it fails on freebsd
-
CCFL_Man
debdrup: you used vlfrx-tools before? i use it all the time. have you done vlf study?
-
debdrup
CCFL_Man: I was only messing around with it on a hobby level
-
Kalten
mason: you are mistaken: CCFL_Man is the one using it, not I. ;-)
-
mason
Kalten: Yeah, that's what I meant by tabfail.
-
Kalten
ah! Did not read on prior to replying :-)
-
mason
CCFL_Man: Why the sh -x out of curiosity? Can you just run it without that?
-
mason
Kalten: No worries. :)
-
mason
CCFL_Man: Also, if it's some funny shell behaviour, you can always try other shells. Like, pkg install bash and try /usr/local/bin/bash instead of sh
-
CCFL_Man
that was for debug output to see where it was failing
-
Kalten
normally `--` means, that only filenames follow, no parameters. Normaly `-` stand in for stdout. Could the order of the parameters be a problem?
-
CCFL_Man
i have bash installed. using bash doesn't make a difference
-
CCFL_Man
maybe, but that was the order in the authors documentation which he runs it on linux
-
Kalten
mason: He had asked for help how to debug sh, but it is not a shell script.
-
mason
Oh, I see. I'd missed a bunch of scrollback.
-
Kalten
CCFL_Man: by default it is tcsh as interactive user (and root) shell, not sh.
-
Kalten
what do the parameters stand for?
-
CrtxReavr
You can also just run 'set -x' and 'set +x' to turn debugging on/off in sh (and bash)
-
CrtxReavr
-x mode will print how variables are being expanded.
-
CrtxReavr
Most often used in debugging shell scripts, I could see it being useful for debugging interactive shell settings as well.
-
Kalten
CCFL_Man: I would write a shell script to wrapp your call anyway—it sometimes spares aou trouble with user settings in there shells. Far easier to handle that way, I think
-
CCFL_Man
Kalten: this is the script i wrote:
bpa.st/2ICVC
-
VimDiesel
Title: View paste 2ICVC
-
CCFL_Man
CrtxReavr: thanks. i put that in my notes
-
» CrtxReavr wonders who he has on /ignore
-
Kalten
I would use /bin/sh on freeBSD. You might want to at least wait a bit after killing those programms: maybe in line 11 some `sleep 10` to be shure. Line 12: if there was no first parameter, the script would abort (at least in sh). better use `if [ ."$1" = ."start" -o ."$1" = "restart" ]; then`. line 39: should be `fi` not `f` I guess
-
Kalten
Sorry: in line 12: forgot the `.` at ` = ."restart" ]; then`
-
CrtxReavr
Oh yes. . .
-
CCFL_Man
Kalten: no . before "restart" and '; then' after the closed bracket?
-
Kalten
CCFL_Man: My line after the long one states . before "restart ;-) The `;` allows you to write the `then` in the same line as the `if` (I am just used to it). But the space after `[` and before `]` are necessary! Actually `[` is an alias for `test`, hence the manual page for `[` is the same as that for test(1)
-
Kalten
one can spend quite some time to figure that space problem out :-(
-
Kit_Leopold
Hello! As I wrote earlier in this chat, I've been reading the FreeBSD HandBook for several days now. At the moment I have a rather general question. Now the Gentoo Linux operating system is installed on my computer, I watch movies on my computer, listen to music, of course I visit the Internet (through the Firefox browser), I study the Emacs text editor (I want to keep my notes in it), I am interested in computer technologies if
-
Kit_Leopold
possible and sometimes I play into games through the Steam game client installed through Flatpak. Can you please tell me what problems I might have if I install FreeBSD as the main operating system?
-
la_mettrie
movies, music, firefox (including videos), emacs should work fine ...don't know about steam
-
mason
Kit_Leopold: Probably no problems. Videochat can be a challenge maybe. If you have bluetooth peripherals, they can sometimes be problemtic. Exotic hardware (say, keyboard with uhids) can be exciting.
-
mason
Oh, Steam. Steam is a perennial question.
-
Kit_Leopold
Yesterday I started FreeBSD LiveCD on my computer, I was able to check the sound and my video card (AMD Rx 550) was detected in the system. But so far, I have not yet decided to install the system. I think we need to be better prepared.
-
Kit_Leopold
la_mettrie: Thank you.
-
Kit_Leopold
mason: Steam doesn't work well on FreeBSD?
-
mason
Kit_Leopold: It seems challenging. I've only heard about it second-hand. My only gaming on FreeBSD is free software or Wine.
-
Kit_Leopold
mason: Thanks for the answer.
-
mason
Kit_Leopold: In short, anything that's actually free software should be a fairly safe bet.
-
Kit_Leopold
With the exception of the Steam game client, the software on my computer is released under a free license. Thank you.
-
CrtxReavr
Kit_Leopold, there are some FreeBSD based pre-built desktop distributions. . . which might be good to start with.
-
salvadore
Kit_Leopold, I have never tried steam, but I know that this port exists and is actively maintained:
freshports.org/games/linux-steam-utils
-
VimDiesel
Title: FreshPorts -- games/linux-steam-utils: Steam launcher for FreeBSD
-
CrtxReavr
Acutally, we may be down to only one:
hellosystem.github.io/docs
-
VimDiesel
Title: hello — helloSystem documentation
-
Kit_Leopold
salvadore: Thanks for the link to the port, I'll definitely read it.
-
Kit_Leopold
CrtxReavr: Thank you for the tip. I think it's best to be familiar with the underlying FreeBSD system for a better experience with the operating system.
-
CrtxReavr
There's an argument for that.
-
salvadore
-
VimDiesel
Title: Compatibility · shkhln/linuxulator-steam-utils Wiki · GitHub
-
salvadore
it has been written by the port's maintainer
-
salvadore
or at least edited
-
Kit_Leopold
Sorry if I'm not clear, I'm using google translator.
-
CrtxReavr
My counter-point to that, however, is that I've maintained FreeBSD workstations over many years. . . using them for my professional "daily-driver."
-
CrtxReavr
And you can get 'em setup really nice, and doing what you like.
-
CrtxReavr
But. . . un-expected shit can break things.
-
CrtxReavr
And it can take some doing to get them right again. . . even if you're strong with FreeBSD, and the ports/package system.
-
CrtxReavr
A distro like helloSystem can insulate you from the majority of that, when you need a workstation/laptop to Just Work(tm).
-
Kit_Leopold
If, after reading all the information about using the Steam game client, I decide that running Steam on a FreeBSD operating system is too complicated... I'll use a second Windows system and that's it.
-
Kit_Leopold
You are very good people, thank you.
-
CrtxReavr
(Ha! Fooled them!)
-
meena
TIL you can *set* the media type with ifconfig.
-
ngortheone
meena: this is how I usually test Gigbit ethernet :)
-
meena
ngortheone: cool
-
meena
well, anyway, i regret learning how to list infiniband devices… and if you're curious why, look up ibv_devices and how it's build
-
ngortheone
what is infiniband and why would a mere mortal need it? and where? (out of curiosity)
-
meena
ngortheone: trying to refactor cloud-init network functions
-
meena
infiniband is very very very low-latency networking, often used in either storage, or high-performance clusters.
-
meena
so, even tho Ethernet can outperform Infiniband in speed these days, it's got nothing on it in terms of latency, and where that's important, infiniband is still often used.
-
ngortheone
TIL infiniband exists :)
-
ngortheone
I was watching Netflix's presentations about pushing 800 Gbps per core on a FreeBSD box, and the guy said that despite SCTP/QUICK and other things exist regular TCP has such an optimizied kernel impl. by now that it still outperforms new protocols.
-
ngortheone
I wonder if you can talk TCP over infiniband?
-
ngortheone
as I understand infiniband is the link-layer protocol, that requires different hardware (NICs and cables), right?
-
jgh_
IPoIB, yes
-
jgh_
and yes, different NICs, cables, switches
-
nacelle
sometimes different nices :-)
-
nacelle
nics, even
-
nacelle
(there are nics that can do both if and eth)