Is it worth it making a ZFS partition with compression for Postgres in order to save space? I assume since it's mostly text it should compress fairly well.
Or is there a better FS for compression?
@lewdthewides
That costs money
@Moon
@Moon
How big is it a CPU hit? My Masto VPS only really gets pinned when someone posts a bigger non x264 video and it starts transcoding
@lewdthewides
@Moon
Mastodon seems to be more efficient with DB usage than Pleroma, however since server has NVME all the queries are mostlikely CPU bound which means it could perform worse.
I might copy the DB to my PC, spin up VM to test it first.
I have a NVME drive and the same CPU architecture so it should show conclusive results.
@lewdthewides
@Moon
I assume it's better for CPU usage when serving AP activities because it doesn't have to create it, just queries the db and serves it?
@lewdthewides
@Moon
Thanks for that. I'm going to look it up. Normally I wouldn't touch Postgres at all.
@matrix@gameliberty.club Don't do FS compression at all for a Postgresql server. You'll mess up your performance.
@solarsailor
I have 3 3900X threads. I don't think it should handle it ok.
@matrix@gameliberty.club It's not about CPU usage, it's about write latency. PostgreSQL and other in memory DBs really really really want to have writes that commit to disk quickly, because they are essentially single threaded while writes are in progress. FS compression increases write latency to the degree that its compression is effective - a little bit for LZO, a lot for GZip. The whole reason Intel created NVDIMMs was to reduce database I/O latency, for example.
@solarsailor
I thought it should be usef to some latency since the initial release was all the way back when SSDs weren't a thing (I think)
@matrix@gameliberty.club Half the reason for adoption of SSDs was to make MySQL and PostgreSQL run faster.
@sjw @solarsailor lz4 is probably still the fastest though
https://indico.fnal.gov/event/16264/contributions/36466/attachments/22610/28037/Zstd__LZ4.pdf
@sjw
100GB Mastodon and 40GB Misskey
@sjw It's not that big. It's 76974356 statuses over 3 years indexed with rum.
I don't really wanna spend more money so I want to better utilize the space I have.
It would probably make sense for that setup to put WAL on a separate drive.
if someone is gonna be pulling the rug from underneath my instance, it won’t be buyvm
Can you elaborate? Are they free speech absolutists or something?
TBH their pricing looks pretty similar to my host, though mine’s more generous with CPU.
@ademan @sjw @lewdthewides Yeah, BuyVM is pretty hands off. Daily Stormer even used them as a proxy.
who tf is francisco? missing some lore here
is colocrossing pozzed? I mean we’re pretty mild over here but I don’t want to run any unnecessary risks… maybe I’ll start a more resilient instance this year now that I know some things to look out for, I think .social was a mistake, and I’ll make sure to avoid colocrossing…
nvm, finished the thread, Francisco seems like a pretty cool guy eh remains neutral on his customers and doesn’t afraid of anythin
@Moon make her yours and put her in a qipao
@ademan @sjw @matrix @lewdthewides @Moon
Why not?
As long as it's all in my head, I don't see the problem XD