Questions tagged [swap]
Swap space is an area of the hard disk that serves as an overflow when the computer memory is full. The memory used by inactive applications is partially written out to disk to make room for other applications and for the disk cache for active files.
722 questions
0
votes
1
answer
85
views
How to manage swap memory inside an encrypted LUKS LVM?
I am using Kubuntu which is Ubuntu with KDE. My swap partition is too small causing me some lag. I have 16GB Ram but it is set to 1.9GB. Attached is screen shots of my current partition. vgkubuntu is ...
-1
votes
1
answer
62
views
Is RAM + SWAP > 4GB possible on arm32?
On x86, the solution would be either PAE, but yet better is to use a 32-bit system with a 64-bit kernel.
The physical memory of the planned 32-bit ARM system is only 3GB. I would like to increase it, ...
0
votes
0
answers
61
views
Swap full but all process terminated : does Linux free "orphans" pages when needed?
this is the first time I encounter a swap issue, I'm lost about how Linux is supposed to behave. I have a RHEL virtual machine running a batch processing RAM intensive application (100+GB RAM, 1GB ...
2
votes
1
answer
87
views
How to reduce swap space in Debian with full disk encryption and BTRFS
My computer is running Debian 13. During installation of Debian 13, I chose to have full disk encryption and use the BTRFS filesystem (instead of the default ext4 filesystem). The Debian installer ...
2
votes
2
answers
361
views
Encrypted swap not initialised on fresh debian install
I have recently installed Debian 13 with encryption for both my main drive and swap.
My root (sda3) LUKS volume unlocks fine and mounts. My swap (sda4) was set up as encrypted swap with random key (...
11
votes
3
answers
1k
views
Is swap space used for the page cache, or can it be used for that?
From my understanding, accessed files from disk are being kept in the page cache, for as long as there's enough memory left. Is this data also being moved to swap memory, or can this be facilitated?
I ...
2
votes
1
answer
63
views
Are the page tables of the process preempted swapped out if there is a dearth of memory for new process
Suppose process A has been preempted to allow process B to run. If system memory is low and the kernel needs to reclaim memory for process B, is it possible for the page tables of process A to be ...
4
votes
4
answers
960
views
Is mkswap hw dependent?
I'm setting up Home Assistant, on a Raspberry Pi, to use Network Boot with a Ubuntu x86 server.
The initial bootup seems to be working. The systemd process is now creating a swapfile on the NFS mount. ...
0
votes
1
answer
228
views
Ubuntu: fully disabling cryptswap
I wanted to disable cryptswap on my PopOS (an Ubuntu derivative).
Used mkswap to re-initialize the swap partition
Edited /etc/fstab to directly reference it (as opposed to a crypto device)
Removed ...
1
vote
0
answers
55
views
Why does zswap decompress memory pages before writing them on disk?
I was wondering why zswap decompresses memory pages before writing them to disk instead of keeping them compressed, since apparently doing that increases both CPU load and I/O.
1
vote
0
answers
142
views
How does the output of zramctl relate to swapped memory usage?
I have a Raspberry PI 5 with 8GB of ram. I have allocated a zram swap partition with disksize of 1GB, which after a few days is now being used.
$ free -hw
total used free ...
1
vote
0
answers
105
views
How to move programs back from swap to RAM
Let's say I started a process that used a lot of RAM and swapped out pages of sleeping processes. Now the process has finished and I have a lot of free RAM, and the other processes are being loaded ...
0
votes
1
answer
182
views
how to fix hibernate in linux debian
I'am trying to make my laptop to hibernate , but it can't , showing me an error (call to hibernate failed : not enough swap space for hibernate )
so my old swap partition was 1giga so i extended it to ...
1
vote
0
answers
143
views
Unaccouted Swap Memory Usage (leak?)
I'm running GNOME on Debian 12 (Trixie/sid) (ie, the current testing distribution). Packages are up to date, I don't have any super weird configurations (I do run with --mitigations=off), and I've ...
0
votes
0
answers
97
views
Linux Server swap memory problem
I have the same problem on all servers running Java processes.
I have lots of available memory. But my swap is full of Java-related pages.
But the system never cleans its swap, Java pages stay there &...