Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 votes
0 answers
21 views

swap- do I need to delete it on ssd

Respected admin, I am a proud linux user since last 5 years. My notebook configuration is core i5 with 12gb ddr3,120 gb ssd, 640gb hdd. Now when I have shifted on ssd I simply made default install of ...
user avatar
0 votes
0 answers
17 views

Can't add swap in pop os 22.04 [closed]

I have recently installed POP OS 22.04 on my dell laptop. At the installation time I have chosen /dev/sda2 partition for my swap partition. But the installer gone mad and used /dev/sda2 and /dev/sda8, ...
user avatar
0 votes
0 answers
3 views

Swap scroll axes (not the direction but the actual axes) while retaining the same axes orientation on the trackball

I have a trackball mouse (Gameball). I want two things: Swap the scrolling axes (vertical for horizontal and viceversa) (this effectively to change the physical buttons that correspond to these axes (...
user avatar
1 vote
1 answer
88 views

RAM and Swap memory not freed after python calculation?

I have Ubuntu 21.04 and I started to have a particular issue some time ago. I have python programs I run regularly, sometimes re-running the same thing without any differences. But since some time, my ...
user avatar
0 votes
1 answer
115 views

How can I fix this 'Failed to activate swap /swapfile' error on boot in Xubuntu?

When I boot my laptop, I'm seeing: systemd[1]: Failed to activate swap /swapfile. [FAILED]: Failed to activate swap /swapfile. [DEPEND]: Dependency failed for swap. I am then taken to the Ubuntu ...
user avatar
1 vote
1 answer
95 views

Using swap space on Ubuntu 22.04, python application exit automatically

Recently I upgraded my ubuntu from 21.10 to 22.04, system works well after upgraded, but something went wrong when I run the python script, it works well on exsiting system 21.10, but didn't work on ...
user avatar
0 votes
0 answers
27 views

How do you extend swap space if swap space is being used

I have a swap disk (non-LVM) of 64GB. The swap space is currently being used and there is only 8GB free. I have increased the swap disk itself to 128GB. How would I extend the swap space from 64GB to ...
user avatar
0 votes
0 answers
70 views

Ubuntu server 20.04 LTS swap.img move to different partition

I'm a newish user to Ubuntu and setting up a server for home use. With previous versions of Ubuntu server I created a swap partition on my first drive. However 20.04 uses a swap.img file on the root ...
user avatar
  • 1
0 votes
0 answers
31 views

Odd mount behavior: Swap, ESP

I'm suddenly observing some odd mount behavior that is affecting both the swap and EFI system partitions, among others. The system is Lubuntu 20.04.4 in a GRUB multi-boot configuration with Ubuntu ...
user avatar
  • 197
0 votes
0 answers
37 views

how to extend gpu and cpu from physical drive like swapfile

starting from this answer https://askubuntu.com/a/1229795/966305 I have a machine running ubuntu lts whenever I run any program that is GPU comsumer like chrome or blender everything stops working {I ...
user avatar
0 votes
0 answers
17 views

How to install Ubuntu 20.04 next to a LVM distro?

So I have Kubuntu installed using LVM and want to install Ubuntu on the same disk (using the classic swap & ext4 partitions and no LVM). During the installation I choose "Something else" ...
user avatar
0 votes
1 answer
29 views

How does dd work with the oflag and conv parameters?

In the following link How do I increase the size of swapfile without removing it in the terminal? for swap file resize purposes the dd command is used as follows: sudo dd if=/dev/zero of=/swapfile ...
user avatar
0 votes
2 answers
53 views

What is the recommendable approach to increase a swap file for Ubuntu 20.04?

About Linux Swap, for resize purposes I found three approaches Delete the current /swapfile and create a new one with the new required size Add more gigas as required for the current /swapfile Add ...
user avatar
-1 votes
1 answer
52 views

What is the default swap file size for Desktop and Server environments? is fixed?

According with the following link: Is wise and safe use "swap file" for PC/Laptops of 8GB or less? either HDD or SSD Since Ubuntu 17:04 is used by default swap file. The main questions is: ...
user avatar
0 votes
0 answers
27 views

Is swap enough for hibernating?

I have a PC with 4Gb RAM. I plan on extending it to 8Gb RAM. This is my partition table. Will the swap be enough for 8Gb RAM? Or should I expect its 7.92Gb to fall short, even by a tiny amount?
user avatar
0 votes
3 answers
131 views

Is wise and safe use "swap file" for PC/Laptops of 8GB or less? either HDD or SSD [closed]

I am reading some tutorials about swap for Ubuntu and in general for other distributions. Mostly from: What You Need to Know About Swap Partition on Linux From there, it refers to other valuable ...
user avatar
0 votes
1 answer
133 views

Can I use zRAM and a disk swap file at the same time?

I have 24GB of available RAM in my machine, but I usually use far less than 8GB of it. However, sometimes I'm involved with large data files and I suddenly need 40GB, and on infrequent occasions, I'd ...
user avatar
0 votes
1 answer
34 views

0 Swap Used Although Swappiness is 60

I have the Vitals GNOME Extension, and I also have my swappines value (in /etc/sysctl.conf) at the default: 60. I clicked on the Vitals extension and I looked in the Memory section, and it says 0.00 ...
user avatar
2 votes
0 answers
41 views

Every time I reboot Ubuntu 20.04, the the opposite NIC becomes active and the names swap

This is driving me crazy. Every time I reboot my 2 NIC server, The names of the two interfaces swap with each other but obviously the MAC addresses stay the same. I can get a network connection but I ...
user avatar
0 votes
0 answers
39 views

Boot: failed to activate Swap

I can't boot into ubuntu 20.04. It says "failed to activate swap /swapfile". How can this be solved? thanks!
user avatar
  • 27
2 votes
0 answers
68 views

How to set timeout for waiting missing HDD while system boots?

System: Ubuntu 20.04 with EFI boot. Clarification why I need this I configured two swap partitions: One primary swap on the second HDD. It is used for hibernation. (Hibernation function is better to ...
user avatar
0 votes
1 answer
44 views

avaliable memory + used memory is less than total memory

ive noticed a strange behavior that the computer crashes when the usage is slightly bigger than 3000mb. and the swap is used even before reaching the 3000mb as if the computer just had it. thats the ...
user avatar
0 votes
1 answer
51 views

Resize partition adjacent to two partitions

PFA the current partitions on my disk. The second partition (selected one) is the swap partition (8gb), but recently I upgraded ram and want to make swap 16gb. I get this message when using systemctl ...
user avatar
  • 2,165
1 vote
0 answers
44 views

Is large swap appropriate for infrequent, high memory task?

Hypothetical: I have a workstation with 32 GB RAM which is perfectly fine for most tasks. However, I rarely (1-2 times/year) need to perform a task that is very, very memory intensive (i.e. 150 GB ...
user avatar
0 votes
0 answers
56 views

Preseed multiple disk no lvm

I try to preseed the partitioning on my virtual machines, I want to place swap on a separate disk (/dev/sdb). Everything else should be on first disk (/dev/sda). Somehow it will still put everything ...
user avatar
  • 1
0 votes
0 answers
91 views

"Insufficient free space" when trying to increase swap space on LVM?

I installed Ubuntu 21.10 with LVM to use full encryption on my disk. It works great, the only problem is that it chose a 1gb swap partition size, while I have 16gb or ram... me@me:~$ sudo vgs VG ...
user avatar
0 votes
0 answers
73 views

Ubuntu20 installation created a swap file default

My Ubuntu20 server installation seems created a swap file swap.img default under "/" directory. I do also have a lvm swap partition Is that a default behavior of ubuntu20 swap.img file ? Is ...
user avatar
3 votes
1 answer
93 views

Why does Clonezilla disable swapfile?

# uname -r 5.13.0-27-generic # lsb_release -a LSB Version: core-11.1.0ubuntu3-noarch:security-11.1.0ubuntu3-noarch Distributor ID: Ubuntu Description: Ubuntu 21.10 Release: 21.10 Codename: ...
user avatar
  • 225
1 vote
1 answer
118 views

Should the Swap be this large?

My computer is a bit old and sometimes it struggles to handle many tabs running small processes etc. I guess this has to do with the ram. When I check the usage, this is what I get: free -lhm ...
user avatar
  • 299
0 votes
0 answers
44 views

How much swap when striping accross two disks and hibernating

When a computer has two hard drives it might make sense to have two swap partitions, one on each disk - thus the swap is automatically stripped and thus much faster than otherwise. When configuring a ...
user avatar
  • 1,276
0 votes
0 answers
77 views

VERY lengthy boot time after updating...relates with 'Create Volatile Files and Directories' and /TMP, perhaps?

All was well until a recent updating session for 20.04.3 demanded a reboot. Wow - it seemed to be sitting idle, but pressing esc to get details revealed: "A start job is running for Create ...
user avatar
  • 181
1 vote
1 answer
51 views

Removed LVM swap partition, and now booting takes a lot of time because of errors

Context Originally I had the following partition structure nvme0n1 ├─nvme0n1p1 /boot/efi └─nvme0n1p2 ├─ubuntu--vg-root / └─ubuntu--vg-swap_1 swap Then I decided to remove the ...
user avatar
0 votes
1 answer
48 views

why ubuntu takes too long to startup after removing swap partition?

yesterday i decided to remove SWAP partition of my ubuntu 21.10 (which is dual booted with windows 11). using GParted i removed swap partition. now, ubuntu takes too long to boot. it is installed on a ...
user avatar
  • 174
0 votes
0 answers
82 views

GitHub Runner taking 2x physical RAM - what's the fix?

I've had 4x crashes now of AWS ERP servers due to memory apparently maxing out and the system essentially dying with 100% CPU and no [little] available RAM. Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1060-...
user avatar
3 votes
0 answers
167 views

Hoe to link swapfile to RESUME variable on LUKS encrypted drive? | Ubuntu 21.10

I want to have 32GB of SWAP on LUKS encrypted filesystem and have hibernation enabled. My basic swap partition was 1GB, and I've made ´/swapfile'of 31GB. I first tried with fallocate command as ...
user avatar
1 vote
1 answer
210 views

Linux using swap when RAM is available

I am experiencing an issue where linux seems to be using swap instead of RAM. To me it looks like I've triggered a bug because: The swap seems to be used for storing data that is regularly used, not ...
user avatar
  • 111
4 votes
1 answer
623 views

Swappiness on WSL2 gets reset to 60

I recently tried installing Ubuntu on Windows (WSL2). I tried the free command, and few blocks of swap memory were utilized. I thought of reducing the swappiness so I added the entry vm.swappiness=10 ...
user avatar
0 votes
0 answers
54 views

Ubuntu very slow at start and general after upgrade amd64 version

I update from 18.04 to 20.04 it was slow before the update what can I do to run better.I mean when I start the computer its take like 5min to load to login screen after login it takes up to 10 min to ...
user avatar
1 vote
0 answers
101 views

Ubuntu 20.04 has recently started to use swap very aggressively

I use Ubuntu 20.04 with 16 GB RAM and a swappiness setting of 10. This has worked well in the past, but sometime during the last month I feel there has been a huge shift in the way memory is handled. ...
user avatar
  • 21
0 votes
0 answers
63 views

How to config cgroup v2 to limit only the ram memory and let swap unlimited?

Because Ubuntu 21.10 ship with Cgroup V2 and my project seems to need memory limitations I decided to use it, but I have some problems. I need a lot of RAM to test an idea, so because my processor can'...
user avatar
  • 1
0 votes
1 answer
46 views

How Do I Decrease the Size of a Preexisting Swap File Without Removing it?

After seeing this post: How do I increase swapfile in Ubuntu 18.04?, I was wondering, how do I decrease the size of the swap file without removing it?
user avatar
1 vote
1 answer
221 views

Triple booting Windows, Ubuntu, and Fedora

I'm trying to triple boot Windows 11, Ubuntu 21.10 and Fedora 34. At the moment, the only OS on my system is Windows 11. How do I go about the install? Also, I had a question about swap partitions - ...
user avatar
  • 43
0 votes
0 answers
35 views

How to add space to the hibernate partition with LVM and FDE

I'm new to Ubuntu and just installed the latest version. I'd like to increase the swap partition which is encrypted (FDE) and LVM, how can I archive this? $ swapon --show NAME TYPE SIZE USED ...
user avatar
  • 1
0 votes
1 answer
32 views

Swap Memory Visibility On The /proc/swaps Command Output

Swap memory information can be get by using cat /proc/swaps command. It looks like there are several swap memory types such as file and partition. Is there any situations that there is swap memory (...
user avatar
0 votes
0 answers
35 views

Free swap file space contained on root partition without rebooting to free space checked by df

I have created a temporary Swap file (/var/cache/swap/myswap) of 500GB on a Ubuntu worstation at work wiht 1TB RAM. This swapfile is on a BTRFS filesystem. I don't need anymore of this swapfile now ...
user avatar
0 votes
1 answer
474 views

Unable to get swap file UUID for hibenation in ubuntu 20.04

I am following this to enable hibernation in my ubuntu 20.04LTS system. I followed exactly as mentioned in the first answer. But when I run grep swap /etc/fstab to get the UUID value I get the below ...
user avatar
2 votes
0 answers
550 views

Xorg using all my memory RAM?

I am having some memory problems that I don't know how to explain, and I don't have the knowledge to investigate it properly. Hope someone can guide me through it. Since yesterday my notebook (Ubuntu ...
user avatar
-1 votes
0 answers
84 views

how to increase swap partition size and what is the min size

i have 8 GB RAM and for swap partition it is just 2 GB . I installed ubuntu 20.4 in my pc can i increase the swap partition to avoid pc bloking because it s 100% full all the time and the ram memory ...
user avatar
  • 39
0 votes
2 answers
132 views

Can I utilize multiple swap files in linux on different devices for enhanced throughput?

I would like to use two swap files, if possible: one on the SSD and one on an USB pendrive. I hope this way I can get an enhanced, two combined channel throughput.
user avatar
0 votes
0 answers
139 views

Ubuntu 20.04 freezes without (apparent) reason

I am experiencing random freezes of the OS on Ubuntu 20.04. I have checked online and there are a lot of other people reporting the same issue. However, none of the solutions proposed worked for me. ...
user avatar
  • 252

1
2 3 4 5
27