this post was submitted on 13 Dec 2023
19 points (95.2% liked)
Linux
48214 readers
726 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
ZFS is a large consu6 of RAM. I would think putting swap in ZFS is a terrible idea. I have not checked current recommendations.
OK I've only come across the command in the example twice whilst looking.
https://github.com/64kramsystem/zfs-installer/blob/573b23b69e3efcfef5038a516ee359e64b337f43/install-zfs.sh#L1293
And here where they say it does work ?
https://www.reddit.com/r/zfs/comments/psr6bp/comment/hdrk237/
You might try adding a cache drive instead. It can help lessen the memory usage zfs needs to maintain speed. My server is spinning rust with an ssd drive attached to the pool as cache.
Command would be “zpool add pool_name cache /dev/sdX” where pool_name is the pool you want the cache on, and /dev/sdX is the empty drive you want to use with it (or partition). Make sure to encrypt this drive before setting this up, my knowledge is zfs doesn’t do that for you.
see here for a bit more information on caching.
.
It’s 512GB of ssd cache plus 128GB of ram, so for now that’s been enough
Ah sorry I responded to the wrong post somehow. Meant that for OP
ZFS was built initially for large SANs so it's very cache driven. You should get two SSDs and add both for cache.