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
1 answer
156 views

Fedora Core 39 Disable zram0

Background: I have several VMs that do not need sleep or other things. I generally provide them enough RAM to do their job and not need swap. I kickstart them and build them without a swap partition. ...
Chris's user avatar
  • 41
0 votes
0 answers
62 views

vmstat + on RHEL machine high values of swpd

The swpd field indicates how much swap space has been used; this value increases when your systems physical memory is full and the Linux kernel starts to use the swap partition/file. When the systems ...
King David's user avatar
0 votes
1 answer
74 views

What happens if I execute swapoff && swapon when RAM + swap exceeds RAM capacity

What happens if I execute the command sudo swapoff -a && swapon -a having RAM full 25GB/32GB and swap full 20GB/32GB? 25+20 = 45 > 32 so there's no way RAM can fit all operating data. On ...
banan3'14's user avatar
  • 227
-2 votes
1 answer
55 views

Most important drive characteristics for swapfile/swappartition / pagefile?

So, this is potentially a two-fold question because I wonder about both how Windows (11) and Linux (6.5) handle their corresponding swapfile/swappartition and pagefile I/O. What are the most important ...
János Tóth F.'s user avatar
0 votes
2 answers
199 views

Cannot use free space for swap partition

I am trying to increase the swap space on a CentOs-7 VM. I was running a program that crashed on the VM complaining about running out of memory. I thought increasing the swap space might fix the issue....
Mohammed Arshaan's user avatar
1 vote
2 answers
90 views

Differences swap to file and (usual) swap for VMware guest

I would like to ask about the main differences of "swap no hibernate" and "swap to file" in case of a virtual machine. By default I choose swap without hibernate because that's ...
l4jos's user avatar
  • 13
0 votes
0 answers
42 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
0 votes
1 answer
60 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
3 votes
2 answers
7k 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
  • 71
1 vote
0 answers
87 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
235 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,250
3 votes
1 answer
573 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
242 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
1k 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
228 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
880 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
672 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
537 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
  • 307
2 votes
1 answer
235 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
2 answers
1k 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
2 votes
3 answers
14k 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
  • 175
0 votes
0 answers
44 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
61 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
2 votes
1 answer
6k 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
  • 145
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
65 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
  • 227
2 votes
1 answer
3k 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
245 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
  • 875
0 votes
0 answers
463 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
3 votes
2 answers
4k 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
5 votes
1 answer
7k 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
3k 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
1k 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
  • 337
1 vote
0 answers
374 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
2k 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
  • 153
0 votes
2 answers
816 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
556 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
564 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
208 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
700 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
865 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
470 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
55 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
485 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
525 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
218 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
  • 272

1
2 3 4 5
8