-
rtprio
sort -o file_3 file_1 file_2
-
polyex
there a way to cat >> ~/path/file but only if the line isn't already in the file? getting duplicate lines injected
-
parv
Would be messy+expensive. What is the source of input that is being appended?
-
parv
You could run "uniq file >| x && mv x file" post-append
-
parv
Or, open the file in read+append mode; keep the memory last N lines; write the input only if not already present in those remembered lines.
-
babz
grep -Fx <line> <file> || echo <line> >> <file>
-
kenrap
-
VimDiesel`
Title: gist:560386e9e53389751c640a8d413442a0 ยท GitHub
-
armin
this has a link to the RC3 ISO images that results in a 404:
freebsd.org/news/newsflash/#2023-10-27:1
-
VimDiesel`
Title: FreeBSD News Flash | The FreeBSD Project
-
armin
-
armin
maybe someone wants to fix this. ;-)
-
CrtxReavr
ziv, fix yer shit.
-
rwp
babz, Using grep -q there is good. Means grep will stop reading once it encounters the line. Maybe faster if the file is large. Also it emits no output.
-
CrtxReavr
o_O
-
» CrtxReavr did not know about the stop on first match part of 'grep -q'.
-
CrtxReavr
Makes sense though, since there's no output.
-
rwp
Since the only purpose of grep -q is to act as a boolean with the return code after the exit status becomes known then it can short-circuit doing more work in that case.
-
rwp
Before -q was added we had to simply redirect the output >/dev/null but otherwise it is the same concept.
-
rwp
I believe grep -l does the same optimization too.
-
babz
good to know
-
voy4g3r2
because sharing is caring, i just implemented this setup on my raspberry pis and it has had a nice increase in "performance"
edersoncorbari.github.io/tutorials/freebsd-performance-tuning
-
VimDiesel`
Title: FreeBSD Performance Tunning Ederson Corbari
-
CmdLnKid
dude. a lot of that stuff has been sniffed from teh #deeppast. but nonetheless thanks for bringinng it all together
-
CmdLnKid
mention of hardware, purpose etc... are in non-relation
-
CmdLnKid
you talking 1bhps on a web server or 3 logins on a shell server ?
-
CmdLnKid
the distribution ... are you talking tuning for inter nodes/proxies, whats your traffic shaping look like ? etc etc...
-
rtprio
does anyone run openbsd as a guest in bhyve?
-
rtprio
with *UEFI* ?
-
rtprio
i can't seem to get it to boot
-
voy4g3r2
well i want to clarify, i did not write this article, i found it and wanted to share in my ever enduring journey of trying ot increase performance on this raspberry pi
-
voy4g3r2
next up.. kernel compiling.. fun!
-
rtprio
that won't improve performance, but might free up some memory for you
-
debdrup
There's a mail on the announce list about the FreeBSD vendor summit.
-
debdrup
voy4g3r2: that article contains at least some amount of cargo-culting, because loading device drivers that aren't needed for booting is slower than loading them via rc.conf(5) via kld_list and/or devmatch.
-
debdrup
Also, note that HTCP isn't exclusively "best", and there's a reason why FreeBSD has a pluggable TCP stack to switch congestion control mechanisms.
-
voy4g3r2
debdrup: understandable, just figured would share.. as the congestion stuff was fascinating.. your mileage may vary of course.
-
voy4g3r2
debdrup: the "speed" of raspberry pi images just "feels slow" in comparision when i load the raspbian distro.. but it is probably expected as they have people who explicitly work on it
-
kevans
voy4g3r2: one problem I had was that the mmc stack for some reason wouldn't raise the sdhci speed making disk access operations ungodly slow
-
kevans
i started rolling with GENERIC-MMCCAM because of it
-
voy4g3r2
kevans: on a raspberry pi?
-
» armin throws raspberry pi's in voy4g3r2's general direction
-
voy4g3r2
armin: i got 2 of them, both 4b w /4 gig.. great little play machines
-
voy4g3r2
-
VimDiesel
Title: Optimizing NFS Performance
-
Hello71
on tcp, what's the difference between function stacks and congestion control modules, and why does bbr have both?