Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

Filter by
Sorted by
Tagged with
4 votes
3 answers
339 views

Encrypted swap with FDE?

Years ago, it was my understanding that when installing Debian (or any Debian derivative such as Ubuntu) with FDE, swap was not encrypted despite using "full disk encryption", and that this ...
Shadow's user avatar
  • 71
0 votes
1 answer
75 views

Resolving High HostMemoryUnderMemoryPressure Alarms on Linux Server Under vm.swappiness=0 Restriction

I'm constantly receiving HostMemoryUnderMemoryPressure alarms from a high-resource Linux server, which are triggered and immediately resolved. The alarm detail indicates a high rate of major page ...
furkan's user avatar
  • 1
1 vote
1 answer
121 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 ...
user603749's user avatar
-1 votes
1 answer
86 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, ...
peterh's user avatar
  • 10.5k
0 votes
0 answers
83 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 ...
849856487764's user avatar
2 votes
1 answer
121 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 ...
Flux's user avatar
  • 3,318
2 votes
2 answers
421 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 (...
Naveen Reddy Marthala's user avatar
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 ...
adrifromhh's user avatar
2 votes
1 answer
79 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 ...
Padala Teja Sai Kumar Reddy's user avatar
4 votes
4 answers
990 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. ...
Larry K's user avatar
  • 143
0 votes
1 answer
255 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 ...
Kostya Vasilyev's user avatar
1 vote
0 answers
65 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.
Scrooge McDuck's user avatar
1 vote
0 answers
155 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 ...
m4r35n357's user avatar
  • 111
1 vote
0 answers
124 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 ...
allo's user avatar
  • 973
0 votes
1 answer
220 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 ...
ahmad ali's user avatar

15 30 50 per page
1
2 3 4 5
49
Morty Proxy This is a proxified and sanitized view of the page, visit original site.