-
last1
is the compression in zfs similar to gzipping a file ?
-
RhodiumToad
I believe each record is compressed separately
-
RhodiumToad
(so the recordsize matters)
-
rustyaxe
win 14
-
last1
I think my compressratio is very poor because my files are smaller than 128k which is the default recordsize
-
last1
any downsides to having a recordsize of say 8k ?
-
RhodiumToad
small recordsizes reduce the compression opportunities (for files larger than the record size)
-
ikkuranus-
I have an efi system running freebsd with a zfs mirror for /. One of the drives failed and I have resilvered it onto a new one.
-
ikkuranus-
How do I restore the efi partition on the new drive
-
parv
Create the same size partition of FAT16 or -32 (whatever that is); then copy the files
-
ikkuranus-
the efi partition appears to be there but it's not mountable like it is on the other drive
-
ikkuranus-
-
VimDiesel
Title: => 40 234441568 ada0 GPT (112G) 40 409600 1 efi (2 - Pastebin.com
-
ikkuranus-
ada0 is the replacement
-
RhodiumToad
ikkuranus-: what did you do to create the partition?
-
ikkuranus-
I don't remember. It was a while ago
-
RhodiumToad
ikkuranus-: what do you get from file -s /dev/ada0p1 and file -s /dev/ada1p1
-
ikkuranus-
. /dev/ada0p1: data
-
ikkuranus-
./dev/ada1p1: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "BSD4.4 ", root entries 512, sectors 1600 (volumes <=32 MB), sectors/FAT 5, sectors/track 63, heads 1, serial number 0xbd4111ee, label: "EFISYS ", FAT (12 bit), followed by FAT
-
RhodiumToad
ok, so you never did a newfs_msdos on the new partition
-
RhodiumToad
since it seems to be the exact same size, you could just dd the old one onto the new one
-
RhodiumToad
that said, the old one looks like it might have been copied from an install image rather than properly created
-
RhodiumToad
if you mount the old one, how large is it?
-
ikkuranus-
780K 387Kused
-
RhodiumToad
that's rather small given that it's on a 200MB partition. definitely copied from an image
-
RhodiumToad
the EFI spec requires a larger size (minimum 100MB I think), whereas install images are created as small as possible
-
RhodiumToad
so the best thing would be to newfs_msdos the new one, and copy the files
-
ikkuranus-
I assume I need to delete it first before running that
-
RhodiumToad
no
-
RhodiumToad
you already have the partition, you just don't have a filesystem in it
-
RhodiumToad
just to check, though, what is your zpool configuration
-
ikkuranus-
mirror
-
RhodiumToad
and it shows two devices, ada0p3 and ada1p3 ? exactly those names?
-
ikkuranus-
yup
-
ixmpp
TIL android does now support ikev2 for ipsec
-
ixmpp
that makes it much more attractive
-
RhodiumToad
and swapinfo shows ada0p2 and ada1p2 ?
-
ixmpp
wait, that was in -social, sorry
-
ikkuranus-
yup
-
RhodiumToad
ok, so newfs_msdos /dev/ada0p1 should be safe
-
ikkuranus-
ok it mounted now I can copy it over
-
RhodiumToad
copy it as files, yes
-
RhodiumToad
though probably you only have one or two files
-
ikkuranus-
that's right
-
ikkuranus-
thank you
-
luna
bsdnow.tv/504 FreeBSD 13.2 release episode
-
VimDiesel
Title: BSD Now 504: Release the BSD
-
_0pr_
test test
-
dch
_0pr_: syn ack
-
debdrup
_0pr_: test successfully failed
-
debdrup
with status code 0
-
debdrup
-
ghoti
So... I'm trying to pass through a pci device to a bhyve vm. Followed
wiki.freebsd.org/bhyve/pci_passthru and the churchers/vm-bhyve man page, and from the host side I guess things look good, but my guest doesn't see a new pci device.
-
VimDiesel
Title: bhyve/pci_passthru - FreeBSD Wiki
-
ghoti
I see that `vm passthru` will tell be what devices are *ready* to be passed through, but is there a way to see what is currently being passed through in-the-moment?
-
RhodiumToad
what exactly did you do?
-
ghoti
The guest is a HAOS, a linux appliance.
-
ghoti
I used `pciconf` to identify the peripheral's PCI location, then added that to 'pptdevs' in /etc/loader.conf, then added `passthru0="..."' to /vm/haos/haos.conf
-
ghoti
The card is at 3/0/0, perhaps I should have used that instead of "...". :)
-
ghoti
Oh, and there was a host reboot in there, so `pciconf` identified the card as "ppt0" instead of "xhci0".
-
RhodiumToad
are you loading vmm in loader.conf or in rc.conf?
-
ghoti
loader.conf.
-
RhodiumToad
ok, and did you also specify to the relevant bhyve instance that it should claim the device?
-
ghoti
I think when I did not, I didn't get a ppt0.
-
ghoti
Er, that would be the vm configuration, would it not?
-
RhodiumToad
yes
-
ghoti
I'm using churchers/vm-bhyve
-
RhodiumToad
ppt0 is visible in the host when you have pptdevs= and vmm loaded in loader.conf
-
RhodiumToad
but you have to explicitly specify that bhyve should pass it through to a specific guest
-
ghoti
> grep passthru /vm/haos/haos.conf
-
ghoti
passthru0="3/0/0"
-
ghoti
Is there some other place as well?
-
RhodiumToad
I don't know vm-bhyve
-
RhodiumToad
can you see what command-line options it used when starting the guest?
-
ghoti
Ya, that would help. I'll try. It changes its text for ps.
-
ghoti
I can't find a way to see the options that vm-bhyve generates, but all the instructions I've seen make sense and I've followed them. :(
-
ghoti
vm-bhyve also has a "bhyve_options" config option, so perhaps I'll try the freebsd-wiki-way with that.
-
RhodiumToad
have you specified that the guest memory is wired down?
-
RhodiumToad
(passthrough requires that)
-
ghoti
No luck with bhyve_options, the `lspci` output is the same. I have not specified that; if it's required, I would have expected vm-bhyve to "take care of it" for me if I specified a passthru device in the config. Is that mentions in the wiki?
-
ghoti
It doesn't seem to be in the Requirements section of
wiki.freebsd.org/bhyve/pci_passthru ..
-
VimDiesel
Title: bhyve/pci_passthru - FreeBSD Wiki
-
RhodiumToad
"The "-S" option must be passed to both bhyveload(8) and bhyve(8) to wire guest memory."
-
ghoti
Does that mean that -S is required for passthru, even though it hasn't been mentioned earlier, or just that it's required for wiring guest memory, which also hasn't been mentioned earlier?
-
RhodiumToad
you can't use passthrough without wired guest memory
-
yuripv
"Guest memory must be wired using the -S option when a pass-through device is configured." from bhyve(8)
-
RhodiumToad
if -S is not given, passthrough configuration will be ignored with a warning
-
ghoti
as you said, I just haven't found documentation that says that. The "additional note" you quoted doesn't quite say that, though the wording is unclear.
-
RhodiumToad
I would expect vm-bhyve to have some specific option for specifying wired memory
-
ghoti
if -S is required, why would the wiki page not even mention its syntax?
-
RhodiumToad
... it does?
-
ghoti
not that I saw.
-
ghoti
Step 5 is all about "-s" which is a different option..
-
RhodiumToad
it's just -S, there is no more to it than that
-
ghoti
vm-bhyve has a "wired_memory" config option, but doesn't mention any connection to passthru.
-
RhodiumToad
well, you need to enable that
-
ghoti
Okie, I'll try it with -S added as a bhyve option. We'll see if it changes. :)
-
RhodiumToad
no, use vm-bhyve's wired_memory option
-
ghoti
Tried both, neither changed anything. Perhaps my get OS is at fault, I dunno.
-
ghoti
guest
-
ghoti
I'll try again using a freebsd guest for testing, where I'll know the diagnostic tools better.
-
yuripv
ghoti: is "/etc/loader.conf" a typo?
-
ghoti
yuripv: yes, that was a typo.
-
ghoti
Hmm. I'm getting ld-elf.so.1: /usr/local/bin/gimp: Undefined symbol "g_string_free_and_steal" when I try to launch a freshly-installed gimp. I see that `g_string_free_and_steal()' was added to GLib 2.75.3 in February, but I'm running version 2.74. Upgrading to the latest, 2.76, lets gimp run.
-
ghoti
Can packages not have version dependencies, or only ports? Or would it have to be done with a bespoke pre-install script?
-
parv
Were no dependencies updated with update of gimp?
-
parv
OTOH if something else was updated under gimp, that would also explain the error
-
wikan
hi
-
wikan
i came here to ask if qemu has kernel acceleration under freebsd?
-
wikan
i wonder what is better qemu or virtual box or something else
-
VVD
wikan, for amd64 use bhyve.
-
last1
so if I get this right, in zfs a small recordsize is ideal for applications that need to modify small blocks within large files
-
last1
aka vmdk files, or other large binaries
-
last1
and 128k is sort of the default middle-ground
-
rwp
last1, In all file systems the choice of block size is a compromise. Smaller is more packed but more overhead and larger is more efficient with less overhead but more wasted unusable fragments.
-
rwp
Historically block size used to be smaller but that caused impractically large amount of overhead and counter overflows.
-
rwp
So block size has been steadily increased over the years as storage sizes has increased to what feels like huge sizes now compared to a decade ago.
-
rwp
This results in more inefficient use for storing small bits of data. But we now have support for this much larger total amount of storage to compensate.
-
rwp
I don't know what would be the best block size for vmdk virtual machine back end storage files. In the end there is no substitute for benchmarking.
-
last1
well here's the thing about zfs recordsize, from what I read
-
last1
if I set it to 1M and my file is 4k it will still occupy 4k
-
VVD
At least use compression=lz4. :-o
-
last1
so large recordsizes in zfs doesn't command wasted fragments
-
last1
"Therefore, for simple file sharing you should typically set recordsize=1M—tiny files take care of themselves by being stored in tiny blocks, requiring no additional tuning. But your large files get the benefit of higher compression ratios, fewer I/O operations required to read or write the file, fewer indirect blocks, and less impact from on-disk fragmentation."
-
last1
-
VimDiesel
Title: Tuning recordsize in OpenZFS | Klara Inc
-
ghoti
wikan: I use bhyve. It is excellent. I used to use VirtualBox. bhyve performs WAAY better than vbox.
-
wikan
ghoti thanks
-
Erhard
Would it be silly to think that I could use a GPU in a FreeBSD bare metal machine from within a linux bhyve VM running on that machine? (Knowing that I need the GPU full power for CUDA processing...)
-
LxGHTNxNG
it is demonstrated, but experimentally
-
Erhard
I see.
-
concrete_houses
is freebsd performance near archlinux? how does netbsd compare? dragonfly?
-
last1
performance at what ?
-
LxGHTNxNG
concrete_houses: for all the BSDs the WiFi is slower than Linux but inroads are being made