swapon, the original way to download more ram

#linux #tech #swapfile #downloadmoreram #swapon #swapoff #mrmiyagi

I have a brand new 2025 Dell Inspiron 5440 laptop with an Intel Core 7 150U CPU. I'm running #Linux Mint Cinnamon 22.2, with kernel 6.14.0-33-generic.

I increased the size of my #swapfile to 32 GiB, since I have 16 GiB of physical RAM, and tons of available storage (500 GB allocated to the Linux partition, 12% full) and ran "sudo systemctl hibernate":

' Call to Hibernate failed: Sleep verb 'hibernate' is not configured or configuration is not supported by kernel '

I'm now able to:
- create #btrfs subvolume
- Ensure entry in #fstab
- mount it
- create, init & enable #swapfile
- Ensure entry in fstab

\o/

#Ansible #ConfigurationManagement

Vamos a hacer hueco para la swap porque #kswapd me tiene fritanga.

El caso es que tenía un #swapfile pero con #BTRFS si quieres poder hacer instantáneas no puedes tener un swapfile.

Así que hay que crear un subvolumen.

Swap file https://wiki.archlinux.org/title/Btrfs#Usage

Btrfs - ArchWiki

@manielfo Claro que sirve Juan! Lo voy a tener en cuenta para el post de #swap!

A fines prácticos, son casi iguales... de hecho creo que distros como Ubuntu ahora usan #swapfile por default.

Además, el swapfile es más fácil de configurar en algunos servidores en la nube, ya que no hay que particionar disco.

Creo que había una diferencia al reiniciar desde un sistema suspendido, creo que había que indicarle al núcleo dónde estaba el swapfile, pero no se si eso será indistinto ahora.

A leer 🙂

🧵 3/3 next time i install #KDEneon i'll have at least 4 partitions.

1) EFI
2) /boot
3) swap on LUKS
4) / (compressed btrfs on LUKS)

EDIT: apparently i CAN have a #swapfile on #btrfs, after all. [partitions 2) and 3) aren't required, then]

👉 btrfs filesystem mkswapfile --size 4g --uuid clear /swap/swapfile

👀 https://wiki.archlinux.org/title/Btrfs#Swap_file via @sirber (thanks, mate👍)

#LessonsLearned

Btrfs - ArchWiki

It seems that #Thunar ( #Xubuntu default file manager ) just can't get the .Trash folder to work with #btrfs volumes using subvol #mount option. That's quite a weak achievement. Because the #swapfile must be on root volume, and therefore it's logical to use subvolume for all data, so it can be snapshotted. But if snapshots are being used, then #trash feature won't work anymore, due to the limitations linked to the #subvolumes. Yet I personally find this to be incredibly lame and totally pointless and completely unbased limitation. #Linux silliness.
Some things are quite bit different with #btrfs, spent a enjoyable while while configuring #swapfile [root @ subvolume, no compression, no copy on write] and .Trash-User folders for Thunar, oh joy. But got it done. Extra bonus for misleading and confusing error messages. #linux

Más de un usuario de GNU/Linux se habrá preguntado: ¿cuánta swap le asigno a mi sistema?

¿Querés saber cuánto espacio de intercambio, y qué tipo de swap podés implementar en tu sistema?

Te dejamos esta entrada en nuestro el blog que seguramente aclarará muchas dudas!

https://juncotic.com/swap-en-gnu-linux-cuanto-espacio-le-damos/

#linux #gnu #swap #swapfile #hibernar

Swap en GNU/Linux: ¿Cuánto espacio le damos? - Junco TIC

En este artículo hablaremos sobre el espacio swap en GNU/Linux, y cuánto espacio debe tener según el uso que vayamos a darle. Sí, ya hemos hablado largo y tendido sobre el espacio swap de Linux Leer más…

Junco TIC

Moja instalacja Linuksa ma już swoje lata i nie licząc gładkiego przejścia ze stable na rolling release jadę wyłącznie na aktualizacjach, żadnych reinstalek.

Ostatnio miałem jednak okazję instalować openSUSE na innym komputerze,. Wyklikałem w sumie domyślną instalację, ustawiając tylko strefę czasową, użytkowników i domyślne biurko, resztą zostawiając automatom, w tym przygotowanie partycji.

Wszystko poszło bez problemu, ale zacząłem się zastanawiać, ile sensu ma obecnie zakładanie /swap? Wieki temu, gdy obowiązywała zasada, że partycja wymiany powinna mieć dwukrotność RAM, komputery z gigabajtem pamięci były potężnymi potworami.

Teraz 16, 32 czy 64 gigabajty RAM na nikim nie robią wrażenia. Czy w takiej sytuacji partycja (albo) plik wymiany do czegoś się jeszcze przydaje? Jeżeli tak, to jaki jest teraz wzór na optymalny rozmiar?

#Linux #swap #SwapPartition #PartycjaWymiany #SwapFile #PlikWymiany #RAM #pamięć #instalacja @linux_pl