Skip to main content

Questions tagged [swap]

Unix systems, and other Unix-like operating systems, use the term "swap" to describe both the act of moving memory pages between RAM and disk, and the region of a disk the pages are stored on. In some of those systems, it is common to use a separate whole partition of a hard disk for swapping. These partitions are called swap partitions.

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

Maintain CTRL-CAPS swap when connecting to Ubuntu 24.04 with Desktop Sharing from Windows RDP client

I have a new installation of Ubuntu 24.04 on a Dell notebook. I added XKBOPTIONS="ctrl:swapcaps" in /etc/default/keyboard. The swap works as expected from the local keyboard on the notebook. ...
tim11g's user avatar
  • 553
1 vote
2 answers
230 views

Swap (Memory really?) leak on fresh(ish) install of 24.04

I installed a minimal (GPT/UEFI) version of 24.04 (with a few extras so far) and it appears to have a swap (memory) leak. It is installed with a common /home with my 22.04 version and this does not ...
david's user avatar
  • 45
-1 votes
0 answers
32 views

Failed to activate swap, file system stuck in read only mode, won't boot in 20.04

A while ago I tried to add an external hardrive, had problems and made the mistake of altering something with the chmod command. Now on startup I get the "Failed to activate swap" message. I ...
PeteH's user avatar
  • 1
-1 votes
1 answer
68 views

Ubuntu 22.04.4 LTS, Swap works sometimes, and sometimes crashes python

OS: Ubuntu 22.04.4 LTS, 64-bit, 64Gb RAM Python: 3.9.19 Summary: Running memory-intensive analysis in Python causes python to crash most of the time, but not always. Crashes happen specifically when ...
Goibnhiuu's user avatar
-1 votes
1 answer
131 views

Change default 4Gb of swap partition on LiveCD

When booted on the Ubuntu 24.04 live CD, where to find the default value of 4Gb of the swap partition which will be created? I checked in /etc and /lib/python3/dist-packages with no success but it ...
London Smith's user avatar
0 votes
0 answers
63 views

Zfs encrypted re-install width more swap

I already installed Ubuntu 24.04 with encrypted zfs partition but my swap partition has only 4Gb. So I would to reinstall it with a swap partition of 30Gb. Can I use the actual partitioning and just ...
London Smith's user avatar
0 votes
0 answers
43 views

More swap on zfs architecture

I just installed Ubuntu 24.04 and choosed encrypted zfs architecture to set compression. But I need more swap, by default it installed Ubuntu 24.04 with 4gb. I would need much more, at least 16gb. ...
London Smith's user avatar
0 votes
1 answer
33 views

Increase SWAP in Ubuntu OS Virtual Machine

I'm in a situation where I can increase the SWAP of the Ubuntu Server 22.04 OS Virtual Machine: sudo swapoff -a sudo rm -f /swapfile sudo dd if=/dev/zero of=/swapfile bs=1024 count=32M sudo swapon -s ...
Emma Athan's user avatar
1 vote
0 answers
118 views

How can I prevent the my Computer with Ubuntu to freeze because of 100% Ram usage?

I have a computer with Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy RAM: 33GB RAM SWAP: 1GB CPU 12 virtual cores (enough) Now every other ...
telion's user avatar
  • 149
-1 votes
1 answer
40 views

Swap to files not working

I have all my swap used (by Rust compiler) and it didn't grow despite I do have swapspace package installed. total used free shared buff/cache available Mem: ...
porton's user avatar
  • 95
0 votes
0 answers
147 views

Limit Ubuntu RAM Usage (for the whole OS, not a process)

I have 24GB of ram, and using KDE. For some reason, I want my OS to see only 10GB of RAM. When I get free -mh it tells me that my physical memory is 10GB. How do I do that? Note: My problem is with ...
Mohammad Kholghi's user avatar
0 votes
0 answers
18 views

Resume results in black screen (LUbunutu 22.04, same result with swap partion and swap file)

Previously I used a swapfile after a fresh LUbunutu 22.04 install. I configured UUID etc in the startup parameters. Because resume resulted in black screen I changed to a swap partition. (see also ...
ssssstut's user avatar
  • 729
-1 votes
2 answers
83 views

High swap, low memory

I would like to understand why is Ubuntu swapping while the memory is underutilized. I have plenty of RAM available, so I would not expect any swapping at this point.
elias's user avatar
  • 11
0 votes
0 answers
29 views

Swap a broken key with a different key

My keyboard has one broken key, the equal button "=". I would like to swap this important key with a less important one, say the "Home" key. I heard that xmodmap or xkeycaps could ...
Tu Bui's user avatar
  • 155
0 votes
1 answer
222 views

Change swap file to swap partition - can this be done easily?

I found many posts how to change a swap partition to a file e.g.: Swap partition to Swap file. Due to some hibernate issues with LUbuntu I'd like to change my swap file to a partition. Can this be ...
ssssstut's user avatar
  • 729
0 votes
0 answers
49 views

Enabling hibernation of Ubuntu Budgie 22.04 with swap on /dev/sda3

I've been trying to enable hibernation on my new Budgie installation. swapon indicates that my swap partition is located in /dev/sda3, and I have come to the point where I need to edit the ...
CosmeticMichu's user avatar
0 votes
1 answer
34 views

Long (40s+) kernel boot time (probably swap mount issue?)

I have messed with swap and now i think i have a mount timeout during boot, but I can't find the reason. What I did was to switch to a swapfile, but i decided to move back to separate partition for ...
gloowa's user avatar
  • 1
0 votes
0 answers
160 views

Browsers are lagging on Ubuntu 22.04.4 LTS

When I move the page up and down on Twitter I had 3-4 seconds lag on Chrome. Now I'm using Brave. It has the same problem but it is little bit better. What do you think the problem would be? I suspect ...
Andrew Harlan's user avatar
0 votes
0 answers
523 views

How can I enable hibernate on Ubuntu 22.04 using a swapfile?

how can I enable hibernation on my newly installed Ubuntu? I have a swapfile of 18 GB, and my RAM is 16, I didn't make a swap partition when installing the OS, and now I searched everywhere and I can'...
Ilgar's user avatar
  • 1
0 votes
0 answers
508 views

Unable to install flex - Many errors: E: Internal Error, ordering was unable to handle the media swap

Unable to install flex - There were many errors: Err:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 m4 amd64 1.4.18-5ubuntu2 Temporary failure resolving 'archive.ubuntu.com' E: Failed to fetch ...
Saleem's user avatar
  • 1
0 votes
2 answers
367 views

Host and fstab file messed up after try to change swap size

I was trying to increase the swap size of my Ubuntu. I, naïve, followed the steps of this answer: Check the swap that is in use: sudo swapon -s If swap partition(s) are found: sudo swapoff -a sudo ...
Simón's user avatar
  • 11
-1 votes
1 answer
65 views

Apache server unresponsive due to multiple instances of process

Good day, I have a VPS server with LAMP setup. As a couple of days I have a huge spike in process and I don't know how to investigate this cause. Here is the output of the htop command https://ibb.co/...
croppio.com's user avatar
  • 1,519
0 votes
0 answers
88 views

Is it possible to create an Ubuntu swapfile on an exfat partition?

I know there are better options out there like a swap partition. But I am just curious if this would be a possible option at all. Does swapfile have to be on a Linux file system?
Zitao Qiu's user avatar
-1 votes
1 answer
107 views

Ubuntu Raid Array not working after a motherboard swap

I have been using a raid 5 array as a NAS for past two years that I have created with the help of this guide. But recently I had to swap the motherboard of this system because the previous one stopped ...
Extreme_N's user avatar
0 votes
0 answers
99 views

ecryptfs-setup-swap made a swap that is in clear text to root

I am running Ubuntu 22.04 LTS on a MacBook Air, SSD, using LVM without encryption. The original swap was mapped to /dev/dm-1. After running ecryptfs-setup-swap, the new swap was mapped to /dev/dm-2 ...
user1757959's user avatar
0 votes
1 answer
270 views

swappiness doesnt work correctly in ubuntu 23.10

ubuntu 23.10 swapps like crazy - atm i am at the half of my ram used and my swap is already 1gb. it goes to crazier values like 3-4 gbs in the swap. it was working way better in the previous ubuntu's. ...
miccs's user avatar
  • 1
0 votes
0 answers
41 views

Can I add more swap space to my system to goes fluenly?

I'd like to add more RAM to my system, but as I see in tutorials how they have no swap space as I do. You can see the result of sudo swapon --show. lindor@lenovo:~$ sudo swapon --show [sudo] lindor ...
lindor's user avatar
  • 1
0 votes
0 answers
117 views

Free memory consumed by browser and applications on ubuntu 22.04

I have 32 GB ram, that in days get eaten up by using web-browser firefox and other common programming applications. Even my swap get up to 17.9/37.3 GB written. OS Ubuntu 22.04. I have not been able ...
Henry Wittler's user avatar
0 votes
0 answers
28 views

I want to extend my root partition using 2 unallocated partitions but one it to the left and other is to the right. How do i do it.?

I want to extend my root partition, using 2 unallocated partitions, but one if present to the left of the root, and another if present in the right. The sequence is : Unall | ROOT | Linux-Swap | Linux-...
Robin_Hood_13's user avatar
0 votes
1 answer
115 views

How to encrypt a Swap partition after install on a multi-os drive?

My laptop move a lot, and I want to secure it in case somebody get access to it. One of the step is to secure the swap partition, where all memory can be saved. How to do this using already included ...
jehon's user avatar
  • 175
1 vote
1 answer
552 views

swap is missing from 22.04

I installed ubuntu 22.04 and there is no swap at all. In my system monitor, under resources it shows Swap not available I am a bit confused to be honest. Does ubuntu use swap these days, do I need to ...
Aenaon's user avatar
  • 119
0 votes
1 answer
122 views

System not Booting into Ubuntu 22.04.3 After Creating Swap Partition

I was trying to create a swap partition on my Ubuntu 23.04.3 which eventually worked out just fine, but after powering off the system and powering it back on a few times after use, I discovered I ...
David Livingstone's user avatar
0 votes
0 answers
39 views

How to see and change swapfile/hibernate settings through GUI?

When Ubuntu Desktop 22:04 is installed, while the process itself appears a screen with the some options about swapfile, hibernate .. and perhaps more if my memory does not fail me. Once completed the ...
Manuel Jordan's user avatar
0 votes
0 answers
37 views

Kubunutu Booting into emergency mode 22.04.3 LTS

I've recently made the switch over to kubuntu on main system from windows. Downloaded steam and most of games. Set a new partition on secondary nvme (/dev/nvme1n1). On the primary /dev/nvme0n1 set a ...
TwoBeeSan's user avatar
0 votes
2 answers
242 views

Getting error - failed to active swap /swapfile

I'm new to Ubuntu desktop from Windows, installed it yesterday. It was working fine, except ACPI error. But today I'm getting error while booting my machine. [ 0.274572] ACPI BIOS Error (bug): Could ...
Gourav's user avatar
  • 1
0 votes
2 answers
452 views

Why does memory-heavy processes lead to system crashes when swap is available?

I run a bath (snakemake -j 1) of memory-heavy operations in Python: subtracting two arrays up to 15 GB each, then calculating norms of the difference. Surprisingly my system started to misbehave: ...
abukaj's user avatar
  • 475
2 votes
1 answer
192 views

Why low swappiness (10) leads to system crashes? [duplicate]

As I have 128 GB of RAM, I wanted to minimize swap usage by setting vm.swappiness to 10. I ran a bath (snakemake -j 1) of memory-heavy operations in Python: subtracting two arrays up to 15 GB each, ...
abukaj's user avatar
  • 475
0 votes
0 answers
31 views

after each reboot I need to assign swap manually and /etc/rc.local doesn't get triggered

After every reboot, I'm just seeing one swap in my system. $ sudo swapon --show NAME TYPE SIZE USED PRIO /swapfile file 2G 0B -2 So in /etc/rc.local I've put this piece of instruction: # ...
Maifee Ul Asad's user avatar
0 votes
0 answers
621 views

Find the Physical Offset Number of the Swapfile

I just installed Ubuntu 22.04 on a new device and I'm trying to enable hibernation. I followed the instruction from (https://linuxhint.com/enable-hibernate-ubuntu-22-04-lts/) but I'm stuck at the step ...
Eris's user avatar
  • 13
0 votes
0 answers
60 views

SWAP - Ramdisk file make system update crash

Kubuntu 22.04 LTE I have 16 GB primary memory on this i7 laptop and 1 TB SSD, I want to add temporary files such as swap, cache etc. as much as possible on the primary memory to save on the number of ...
nor parn's user avatar
0 votes
0 answers
57 views

Need help with btrfs partitions

I installed ubuntu with custom partition layout. boot/efi root (/) as btrfs home (/home) as btrfs swap partition lsblk looks like : NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS nvme0n1 259:0 0 953,9G ...
Marko's user avatar
  • 31
2 votes
0 answers
3k views

Unexpectedly high memory usage in Ubuntu 22.04.3 LTS

I have noticed for a while now that my system seems to be using up my memory much more quickly than I would expect. When it gets like this, I do notice it slowing down a bit at time, and my fan starts ...
Niven's user avatar
  • 231
0 votes
0 answers
195 views

disable swap partitions completely

How to disable all swap partitions completely. I have applied the following tasks on the server. sudo swapoff -a deleted line (/swap.img none swap sw 0 0) from /etc/fstab. I ...
Nexgn Technologies's user avatar
0 votes
0 answers
55 views

Optimize system for rapidly loading large volumes of data

I'm running a complex Matlab program on my Ubuntu computer. It needs to load several .MAT files, each of which is several GB on disk and larger in RAM. I know it is possible to run this program - a ...
Post169's user avatar
  • 111
0 votes
1 answer
48 views

Shutdown freeze after system updates

I have Ubuntu 20.04 and this morning the computer requested to restart after system updates I restart but it froze on the shut down at the Deactivating swap step. Should I turn off the PC from the CPU ...
lxsepulvedam's user avatar
0 votes
0 answers
808 views

Ubuntu fails to boot, failed to activate swap, system logging service etc

Some hours ago I was using photorec to recover some files but this lead to it recovering everything ever deleted, which led to my hard drive being completely filled and me being stuck with an infinite ...
Smartyguy1's user avatar
0 votes
1 answer
58 views

Why does gui restarts on peak physical memory usage, though there is still plenty of virutal memory?

This has happened often. Everytime I see peak RAM usage, GUI restarts. Please, I would be greatful for any help. What are any other information required ? This has been happening to me when I use ...
maan81's user avatar
  • 635
20 votes
2 answers
19k views

Is Linux swap partition still needed with Ubuntu 22.04

I read that if there is no swap partition, newer Ubuntu versions may use a special file on any other available disk space once the RAM is completely used. Can anybody with more knowledge than me ...
dieter's user avatar
  • 209
2 votes
1 answer
236 views

Which is the correct way to use two swapfiles in different devices?

I am running a python code on jupyter lab which deals with a large list of dataframes and I need to concatenate, compute averages, etc. It is memory consuming, and I take advantage of swapfiles, as ...
hamagust's user avatar
  • 207
1 vote
1 answer
2k views

Recreate swap and resize root partition

I'm using Ubuntu 22.04.2 LTS. Below is my current partition table configuration. Initially, I allocated 37GB for the root partition and left the remaining space for the home partition. However, I have ...
ravinda's user avatar
  • 215

1
2 3 4 5
28