As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [swap]

Swap space is a virtual memory of RAM. It is used when the amount of RAM is full. Swap space can be a dedicated swap partition, a swap file, or a combination of swap partitions and swap files.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Can I control how windows page file behaves? [duplicate]

As we all know Linux has swappiness option that we can change according to our needs to control how it behaves, so my question is, is there any command or anything like that what we can change to make ...
jastyles's user avatar
-1 votes
0 answers
20 views

Physically swapped SSD drives to switch OS causing one of them not to boot

I have a Dell G7 7588. I had windows 11 installed on my WD 500GB SSD. Replaced it with a 128 GB SSD on which i proceeded to install Linux. I intended to use both the drives and wanted to physically ...
Performance Potato's user avatar
0 votes
1 answer
49 views

Is there a way to shift two logic volume position?

I had an existing Centos Stream 8 Linux System configured as automatic partition when it was installed. The partition/logic volume layout as: [root@Centos8Gateway ~]# lsblk NAME MAJ:MIN RM ...
cidy.long's user avatar
  • 149
1 vote
1 answer
416 views

How to add swap space on fedora?

I want to add swap space on my machine running Fedora. Searching on this raised questions: I found this 2016 post showing a method to do it, but a comment says changing the swap could result in boot ...
Seldi's user avatar
  • 31
1 vote
0 answers
31 views

Can't do an in-place Update of an Azure cloud service (extended support) after a VIP swap - Public IP is in use (error)

I have successfully performed a VIP swap on a pair of Azure cloud services (extended support) that had Reserved IP addresses (static, although I don't think it matters). Now I can Update (by uploading ...
Vasily Romanov's user avatar
1 vote
0 answers
73 views

How to delete a debian luks swap partition properly?

There is the post Removing the swap partition from a LUKS encrypted SSDD but it's tagged as linux mint. Because of the fact that update-initramfs (a debian tool) reports an error my problem is related ...
zomega's user avatar
  • 1,234
3 votes
1 answer
233 views

Deleting swapfile.sys when another partition is provisioned for paging in Windows 11

A Windows 11 system is configured with two physical storage devices. The first has a typical layout, of boot, reserved, and data partitions, whereas the second is partitioned exclusively for a page ...
brainchild's user avatar
0 votes
1 answer
86 views

Windows support for discard operation of disk drives

Calling a discard operation by a file system to hardware storage is important for both optimal lifespans of solid-state drives and space reclamation of thin-provisioned virtual drives. Information ...
brainchild's user avatar
1 vote
1 answer
702 views

Drive /dev/sda with a swap file in WSL2

As NotTheDr01ds mentioned in this answer, /dev/sda in WSL2 is a virtual drive which Windows creates to store a swap file shared between WSL instances. But it isn't mounted by default when instance ...
lem0nify's user avatar
  • 113
0 votes
0 answers
140 views

Swapping with Paging and Swappiness (Linux)

In Abraham Silberschatz's Book, Greg Gagne, Peter B. Galvin - Operating System Concepts (2018) says: Standard swapping was used in traditional UNIX systems, but it is generally no longer used in ...
robert's user avatar
  • 1
0 votes
1 answer
617 views

BTRFS warning (device xxx): swapfile must not be copy-on-write. Why swap is activated when disabled?

I have SSD. When I check dmesg I see warnings and fails: $ sudo dmesg | grep swap [ 0.085887] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 0.429424] zswap: ...
Eugen Konkov's user avatar
0 votes
1 answer
373 views

Resizing my swap partition on Debian encrypted lvm setup has disabled hibernate, how can I fix it?

I installed Debian 11 on an ancient netbook, encrypted with a separate /home partition, otherwise accepting all the defaults. Once I'd got the system set up I realized that I'd only got a 1GB swap ...
John Lawrence Aspden's user avatar
0 votes
1 answer
376 views

CPU Limiting & kswapd0 Advice Saught

Through hours of testing, I have found that the nextcloud desktop sync client for ubuntu 20.04 (appimage or ppa) both seem to have a bug to where... if a common nextcloud file sync error occurs , ...
mjones's user avatar
  • 267
2 votes
1 answer
131 views

How much time am I spending in swap?

I think I'm getting slowness due to running out of memory and hitting swap. I've watched the hardfaults/sec in Resource Monitor and it's often over 1000. This is an issue generally during ...
Clinton's user avatar
  • 123
0 votes
1 answer
783 views

Pagefile on Windows 10 limited to 64 GB?

I have a few tasks where I can't avoid using tons of memory. Since I have limited physical memory, Windows starts using the SWAP/Pagefile. Though it seems that Windows is limiting the pagefile size to ...
Tommy's user avatar
  • 3
0 votes
3 answers
4k views

Check which processes are eating swap on Linux?

To see some memory info I can watch it in top of through cat /proc/meminfo. In /proc/meminfo I can see the swap usage of the whole system like this: SwapCached: 4 kB SwapTotal: ...
NK-cell's user avatar
  • 153
0 votes
0 answers
27 views

Prevent swap formating at OS installation

For testing I've created multiple partitions (7) to install different Linux distributions. I have a partition /dev/sda6 for Linux Swap. Each installer (graphical install) decides to reformat this swap ...
Mickael B.'s user avatar
0 votes
0 answers
33 views

Sysctl kernel boot parameter not always applied fast enough for dependent processes

I'm running Debian on a custom Chromium OS (cros) kernel on a Chromebook. Cros kernel has disk-based swap file disabled by default (since it prefers zram), and to enable it sysctl variable vm....
seamux's user avatar
  • 31
1 vote
1 answer
3k views

How to delete swap file in ubuntu?

I am trying to delete the swap file by the following link: https://www.digitalocean.com/community/questions/delete-swap-file However, when I type: sudo rm /swapfile I am getting the following error: ...
khalidh's user avatar
  • 125
0 votes
1 answer
28 views

Swapping machine OS with VM OS

For several months I've been playing around on VirtualBox with Linux Mint 20.0 installed on it and have tweaked the OS just the way I now want it. This VB resides inside of main bare metal Windows 7 ...
Wayne's user avatar
  • 1
1 vote
0 answers
52 views

enable zswap selectively per-device?

Is it possible to enable zswap for some swap devices but not for others? I don't see any tunables, and quick checks show that even zram swaps end up using zswap (leading to double compression). Once /...
usretc's user avatar
  • 187
2 votes
1 answer
2k views

What kind of storage would nowadays be good for swap partitions (Linux, Windows)? If NVMe SSD is used, how will this impact longevity?

Does it still make sense to use a good old magnetic disk for this purpose, maybe a RAID 0 configuration?
user2943111's user avatar
0 votes
1 answer
138 views

Is unencrypted swap partition safe after shutdown in linux OS?

I am trying to google this question, but so far I don't find any answer online. I am running debian OS. Unencrypted swap partition is NOT safe when the system is using it and running. Hackers may get ...
sgon00's user avatar
  • 525
0 votes
0 answers
329 views

What's the maximum swap memory in Linux

today I discovered what was swap memory on linux, after a PHP error "cannot allocate memory in...", "The following exception is caused by a lack of memory and not having swap configured&...
Totuxx's user avatar
  • 1
2 votes
2 answers
2k views

Why is the default zram value is 1/4 of ram? Why not high values?

I noticed the usually value of zram is 1/4 of total ram. https://fedoraproject.org/wiki/Changes/SwapOnZRAM Why is bad use like 3/4 or total of ram?
Lucas Tsudaka's user avatar
3 votes
1 answer
5k views

Force a process to only use swap memory?

I have a custom program that performs analysis on some data. This is a very memory-hungry operation that can potentially use thousands of gigabytes of RAM. My computer only has 16gb of RAM, so my only ...
AlexRamallo's user avatar
-1 votes
2 answers
2k views

How do I add a swap (Not a swap file) after installation of Kali Linux? [duplicate]

I am a dual user running Kali Linux and Windows 8.1 . A few days before, I had removed the swap partition that I had installed for Kali Linux during the installation, since my windows was running out ...
user avatar
1 vote
0 answers
39 views

What happened about the swap used?

Q:Why is the used value of swap so large? Is there a error/bug/problem with the kernel? env: CentOS release 6.7 (Final) [root@dc-hadoop203 ~]# free -g total used free ...
user1213641's user avatar
0 votes
1 answer
627 views

How to create and configure swap space on an SSD with a running, LUKS-encrypted Linux system?

I have a trusty old ThinkPad R60 with only 3 GB RAM (upgraded from 2 GB) with Linux Mint Debian Edition 4 running on it. I chose LMDE for stability and the desktop environment. The machine is one of ...
david's user avatar
  • 287
1 vote
0 answers
269 views

Give space to a tiny computer (tmpfs with swap over nfs)

I have a tiny computer with not so much RAM (1-2GiB) and very little disk space in which I installed Gentoo. I also have space on a shared NFS. In order to be able to compile any package, even the ...
Stéphane Veyret's user avatar
0 votes
1 answer
1k views

How to remove linux swap partition from a disk?

I need to tell details about my disk first: I bought SSD drive (223 Gb) a while ago and decide install on it Windows 10 and Ubuntu 16.04, I have split drive 450 Mb + 100 Mb + 173 Gb for Windows 10 and ...
XCanG's user avatar
  • 143
0 votes
2 answers
519 views

swap order of text in notepad++

I'm trying to swap my code (over 1000 lines) of this: from: HA09 HA(a9b0, a8b1, Cout09, Sum09); FA19 FA(Sum09, a7b2, Cout08, Cout19, Sum19); to: HA HA09(a9b0, a8b1, Cout09, Sum09)...
learner's user avatar
0 votes
1 answer
367 views

Swap space not updated

I just made my USB an additional swap and after all done I did not know how could I take the USB off my computer properly, so I just pulled it off. When I open htop the swap space that the USB ...
FellowCoder's user avatar
0 votes
2 answers
416 views

Unable to write the entries in /etc/fstab

I am using below playbook to write the entries in /etc/fstab & to create swap file: --- - name: Configure SWAP hosts: localhost become: yes become_user: root tasks: - name: ...
Santosh Garole's user avatar
1 vote
1 answer
191 views

What size swap partition will allow a Mint 19.3 installation with 64G RAM to hibernate?

This same basic question is asked at How can I enable hibernation under Linux Mint 18.3?, but the question as asked only tells how much space is desirable for a 4Gi installation, and conflicting ...
Christos Hayward's user avatar
0 votes
1 answer
430 views

Does swap size have any relevance to suspend to RAM?

I'm having some trouble suspending my Xubuntu 19.10 machine and I've recently heard a suggestion that I might need more swap. Currently I have about 1GB of swap for 8GB of RAM, which I've heard is a ...
J. Mini's user avatar
  • 136
1 vote
1 answer
537 views

What unit does swapon use for size?

Both swapon -show and cat /proc/swaps report that I have a swap of size 1003516 and no unit is given. At first I assumed that this was bytes, giving me about 1 megabyte. However, free -mh reports that ...
J. Mini's user avatar
  • 136
1 vote
1 answer
430 views

why does it start to swap when there are still plenty of memory?

$ free -h total used free shared buff/cache available Mem: 125G 16G 105G 26M 3.3G 107G Swap: 8.0G 1....
ling's user avatar
  • 123
0 votes
0 answers
66 views

Why is my keyboard not functioning when I load my PC causing it to swap upto 2GB of memory?

I have a below avarage laptop with 6GB RAM (I know it should be either 4GB or 8GB for optimisation reasons and such but I gotta work with what I got) and about 1GB of it is used up by my desktop ...
Nabeel Parkar's user avatar
0 votes
1 answer
2k views

How to reduce the size of swap file from 3.8 GB to 1GB?

I'm using Jetson TX2 L4T v28.3 but I can't seem to find the swap file in L4T OS 28.3 (UBUNTU Bionic 18.04). I tried to locate it via grep but the file can't be located. jetpack4-2@jetpack42-desktop:~$...
Anuj Patil's user avatar
0 votes
1 answer
50 views

Memory of disk assigned as swap doest fit

I have problem with understanding of disk partitions for swap. Problem is about size. I create new particion via fstab with size 2GB: Command (m for help): n Partition type: p primary (0 primary, 0 ...
alibaab's user avatar
2 votes
2 answers
1k views

full disk encryption and encrypting swap with temporary keys

When I installed Debian Buster (with a stock 4.19 kernel) on my device, I opted for guided partitioning with full disk encryption. So the current setup is LVM on LUKS, and /boot is unencrypted: user@...
fghtsu's user avatar
  • 66
1 vote
1 answer
465 views

Ubuntu 18.04.03 cannot hibernate

I am using a swap partition of 10.5GB (almost) while RAM of my system is 8GB. My /etc/fstab file looks like this # /etc/fstab: static file system information. # # Use 'blkid' to print the ...
Mazhar Hussain's user avatar
0 votes
1 answer
301 views

Less Threads or More Swap Space?

I am running multiple terminal cmds using threads in Python (don't make fun of me, there is a reason). These cmds sometimes overpower the available memory and I have been forced to increase my swap ...
Daniel Connelly's user avatar
2 votes
1 answer
154 views

Why is the modification date of my swapfile not changing?

If I check with stat the modification date is not up to date File: /home/shares/swap.file Size: 1962934272 Blocks: 3833864 IO Block: 4096 regular file Device: 801h/2049d Inode: 15 ...
bomben's user avatar
  • 232
0 votes
0 answers
131 views

Low RAM for application in Linux

I install software in Linux called Spades, but I can't run it because of a RAM problem. When I tap the "spades.py --test" command, I get this error: When I tap the "free" command to check the swap ...
ELbafa's user avatar
  • 1
1 vote
0 answers
634 views

Why does my Linux laptop not use swap space aggressively even with high swappiness value?

I have around 8GiB of RAM on my laptop: $ free -h total used free shared buff/cache available Mem: 7.7Gi 6.9Gi 214Mi 381Mi 580Mi ...
donatello's user avatar
  • 151
2 votes
1 answer
2k views

Can I make Virtual machine use swap-space(swapfile) as a memory when overcommitting?

I am doing some experiment with VM and KVM. I am trying to realize the fact of overcommitment and swap-space. At first, let me show the system setup and associate configuration that I made for this ...
doosolLee's user avatar
0 votes
0 answers
117 views

how to make zswap on hdd

I run Lubuntu and have a partition from an old Ubuntu install, which i want to use for a zswap, or if that is difficult for a plain swap. Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 ...
Stephen's user avatar
  • 167
1 vote
2 answers
2k views

How to make swap on a removable SD card?

I have a 16GB SD card which shows as /dev/sdb unallocated space in Disks app. I can do mkswap /dev/sdb swapon /dev/sdb but when I restart the whole thing disappears. How can I make it stay?
Stephen's user avatar
  • 167

1
2 3 4 5
8