-
kyonsalt
freebsd13 enable ipv6, could get ipv6 address, can't ping6 ipv6.com(no route to host), any idea?
-
satanist
kyonsalt: ipv6.com has no ipv6 adress in the dns
-
satanist
try "ping6 www.kame.net"
-
kyonsalt
:),same response:"no route to host", "netstat -nr" shows ipv6 gateway and could ping that ipv6 gateway address. Confused...
-
satanist
what does "traceroute6 -n www.kame.net" say?
-
kyonsalt
$ traceroute6 -n www.kame.net
-
kyonsalt
traceroute6: Warning: mango.itojun.org has multiple addresses; using 2001:2f0:0:8800:226:2dff:fe0b:4311
-
kyonsalt
connect: No route to host
-
kyonsalt
-
satanist
any fw active?
-
satanist
also what says route -n6 get 2001:2f0:0:8800:226:2dff:fe0b:4311
-
kyonsalt
$ route -n6 get 2001:2f0:0:8800:226:2dff:fe0b:4311
-
kyonsalt
route: route has not been found
-
satanist
can you paste the output of netstat -6nr
-
kyonsalt
no firewall
-
kyonsalt
too long, but there have 2 ipv6 global address with "link#4 U/UHS em3"
-
satanist
use a paste service like
bsd.to
-
VimDiesel
Title: dpaste
-
last1
I have a server with one SSD and 40x hdds configured with zfs in 20 mirrored vdevs
-
last1
when I do rsync from/to the SSD, I can hit at most 400MB/sec
-
last1
the hdds are on sas3 backplane rated @ 12gbps
-
last1
shouldn't I be seeing close to 1GB/sec or more ?
-
RhodiumToad
rsync with what options?
-
last1
ah it's a local copy, so just rsync --info=progress2 src dst
-
RhodiumToad
to destination files that don't already exist?
-
last1
it's a single 38Gb file
-
last1
which doesn't exist yes
-
last1
25,682,083,840 66% 416.80MB/s 0:00:30
-
RhodiumToad
ok, and if you run gstat -p while it's running, what do the busy percentages look like?
-
last1
ah, hang on a second
-
last1
SSD limit is 400MB/sec lol
-
last1
not sure why I was expecting more
-
RhodiumToad
well there you go
-
last1
however, I also have a zfs ssd pool made up of 5 x 2 mirrored vdevs
-
last1
and there it's also 400MB/sec to/from the 20 x hdd vdevs
-
RhodiumToad
ok, and gstat -p shows what?
-
last1
bursts of 11% busy on all drives, but it's not constant
-
last1
-
VimDiesel
Title: dpaste/Qwic (Plain Text)
-
last1
-
VimDiesel
Title: View paste MFFWS
-
last1
this is better
-
last1
the drives don't seem to be all that busy
-
last1
I tried disabling the sync on the target zfs pool, didn't make any difference
-
RhodiumToad
now do top -CSH -s10 -c2 (it'll sleep 10 secs and redisplay and exit, paste the final output)
-
last1
top: invalid option -- c
-
RhodiumToad
-d2 sorry
-
last1
interestingly enough I'm see more activity on the ssd pool than on hdd pool
-
last1
-
VimDiesel
Title: View paste B7I54
-
RhodiumToad
smaller pool will generate proportionally more activity for a given load
-
last1
this is the top output:
bpa.st/NCWEE
-
VimDiesel
Title: View paste NCWEE
-
RhodiumToad
er
-
last1
true, but I was expecting 5 x 400Mb = 2GB/sec output for this ssd pool
-
RhodiumToad
that's a lot of cpus, can you do it on a larger screen?
-
RhodiumToad
or maybe add -I to the flags
-
RhodiumToad
no, that won't help
-
RhodiumToad
want to see system threads in the output, but the per-cpu idle threads are getting in the way
-
parv
Why could "idle" threads not be filtered out?
-
rwp
What controller is driving these devices? Might it be the bandwidth limit?
-
RhodiumToad
ah, -z is the flag needed
-
last1
It's a standard LSI 9308-8i + 9308-8e HBAs
-
last1
the 8i drives the internal SSD pool, the 8e drives the external HDD expansion enclosure
-
parv
Never mind
-
RhodiumToad
last1: top -CSHz -s10 -d2
-
last1
it's all supposed to be 12gbps
-
rwp
Should be good then. It's good that you are looking into this performance side.
-
last1
-
VimDiesel
Title: View paste C5HVS
-
parv
rysnc busy raking the disks
-
» kevans chuckles at a message in a non-freebsd list: "I'd suggest not writing in all caps, as that is typically interpreted as angry shouting." ... less than 5% of the e-mail being responded to was in all caps, and it went on to explain the warranted anger
-
RhodiumToad
haha
-
» RhodiumToad was responsible for the all caps
-
last1
the cpus are CPU: Intel(R) Xeon(R) CPU E5-4667 v4 @ 2.20GHz , 18 cores each, 36 for both, I'm guessing with HT it shows as 72 total cores
-
rwp
I am not a fan of HT and have benchmarked tasks where things are faster without HT than with it. But not file system tasks. So, don't know here.
-
RhodiumToad
rsync is using enough cpu that it might be the limiting factor, depending on the exact pattern of system calls it's doing
-
RhodiumToad
not in terms of total cpu usage obvious;y, since the box is >96% idle, but in terms of single thread usage
-
last1
interesting
-
last1
so if I start two in paralell it might show total transfer of 800MB/sec but it will be bound on different cpus
-
last1
and then I can tell if the limit is IO or cpu
-
RhodiumToad
might be interesting to try a few completely independent rsyncs in parallel to see what the aggregate i/o is like
-
last1
cool, let me try that
-
RhodiumToad
kevans: also I was especially peeved since this is the second time for lua 5.4 alone, though the first time I was keeping up enough to catch the problem in a release candidate and argue them out of actually releasing an ABI break
-
RhodiumToad
this time I was just too late :-(
-
last1
-
VimDiesel
Title: View paste JOXQS
-
last1
yep, it seems the CPU is the limiting factor
-
last1
two in parallel I hit 800MB/sec
-
last1
well, either CPU or rsync single thread performance
-
parv
last1, Another thing to try is --while-file option (& --sockopts)
-
RhodiumToad
rsync isn't necessarily going to be the fastest tool for this, since it's written for a much more general use-case
-
parv
s/--while-file/--whole-file/
-
RhodiumToad
parv: when the destination file doesn't already exist that should make no difference
-
RhodiumToad
since it'll do whole file mode then anyway
-
parv
Right
-
last1
so what's the fastest way to copy a file then ?
-
last1
weirdly enough, from another server I can hit 500MB/sec using scp
-
last1
with: -c aes256-gcm⊙oc
-
last1
no I can't
-
parv
Replace all the disks? I read about "Infiniband"
-
last1
ha, weird stuff, check this out
-
parv
(replacing the disks in terms of moving a set of disks from one enclosure to another)
-
last1
from backup server, I start a copy from remote, I get 300MB/sec using scp
-
last1
from the remote server I start a copy to backup server, also using scp , I get 500MB/sec
-
last1
why would it matter where I initiate the transfer frmo
-
last1
*from
-
rwp
So rsync is good for *incremental* transfer. And also for plain copying. But for plain copying just plain cp is also okay.
-
RhodiumToad
it may affect the distribution of encryption vs. read/write workload between threads
-
rwp
I might try a test using "pv" (a utility I like with nice progress indication) and then try a test without rsync.
-
RhodiumToad
I'm not sure how scp divides things up on the initiation end, but on the destination end I think it'll end up using separate processes for decrypt and write
-
last1
RhodiumToad: that may indeed be the case, the source server has a more powerful cpu
-
parv
last1, When you would chance, also try a "zfs send | mbuffer | zfs recv"
-
RhodiumToad
last1: again, if you investigate using top -CSHz you may be able to tell whether certain specific threads are a possible bottleneck
-
parv
.oO( Heh that works even without "have" :-)
-
last1
I guess what's needed is something like torrents
-
last1
split the file automatically in x chunks and transfer those in parallel
-
kevans
RhodiumToad: oh yeah, totally get it... and roberto's responses have left a lot to be desired
-
kevans
very "no one cares" vibes, when it's the promise they made. you can't just de-weight some APIs like that because it's convenient
-
kevans
bad wording, some parts of the API
-
last1
silly question, when copying, even with cp a file from a different pool, why does it show 99% cpu usage ?
-
last1
isn't copying mostly IO ? what's the cpu doing ?
-
RhodiumToad
often the answer to that is "figuring out what to write where"
-
la_mettrie
at least if the device has no DMA, then processor needs to handle transfer of each byte in I/O
-
RhodiumToad
as the raw i/o becomes faster, the software overheads become more of an issue
-
last1
well, cp is about 3x faster than rsync
-
last1
completes in 27 seconds
-
last1
so roughly 1GB/sec I think
-
kevans
yeah that makes sense
-
RhodiumToad
I think in recent versions, cp uses copy_file_range
-
RhodiumToad
which may bypass some of the CPU cost of doing the obvious read/write loops
-
nerozero
on ZFS, it is also dependent on fragmentation
-
kevans
yeah, and iirc rsync always forks and execs an rsync receiver to copy to, even for a local copy; can't really optimize it in that way
-
kevans
er, forks
-
last1
would the zfs compression show up under the cp cpu usage ?
-
RhodiumToad
I don't think so, I'd expect to see that in a zfs thread
-
nerozero
it is more disk iops
-
RhodiumToad
but my zfs knowledge is weak
-
nerozero
check it with gstat
-
RhodiumToad
nerozero: last1's case involves a lot of disks and a high-speed controller
-
nerozero
see disk "busy" status and ops/s
-
last1
yeah, we already determine the issue is the cpu
-
nerozero
RhodiumToad, sorry, just joined dont see previous conversation
-
last1
maybe a faster cpu can do faster copes than 1GB/sec
-
last1
*copies
-
nerozero
ok
-
nerozero
what is the CPU specs then ?
-
last1
Intel(R) Xeon(R) CPU E5-4667 v4 @ 2.20GHz
-
nerozero
yeah
-
RhodiumToad
thing is, 36 cores is a lot of aggregate CPU power, but you're still limited in how much speed you can deliver to a single thread
-
last1
so I'm hitting a pretty basic limit here, I can't imagine even with more powerful CPUs hitting more than 2-3GB/sec
-
RhodiumToad
probably not when you're bottlenecked by 1 thread, no
-
nerozero
THere is 18 cores, the rest is hyperthreading which performance is iffy
-
nerozero
but still it is alot
-
RhodiumToad
2 packages, I think?
-
last1
it's 2 cpus, with HT it's 72 'cores'
-
RhodiumToad
and yeah, HT won't be helping at all in this context
-
RhodiumToad
hard to tell whether it's just not helping or whether it's hurting at all... I would guess it probably isn't hurting, but that'll depend on other factors
-
nerozero
still thiking this is an issue of disk iops, in case of zfs raid, had same issue after having a lot of volume type zfs entries
-
last1
we ran two rsyncs in parallel, got twice the speed
-
last1
it's really a single thread speed issue
-
RhodiumToad
nerozero: we got gstat -p output before, the disks are a long way from being saturated on ipos
-
RhodiumToad
*iops
-
last1
so I wonder, how do big data companies transfer giant files that are like 100-200Tb
-
last1
if it's sequential it will take forever
-
nerozero
by switching hard drives :D
-
last1
heh, true
-
RhodiumToad
alas, it's been a good many years since I worked with anything considered "big"
-
nerozero
like mirror pool - take half, u got a second copy :D
-
parv
;->
-
last1
how do you know which to take though ?
-
nerozero
it is mirror, dont care :D
-
last1
this time I'm taking photographs of each disk's serial # before putting it into its final bay for production
-
parv
Mirror!
-
last1
yeah, but the order they give you after isn't related to their position
-
RhodiumToad
though then I often had to transfer significant data volumes between San Jose and Amsterdam, and part of how that was done involved avoiding having single huge files and instead using larger numbers of moderate size files
-
last1
-
VimDiesel
Title: View paste NFCGC
-
nerozero
^^ now that is impressive
-
last1
cheap mans backup server. 280Tb total capacity
-
nerozero
at this many drives the RAID controller itself can cause a performance issues, bus speed limitations
-
nerozero
My experience limited by 10 drives max so... I'm a bad advisor here :(
-
last1
the raid controller is fine, it can do 12gbps
-
last1
it's an hba actually
-
last1
ah wait, another click, 12gbps = 1.5GB/sec which is pretty close to cp's speed
-
nerozero
possible
-
nerozero
plus some overhead
-
last1
guess I have to look @ 24Gbps sas
-
nerozero
Imho moving data by replacing a part of the drives by bringing them offline is still a solution ...
-
last1
this is an ongoing backup, I can't shuffle physical disks 10 times per day
-
last1
but I'm happy with my answers
-
nerozero
3 way mirror - not loosing redundancy
-
last1
rsync is cpu limited, cp is io limited
-
last1
thank you everyone for your inputs & help
-
nerozero
good luck !!!
-
tercaL
In regular RAID 5, I know that drives can be hot swapped in RAID 5, which means a failed HDD can be removed and replaced without downtime. Is this fact valid for also ZFS/raidz1?
-
tercaL
as RAIDZ1 = RAID 5
-
tercaL
Is hot swapping possible with ZFS and raidz1? If so, would simply replacing the failed disk with the new one, be enough? Or some set of commands is needed?
-
dubiousness
-
dubiousness
21.2.3
-
VimDiesel
Title: Chapter 21. The Z File System (ZFS) | FreeBSD Documentation Portal
-
dubiousness
tercaL: ^
-
debdrup
hotswapping needs zfsd(8), that you enable the autoreplace zpool property, and that the disks have an identifiable enclosure path
-
debdrup
depending on what you mean by hotswapping, i gues
-
dubiousness
RAIDZ is roughly RAID5
-
tercaL
debdrup: In cases like, getting a drive rerror, shutting the server down, replacing the disk and re-starting the OS.
-
debdrup
if you mean the actual electrical hotswapping, that needs a backplane with capasitors to handle the inrush current
-
tercaL
*a drive error
-
debdrup
tercaL: it's not just a question of software, though
-
tercaL
Hmmm
-
debdrup
electrically, there's a risk of arcing due to inrush when hotswapping
-
debdrup
that's why you need a capasitor
-
debdrup
as far as software goes, you can use zpool offline and zpool online to remove and re-add a disk
-
debdrup
that's what zfsd can do automatically, using enclosure identifiers
-
debdrup
as an example, in my SAS enclosure, if i pull a disk, and insert a new disk (usually bigger, but at least the same number of LBAs of the same size), my zpool will automatically begin the resilver process
-
debdrup
this isn't really a good idea if you're booting from the pool though, because boot pools require partitioning
-
debdrup
but yes, you can probably do what you want, it's just a question of how
-
debdrup
if you can schedule downtime, that's absolutely the best idea, unless you're working with a backplane that's made for drive hotswapping
-
debdrup
but zfs itself doesn't really care, so long as there's sufficient blocks, which is a question of array layout
-
mvanbaak
auto resilver also will not work when you use geli encryption
-
debdrup
true
-
mvanbaak
but yeah, I have replaced 6 out of my 8 disks in the last year, without taking down my nas
-
debdrup
using zfsd with autoreplace and autoexpand enabled does feel like magic, though
-
mvanbaak
yeah, I should move to zfs encryption instead of geli on my home nas
-
debdrup
i wouldn't.
-
debdrup
-
VimDiesel
Title: OpenZFS open encryption bugs (public RO) - Google Sheets
-
mvanbaak
ok, maybe I should stick with geli
-
mvanbaak
thanks :)
-
tercaL
debdrup: Very strong and super cool info, thanks. Final question, when I created a pool with: zpool create tank raidz1 da0 da1 da2 da3 da4 da5, the pool was created but the console had errors output like; GEOM da0: the primary gpt table is corrupt or invalid. And it goes the same messages for all da1, da2.. disks. Should I worry about this one?
-
tercaL
and it continues: "using the secondary instead -- recovery strongly advised"
-
tercaL
-
VimDiesel
Title: Solved - Corrupt GPT Table | The FreeBSD Forums
-
rwp
tercaL, Since you have six drives I recommend raidz2 (effectively raid6) instead of raidz1 (raid5) as it reacts better in the presence of fault conditions.
-
scoobybejesus
Speaking of 13.1-RELEASE to 13.2-RELEASE, would you sooner update a base jail so that its respective thin jails update "automatically," or would you rather bootstrap a fresh base jail and edit the `fstab`s of the thin jails to mount the filesystem from the fresh base jail?
-
scoobybejesus
With constrained resources on a VPS, the latter is easier for me. It has worked thus far
-
debdrup
I don't use base jails because storage space isn't the premium it used to be.
-
debdrup
Base jails and thin jails, rather.
-
scoobybejesus
True. I appreciate the response. It's much to better to hear that than "the two are not equivalent and you are asking for trouble."
-
debdrup
There's another option, too.
-
scoobybejesus
VPSes tend to be overprovisioned (YMMV, i suppose). My issue is compute. I forgot to reboot prior to upgrading last night, and it took forever. Rebooting tends to get cores with much more headroom initially
-
scoobybejesus
Another option?
-
debdrup
If you set it up so that third-party software configuration is handled via unionfs(5), instead of updating each jail sequentially, you can install a new jail, zfs snapshot then zfs clone that snapshot into a new dataset that's used for yet another jail where you install third-party software into, then mount the configuration files into the jail.
-
debdrup
That way, you're only spending diskspace for the third-party software, as zfs snapshot+clone will cause all the unmodified data to simply exist as referenced data.
-
debdrup
It needs ZFS to work, and is fairly labour-intensive over simply running freebsd-update, but saves a couple of GB (or however much diskspace the base system takes up).
-
debdrup
I suspect some/most of it could also be done via poudriere-image(8) using the zfs snapshot+boot environment feature, but I haven't looked into that yet to make sure.
-
debdrup
It also requires careful control over the jails, so maybe it's more effort than is worth it.
-
debdrup
It's mostly just something I've been thinking of playing around with, if I ever get the time/energy.
-
scoobybejesus
As far as tinkering goes, I like the idea. Skinning a cat in a new way helps to either cement prior knowledge or realize shortcomings. But, yeah, I think I lack the time (and need) for this type of setup.
-
debdrup
Not sure I'm comfortable with that phrasing.
-
scoobybejesus
There's more than one way to knit a sweater...
-
esselfe
Hi, if I allowlisted a dynamic IP via a dns name that's auto-updated will pf still allow the new IP in?
-
esselfe
like does it resolve my dns often?
-
debdrup
Nameserver lookups should never be part of firewall configuration.
-
debdrup
That risks a catch-22.
-
esselfe
ok, what would be the best way to whitelist a dynamic IP that has a dns entry?
-
esselfe
(I'm new to freebsd)
-
nerozero
o/
-
nerozero
how can I find CPU and / or motherboard temperature ?
-
nerozero
the only thing so far I have found is: sysctl hw.acpi.thermal.tz0.temperature
-
nerozero
ha ... kldload coretemp, then sysctl -a | grep -ie temp
-
debdrup
esselfe: ip range with cidr notation
-
debdrup
do a whois on your ip to find out what range it's in, then figure out the vlsm
-
esselfe
ok, thanks
-
nerozero
-
VimDiesel
Title: ag(1)
-
nerozero
the "ag" command is not available on the system ...
-
nerozero
freshports doesn't seems to have listed it too
-
nerozero
found it under textproc/the_silver_searcher
-
dvl
-
VimDiesel
Title: FreshPorts -- textproc/the_silver_searcher: Code-searching tool similar to ack but faster
-
nerozero
dvl :)
-
nerozero
thanks
-
dvl
^ ignore the branch, I blindly copy/pasted after searching for Silver Searcher
-
otis
i'd be cursious how ag performs compared to ripgrep
-
nerozero
otis need it for vim
-
meena
they are all compatible.
-
michaeldexter
Hej! Might anyone have ideas for this boot issue on a Ryzen 7 Pro-based ThinkPad?
bugs.freebsd.org/bugzilla/show_bug.cgi?id=270707
-
VimDiesel
Title: 270707 – Installer media doesn't boot on Thinkpad T14s Gen 3 (Ryzen 7 Pro 6850U)
-
michaeldexter
Hi VimDiesel! I've missed you!
-
michaeldexter
<3 <3
-
rtprio
heh
-
CrtxReavr
VimDiesel, you tried with ACPI disabled?
-
meena
CrtxReavr: you mean michaeldexter
-
CrtxReavr
Um. . .. yeah.
-
CrtxReavr
whoops
-
CrtxReavr
I remember a painful period in the transition from PS/2 to USB devices. . . had to side-load a kernel with fdc(4) support removed.
-
Demosthenex
ugh, ok the root issue of scli not working wasn't my jail or freebsd, it's that signal-cli is a year out of date and the ssl certs expired. signal is such a pita.
-
yuripv
michaeldexter: try: set debug.acpi.disabled="acad cmbat" from the loader prompt
-
michaeldexter
Trying that now... Thanks.
-
michaeldexter
yuripv: That now stops earlier at psm0: model Generic PS/2 mouse, device ID 0
-
yuripv
what if only cmbat in that line?
-
michaeldexter
yuripv: That now stops at the next message, acpi_acad0...
-
michaeldexter
yuripv: I tried including only "acad" but the same result.
-
michaeldexter
yuripv: One type of of the space bar gives: AcpiOsExecute: task queue not started
-
RhodiumToad
usually when boot hangs it's not the fault of whatever did the last message, but rather the thing _after_ that, which of course you never see
-
meena
hrmmm
-
meena
do we have a fixed boot oder?
-
RhodiumToad
no
-
RhodiumToad
well
-
RhodiumToad
maybe try disabling all the acpi modules, or just enabling them one at a time?
-
michaeldexter
Trying that...
-
RhodiumToad
there's also a debug.acpi.avoid option to tell it not to try and parse parts of the acpi data, but figuring that out would probably require getting a dump of the acpi data from another OS
-
michaeldexter
RhodiumToad: set hint.acpi.0.disabled="1" gives a panic: APIC: Could not find any APICs.
-
RoyalYork
Has anyone had luck with getting a FreeBSD working on proxmox? With all the defaults, I can only acheieve a maximum screen resolution of 1280x1024. Wondering if anyone has had success with getting 1920x1080
-
RoyalYork
*** getting a FreeBSD DESKTOP working on proxmox
-
RhodiumToad
michaeldexter: debug.acpi.disabled="all"
-
antranigv
RhodiumToad thank you we got some progress! :D
-
michaeldexter
RhodiumToad: Indeed! Now I get mountroot> with no disks, but I investigate further. Thank you both!
-
RhodiumToad
maybe try disabling "acad button cmbat cpu ec lid mwait quirks thermal timer video" and if you get anywhere with that, try selectively removing those until it breaks
-
michaeldexter
Will do!
-
michaeldexter
RhodiumToad: That stops at whatever is after psm0
-
michaeldexter
But thank you!
-
yuripv
michaeldexter: there are also debug output options in acpi(4)
-
yuripv
could try that with ACPI_ALL_DRIVERS and ACPI_LV_ALL_EXCEPTIONS
-
michaeldexter
I'll try that yuripv
-
michaeldexter
yuripv: No luck with ACPI_ALL_DRIVERS and ACPI_LV_ALL_EXCEPTIONS and them individually, plus a few more from the manual page, but huge thanks!
-
yuripv
michaeldexter: it does not print any additional information?
-
yuripv
looks like ACPI_DEBUG is needed in kernel config for that..
-
yuripv
or there's also debug.acpi.enable_debug_objects (try setting this to 1 with previous debug settings?)
-
michaeldexter
yuripv: No, that did not provide any more debug information. I'll try debug.acpi.enable_debug_object
-
michaeldexter
Same behavior.
-
RhodiumToad
michaeldexter: add sysresource to the list I suggested
-
RhodiumToad
michaeldexter: if that doesn't help, try isa
-
RhodiumToad
the problem is that you likely need bus, children, pci and pci_link to get at important hardware
-
RhodiumToad
probably need isa too for that matter, but try it
-
michaeldexter
Will do.
-
michaeldexter
Just to confirm RhodiumToad: At the loader prompt: set debug.acpi.disabled="acad button cmbat cpu ec lid mwait quirks thermal timer video sysresource isa"
-
michaeldexter
Same behavior
-
michaeldexter
I guess I can build opions ACPI_DEBUG into a kernel.