-
kerneldove
ty ek have a fun day
-
skered
tuaris: Try rquery
-
skered
I dunno if it has the query option
-
kerneldove
in the freebsd installer, the auto zfs screen, pool options are -O compress=lz4 -O atime=off, but isn't the property compression not compress?
-
Remilia
kerneldove: try issuing `zfs get compress <fs>` or `zfs set compress=off <fs>`
-
Remilia
it is probably better to spell it out entirely, but it works either way
-
Remilia
oh right
-
Remilia
kerneldove: in zfsprops(7): This property can also be referred to by its shortened column name compress.
-
ivy
we should probably use the canonical name in the installer though
-
ivy
... was about to submit a review for that but i think phab just went down for maintenance
-
kerneldove
omg zfsprops. i looked everywhere for the info. man zfs, man zpool, man zpool-create, man zpoolprops
-
kerneldove
then did a web search for it and only saw compression not compress
-
ivy
-
kerneldove
compression woulda been better to me as a new user, and an experienced user would be fine with either, so i'd use compression imho
-
kerneldove
tyvm
-
kerneldove
so i used compress=off during install, went through install then update and reboot, now sudo top shows 43M compressed in the ARC section. but i turned it off?
-
kerneldove
i confirmed it's off with zfs get compression
-
nimaje
ARC compression is something diffrent then the compression of the datasets
-
kerneldove
oh
-
nimaje
you only control compression of the datasets (on disk) with zfs set compression
-
nimaje
ARC is in RAM only
-
kerneldove
no way to disable ARC?
-
ivy
zfs set primarycache=none, but you almost certainly don't want to do that except in very specific workloads
-
kerneldove
ok i'll try with it on i guess. i wanna jam pack RAM with workload so trying to limit any other uses of it
-
ivy
memory used by ARC is automatically released when something else needs it, also in that case you want more compression, since that means it uses less memory to store the same data
-
kerneldove
i'm gonna fill ram to 105% (5% of swap used) and crank up that up until vmstat pi po starts showing regular numbers in the double digits
-
Remilia
generally you turn ARC off if you got less than 4 GB of RAM
-
ivy
Remilia: i would really recommend just limiting the size there (by setting arc_max) rather than turning it off, the system isn't designed to run without disk caching...
-
Remilia
I guess you could also do it if you run ZFS on a memory-backed virtual device?
-
Remilia
ivy: I agree, just that iirc the installer disables it automatically on that <4 GB condition
-
Remilia
or maybe I am misremembering
-
kerneldove
my concern with ARC is i don't see it helping with my workload. lots of different files being accessed, and rarely is the same file accessed repeatedly, so i can see it just using ram for no upside
-
kerneldove
am i wrong?
-
ivy
kerneldove: imagine an application that reads from a file in 4kb chunks. now imagine that file in stored in a 128kb zfs record. with arc, the record will be read once, then the application's 4kb reads will be served from arc. without arc, reading the 128kb record would require reading the same block disk from 32 times
-
ivy
s/block disk from/block from disk/
-
kerneldove
but if every file is only read once is that any benefit?
-
ivy
yes, because reading the 128kb record *once* still requires reading it from disk 32 times in this scenario
-
kerneldove
my workload is many files with each read and served very few times
-
kerneldove
ok
-
ivy
application reads 4kb -> zfs reads the 128kb record -> returns 4kb of it to the application -> discards the block (because arc is disabled), the application reads the next 4kb block, zfs has to read the entire record from disk again...
-
ivy
generally, primarycache=none is appropriate where a) the application has its own caching system (e.g., mysql, oracle), and b) the zfs recordsize matches the application block size
-
kerneldove
ah i think i understand better
-
kerneldove
ok ty
-
ivy
in that case, the application will always read (and cache) an entire record and there's no benefit to caching it again in arc
-
ivy
but you can always test it with your own workload and see what works better
-
ivy
ah, found in FreeBSD-main-amd64-gcc14_build - Build #1097
-
ivy
wrong channel
-
mmlj4
good suggestions on a VPS provider for FreeBSD? my old one still runs on Linode, but I'm worried that akamai or whoever will break it at some point
-
dacav
mmlj4: I use vultr
-
dacav
-
dacav
I'm quite satisfied with the service, but I never tried anything else so far, so my judgement can't be objective.
-
mmlj4
thanks
-
dacav
you're welcome :)
-
mmlj4
I got a vultr account a year back, they gave me grief about email, so I bailed
-
mmlj4
grr...
-
dacav
grief about email?
-
TommyC
Probably blocked port 25 or something.
-
V_PauAmma_V
Can anyone who uses ip6addrctl(8) (or is better than me at reading source code) say whether its use of precedence conforms to RFC 6724 section 2.1 (that is, a prefix with higher precedence is more preferred)?
-
mmlj4
dacav: what TommyC said... and they refused to remove the block, so I bailed because the entire reason for spinning up the VM was as a mail host
-
mmlj4
pity, I'd heard good things about vultr too