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
1 vote
1 answer
75 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 ...
user avatar
  • 113
0 votes
0 answers
41 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 ...
user avatar
  • 1
0 votes
1 answer
74 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: ...
user avatar
0 votes
1 answer
70 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 ...
user avatar
0 votes
1 answer
47 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 , ...
user avatar
  • 155
2 votes
1 answer
42 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 ...
user avatar
  • 121
0 votes
1 answer
99 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 ...
user avatar
  • 3
0 votes
3 answers
278 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: ...
user avatar
  • 153
0 votes
0 answers
19 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 ...
user avatar
0 votes
0 answers
27 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....
user avatar
  • 31
0 votes
1 answer
541 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: ...
user avatar
  • 105
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 ...
user avatar
  • 1
1 vote
0 answers
25 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 /...
user avatar
  • 167
2 votes
1 answer
646 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?
user avatar
0 votes
1 answer
48 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 ...
user avatar
  • 325
0 votes
0 answers
193 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&...
user avatar
  • 1
0 votes
1 answer
982 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?
user avatar
2 votes
1 answer
2k 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 ...
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
37 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 ...
user avatar
1 vote
1 answer
363 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 ...
user avatar
  • 11
0 votes
0 answers
141 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 ...
user avatar
0 votes
1 answer
777 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 ...
user avatar
  • 123
0 votes
2 answers
195 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)...
user avatar
0 votes
1 answer
78 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 ...
user avatar
0 votes
2 answers
312 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: ...
user avatar
1 vote
1 answer
146 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 ...
user avatar
0 votes
1 answer
212 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 ...
user avatar
  • 80
1 vote
1 answer
188 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 ...
user avatar
  • 80
1 vote
1 answer
411 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....
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 ...
user avatar
0 votes
1 answer
1k 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:~$...
user avatar
0 votes
1 answer
41 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 ...
user avatar
2 votes
2 answers
723 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@...
user avatar
  • 56
1 vote
1 answer
410 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 ...
user avatar
0 votes
1 answer
96 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 ...
user avatar
2 votes
1 answer
82 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 ...
user avatar
  • 192
0 votes
0 answers
94 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 ...
user avatar
  • 1
1 vote
0 answers
479 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 ...
user avatar
  • 151
2 votes
1 answer
1k 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 ...
user avatar
0 votes
0 answers
80 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 ...
user avatar
  • 165
1 vote
2 answers
1k 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?
user avatar
  • 165
3 votes
0 answers
144 views

Linux Mint 19 Cinnamon - Hibernate doesn't save data

I recently dual-booted my Windows 10 machine with Linux Mint 19. When I realized that I couldn't hibernate my PC to switch into Windows without losing all my open windows, I did a quick Google search ...
user avatar
1 vote
1 answer
157 views

Want get rid of "fedora/swap"

I had changed my swap partition, and all is works. But when reboot, Fedora 29 jammed for a long time, and enter emergency mode. It seems wait for "/dev/fedora/swap", but here only "/dev/fedora00/swap" ...
user avatar
  • 143
0 votes
1 answer
92 views

Is it possible to use a partition for a paging file across multiple Unix distros and a Windows partition?

I have a Unix distro that has its own paging file, but I want to switch over to a partition so that it can be utilized by all three systems.
user avatar
0 votes
0 answers
106 views

Low free swap but nothing uses it

We've PostgreSQL 10.3 running on 7.4.1708. Yesterday, suddenly something claimed swap space about 2.2GB. I could find only few process and restarted them only got about 200MB. I've dropped ...
user avatar
2 votes
1 answer
710 views

Is it possible to swap 2 hard drives and keep OS running without formatting?

Recently I bought an SSD drive (Samsung Evo 860 250GB) and installed it in place of the DVD drive (SATA II 3.0Gb/s). I removed the DVD drive. Then I used Samsung Magician and copied the HDD drive to ...
user avatar
1 vote
2 answers
363 views

Extend linux root drive in Dual Boot OS

Any idea how to add the 31GB unallocated space to /dev/sda7? I disabled linux swap(swapoff) but still can't add the space or move it in the extended partition. I am running gparted from live usb. The ...
user avatar
0 votes
1 answer
163 views

Is there a performance gain for running a web browser and/or swap from SSD?

What's the bird's eye view of running a specific application from an SSD for improved i/o in comparison to a standard hard drive? Would this help with browser speed? The list of applications which ...
user avatar
  • 1,320
0 votes
0 answers
48 views

Asus S300C is blocked by abnormal disk business

I have been using my laptop ASUS S300C through various ages. Recently I am experiencing a continuous lagging functioning and not responding windows. It does not matter what OS I have installed (...
user avatar
  • 299

1
2 3 4 5
7