All Projects → sebastian-philipp → Btrfs Swapon

sebastian-philipp / Btrfs Swapon

Licence: mit
Btrfs doesn't allow to swap on a file. This script allows you do swap on a file anyway.

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Btrfs Swapon

Systemd Swap
Script for creating hybrid swap space from zram swaps, swap files and swap partitions.
Stars: ✭ 473 (+1026.19%)
Mutual labels:  btrfs, swap
Faceswap
Real-time FaceSwap application built with OpenCV and dlib
Stars: ✭ 611 (+1354.76%)
Mutual labels:  swap
lightning-xchain-atomic-swap
Lightning Cross Chain Atomic Swap
Stars: ✭ 16 (-61.9%)
Mutual labels:  swap
Embiggen Disk
embiggden-disk live-resizes a filesystem after first live-resizing any necessary layers below it: an optional LVM LV and PV, and an MBR or GPT partition table
Stars: ✭ 440 (+947.62%)
Mutual labels:  btrfs
btrfs
Btrfs library in a pure Go
Stars: ✭ 24 (-42.86%)
Mutual labels:  btrfs
xmr-btc-atomic-swap
Cross-chain atomic swap protocol between Monero and Bitcoin
Stars: ✭ 67 (+59.52%)
Mutual labels:  swap
ImageSwapper
🐣 Nice iOS animations for swapping images. In progress.
Stars: ✭ 28 (-33.33%)
Mutual labels:  swap
Eda nlp
Data augmentation for NLP, presented at EMNLP 2019
Stars: ✭ 902 (+2047.62%)
Mutual labels:  swap
Btrbk
Tool for creating snapshots and remote backups of btrfs subvolumes
Stars: ✭ 605 (+1340.48%)
Mutual labels:  btrfs
Dotfiles
Configuration for Arch Linux, sway, kitty, kakoune, zsh and more + scripted installation guide
Stars: ✭ 385 (+816.67%)
Mutual labels:  btrfs
Btrfsmaintenance
Scripts for btrfs maintenance tasks like periodic scrub, balance, trim or defrag on selected mountpoints or directories.
Stars: ✭ 362 (+761.9%)
Mutual labels:  btrfs
Btrfs Progs
Development of userspace BTRFS tools
Stars: ✭ 260 (+519.05%)
Mutual labels:  btrfs
Heim
Cross-platform async library for system information fetching 🦀
Stars: ✭ 572 (+1261.9%)
Mutual labels:  swap
Face swap
End-to-end, automatic face swapping pipeline
Stars: ✭ 722 (+1619.05%)
Mutual labels:  swap
Jetstrap
A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.
Stars: ✭ 320 (+661.9%)
Mutual labels:  swap
SharpLoader
🔮 [C#] Source code randomizer and compiler
Stars: ✭ 36 (-14.29%)
Mutual labels:  swap
Prnet
Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
Stars: ✭ 4,479 (+10564.29%)
Mutual labels:  swap
Understanding Financial Reports Using Natural Language Processing
Investigate how mutual funds leverage credit derivatives by studying their routine filings to the SEC using NLP techniques 📈🤑
Stars: ✭ 36 (-14.29%)
Mutual labels:  swap
Jdupes
A powerful duplicate file finder and an enhanced fork of 'fdupes'.
Stars: ✭ 790 (+1780.95%)
Mutual labels:  btrfs
Mkosi
Build Legacy-Free OS Images
Stars: ✭ 589 (+1302.38%)
Mutual labels:  btrfs

btrfs-swapon

From kernel 5.0+ btrfs have native swap files support, but with some limitations. Swap file - must be fully allocated as NOCOW with no compression on one device.

-- https://btrfs.wiki.kernel.org/index.php/FAQ#Does_btrfs_support_swap_files.3F

Btrfs doesn't allow to swap on a file. This script allows you do swap on a file anyway.

Keep in mind, that a copy-on-write file system is not the best choice to use a swap file. Don't expect high performance.

This script is based on http://www.spinics.net/lists/linux-btrfs/msg28533.html and https://gist.github.com/romaninsh/118952ce61643914fb00

Usage

Usage: btrfs-swapon <size> <file>
       btrfs-swapoff <file>

size:      the size of the file, like "8G"
file:      path to the swap file.

Using the systemd service

Installing

cp btrfs-swapoff btrfs-swapon /sbin/
cp btrfs-swapon.service /etc/systemd/system/

executing systemctl

systemctl start btrfs-swapon.service
systemctl stop btrfs-swapon.service

WARNNG

Don't balance your file system as long as you use this swap file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].