#SwapFile

Multi Purr Puss :verified:platymew@layer8.space
2025-03-15

🧵 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

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

#LessonsLearned

Sami Lehtinensl@pleroma.envs.net
2024-12-21
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.
Sami Lehtinensl@pleroma.envs.net
2024-12-17
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
Diego Córdoba 🇦🇷d1cor@mstdn.io
2024-12-10

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!

juncotic.com/swap-en-gnu-linux

#linux #gnu #swap #swapfile #hibernar

2024-11-28

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

Blabla Linux 🇧🇪♻️💻🐧🇫🇷anyblabla@peertube-blablalinux.be
2024-03-15
2023-09-11

Spent 2 days trying to figure out why #hibernation didn't work with my #swapfile.
Note to self: when the swap space is on #btrfs, use `btrfs inspect-internal map-swapfile -r /path/to/swapfile` instead of filefrag to get the resume_offset!!!

Welington 🐘welrbraga
2023-07-17

Arquivo de swap. Uma técnica já antiga porém eficaz para usar mais memória do que seu sistema possui

blog.welrbraga.eti.br/?p=3688

Diego Córdoba 🇦🇷d1cor@mstdn.io
2023-02-28

Buen martes!
Hoy les comparto un nuevo artículo en mi el blog de JuncoTIC!

Ya hemos hablado anteriormente sobre área de intercambio en particiones y en dispositivos virtuales comprimidos en RAM, hoy les traigo cómo utilizar un #swapfile en #GNU #Linux.

Espero que les sirva!
---
RT @juncotic
Nuevo post en el blog!

El archivo swap permite crear un espacio de intercambio de manera rápida y en caliente, sin necesidad de reiniciar el sistem…
twitter.com/juncotic/status/16

2023-01-06

The answer to all #Linux problems appears to be "you need more swap space" #swapfile

2022-04-16

#AskFedi #AskFediverse

I am installing #Linux on a new #laptop system. I have 24GB of RAM available. Do I:

- use a #swap partition with #hibernate?
- use a #swap partition without hibernate
- use a #swapfile
- none

Uses: gaming, coding, etc. (basically a power-user)

I'm a safety-first kind of user, so if "none" is the answer, it has to be the least-risk option too.

🖱🛠👉👕👈 SOSOrdinet 🎣🖥️🐛 🗞️SOSOrdinet@social.targaryen.house
2021-03-10

“Un bug subtil et très méchant” au niveau du fichier d’échange : #LinusTorvalds déploie en urgence une version 5.12-RC2 ! (“dontuse” = don’t use #RC1…)

blog.sosordi.net/2021/03/un-bu

#Linux #securite #Swapfile

SOSOrdi.net 🔎📱🦟🛠️💻SOSOrdinet@mastodon.online
2021-03-10

“Un bug subtil et très méchant” au niveau du fichier d’échange : #LinusTorvalds déploie en urgence une version 5.12-RC2 ! (“dontuse” = don’t use #RC1…)

blog.sosordi.net/2021/03/un-bu

#Linux #securite #Swapfile

Latin Linuxlatinlinux
2020-12-07
2019-11-07

One of the things about #Linux I love most is it’s flexibility. This may astonish some but I am gaming on my Linux system for approximately 15 years by now. Situation for #linuxgaming improved a lot lately but it was always possible to keep myself distracted 😉

So one of the games I just love to play is XCOM (UFO series). I don’t think I skipped any part and Terror From The Deep will always have a special place in my heart. Anyway, when XCOM was relaunched and eventually ported to Linux by Feral Interactive in 2014 I thought I couldn’t have been happier. Firaxis Games topped this in 2016 with XCOM2 and Feral Interactive once more got the job for the port.

Sadly with all the expansion sets it takes quite a toll on the required hardware. Huge fan of all sliders on maximum and see how it goes and while my box can mostly keep up I notice that I run out of RAM towards the end of the game fast and my machine starts swapping. I’ve 16GB RAM and this game eats it away like children their candy.

I’ve got additional 4GB of swap installed on slow spinning rust disks (legacy) so I notice the moment it starts swapping like hitting a wall. After another frustrated restart of the game I paused for a moment. I don’t know why this games needs so much RAM and frankly I don’t even care. Maybe I’m spoiled nowadays since stuff tends to “just work”.

So I decided to throw more power at it but RAM is expensive and I usually have enough of it for my daily work (or other games). I did get a decent SSD (Solid State Disk) recently tho so it’s #swapfile to my rescue:

swapoff -a fallocate -l 16G /games/swapfile mkswap /games/swapfile swapon /games/swapfile

…and that’s it. I stopped my previous slow swap partition(s), created a new swapfile of 16GB size on my SSD, formatted it as swap partition and activated it. Now I tabbed back into my game and enjoyed the rest of the evening. Let it swap. The SSD can keep up with it. Not minding a few more seconds during loading screens 😀 I’m considerung to add the activation sequence to my “gaming mode” script.

#gamingonlinux #linux #linuxgaming #swapfile

https://beko.famkos.net/2019/11/07/swapfile/

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst