Maximize Storage Capacity with UFS reddit / freebsd ---------------------------------------------------------------------- Lucretius_5102 · 2021-05-12 04:33 Suppose I want to create a UFS partition that will rarely be written to but provide the maximum possible storage space. Would "newfs -U -m 0 /dev/diskid/DISK-WHATEVERp1" accomplish this? ---------------------------------------------------------------------- vermaden · 2021-05-12 05:53 Yes. Depending on the content you may also use ZFS with zstd-19 compression to get more 'space'. If content is JPG/MKV/MP4/MPG/AVI then compression will not help but if its documents, virtual machines or other compresable things then it will get you more space. ---------------------------------------------------------------------- Daedalus312 · 2021-05-12 15:26 But he's asking about UFS. ---------------------------------------------------------------------- vermaden · 2021-05-12 15:42 I know. I answered his question in the first sentence ... but he seems to be seeking for maximum space where ZFS with compression can do better then plain UFS. ---------------------------------------------------------------------- edthesmokebeard · 2021-05-12 21:47 That's reddit for you. Q: How does X work, can I do Y? A: That's dumb, do Z. ---------------------------------------------------------------------- grahamperrin · 2021-05-13 07:05 +1 to ZFS, with compression as high as you like. ### UFS1/UFS2 What are the drive's characteristics? https://man.freebsd.org/tunefs(8) https://man.freebsd.org/newfs(8) > … Typically the defaults are reasonable, … `-U` I'm not familiar with soft updates. If `-m 0` gives all space to normal users (no reserve) and if you then use all space, would there be space for an update? Google finds [a 2012 discussion](https://lists.freebsd.org/pipermail/freebsd- hackers/2012-May/038904.html) where someone used `-m 0` with an SSD, but it's probably not useful in your context. ---------------------------------------------------------------------- Lucretius_5102 · 2021-05-13 09:48 These are high-capacity 5400RPM drives that will be used for chia cryptocurrency “plots.” I tried zstd-19 with a couple plots but compressratio didn’t show any benefit. -U is an attempt to turn off the journal since it’s a waste of space in this context. ---------------------------------------------------------------------- grahamperrin · 2021-05-14 08:50 Thanks. If the data will be disposable then I guess, it's OK to push things i.e. no reserve. If not disposable, then I'd be more cautious. This morning I stumbled across https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255799 > … chia cryptocurrency … Off-topic, ['Green' bitcoin alternative Chia is leading to hard disc shortages | New Scientist](https://www.newscientist.com/article/2277076-green-bitcoin- alternative-chia-is-leading-to-hard-disc-shortages/) ---------------------------------------------------------------------- grahamperrin · 2021-05-14 11:16 > … I'm not familiar with soft updates. … Found: [Soft updates - Wikipedia](https://en.wikipedia.org/wiki/Soft_updates) >> … Soft updates are an alternative to the more commonly used approach of journaling file systems. … ---------------------------------------------------------------------- Lucretius_5102 · 2021-05-14 13:50 With chia specifically, I think the (im)probability of “bitrot” is massively outweighed by simply storing a larger number of proofs. With filecoin or sia, you’re actually “renting out” storage space, so losing data is hopefully disincentivized. The mad rush hit on in that article is pretty ridiculous, especially for an asset that’s almost entirely speculative. I think if anything hard drives will be less likely to fail, since the actual “farming” workload is very light and the drives won’t be power cycled very often. SSD’s will be thrashed creating these “plots,” but long-term there’s hope that plotting will be more cost-effective on spinning rust.