systemd-swap
auto-zram
systemd-swap | auto-zram | |
---|---|---|
6 | 1 | |
551 | 3 | |
- | - | |
0.0 | 3.6 | |
over 2 years ago | almost 4 years ago | |
Python | Shell | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
systemd-swap
-
I want to change my zRAM compression algorithm to zstd on openSUSE Tumbleweed
As a bonus, the systemd-zram-service's scripts will create zRAM devices based on the number of your CPU cores. This is problematic as it's a deprecated practice, and can also cause an issue on some multicore CPUs. Basically, we already have "multi stream functionality" since kernel 3.15. And since kernel 4.7, regardless of the value passed to [max_comp_streams], zRAM will always allocate multiple compression streams - one per online CPU - thus allowing several concurrent compression operations.
-
What happens when there is no more swap partition is full and RAM is full? Does Linux swaps anyway in some other way (maybe swap files like Windows), or can't it swap anymore?
Historically, Linux has created an additional (fixed-size) swap partition or file. In case you mention you get OOM. But for some time there is a great project systemd-swap creating hybrid swap space. You can even find it in the official Arch Linux Community repo.
-
PERSONAL OPINION: /Swapfile or Swap Partition?
There is also systemd/zram-generator that allows you to create and manage swap devices more easily. And Nefelim4ag/systemd-swap (abandoned?) that automatically creates swap files and resizes them based on RAM usage.
-
Do I need to create a swap partition?
SwapFC - https://github.com/Nefelim4ag/systemd-swap
-
A warning about 5.12-rc1
That sound like what systemd-swap does. Apparently, hibernation is not quite working yet, though.
https://github.com/Nefelim4ag/systemd-swap
-
Can I mix zram with swapfc?
Disclaimer: I couldn't find anything relating to SwapFC other than from the README of systemd-swap. What I've written above is just based on the one-line description of SwapFC, as well as prior knowledge of zswap and zram (obtained from the Linux Kernel docs).
auto-zram
-
Best Linux distro to revive an old laptop.
The RAM is likely to be restrictive (I have a similar spec'd system as a spare, and the RAM is the only pain point.) If so, you might want to consider auto-zram, which configures zram (a compressed RAM drive) as swap, with sensible defaults for your sustem.
What are some alternatives?
nohang - A sophisticated low memory handler for Linux
btrfs-progs - Development of userspace BTRFS tools
ramroot - Load root file system to ram during boot.
TempOSD - On Screen Display for cpu and gpu temperatures, ram and swap usages statistics.
zram-init - A wrapper script for the zram linux kernel module with zsh and openrc support
uniswap-sushiswap-arbitrage-bot - Two bots written in JS that uses flashswaps and normal swaps to arbitrage Uniswap. Includes an automated demostration.
zram-generator - Systemd unit generator for zram devices
swap - Cross-chain atomic swap between the networks of two cryptocurrencies based on Hash Time Lock Contracts (HTLCs) protocol.
snapper-gui - GUI for snapper, a tool for Linux filesystem snapshot management, works with btrfs, ext4 and thin-provisioned LVM volumes
linux - Linux kernel source tree
dduper - Fast block-level out-of-band BTRFS deduplication tool.