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
1answer
37 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 ...
0
votes
2answers
59 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: ...
1
vote
1answer
35 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 ...
0
votes
1answer
39 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 ...
0
votes
1answer
29 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 ...
1
vote
1answer
406 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....
0
votes
0answers
24 views

init-zram-swapping sets up less RAM than configured

My init-zram-swapping file looks like the following. #!/bin/sh # load dependency modules NRDEVICES=$(grep -c ^processor /proc/cpuinfo | sed 's/^0$/1/') if modinfo zram | grep -q ' zram_num_devices:' ...
0
votes
0answers
20 views

Configuring suspend to use a different swap partition

Question In a stock installation of Ubuntu 19.10, how can one configure the default suspend-to-disk behaviour to suspend to a specific swap partition (e.g. if one for some reason has multiple swap ...
0
votes
0answers
62 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 ...
0
votes
1answer
107 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:~$...
0
votes
1answer
33 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 ...
2
votes
2answers
368 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@...
1
vote
1answer
248 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 ...
0
votes
1answer
40 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 ...
0
votes
0answers
96 views

encrypted swap file with btrfs

Per Btrfs documentation: From kernel 5.0+ btrfs have native swap files support, but with some limitations. The archlinux Wiki, meanwhile, gives instructions for encrypting a swap partition, ...
2
votes
1answer
34 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 ...
0
votes
0answers
1k views

Is it possible to quickly swap left/right audio channels for speakers, on demand? (win10)

I have a need to sometimes switch left/right audio channels. Reason for this, is that I have TV with speakers right behind me, when I am at my PC. So when I am watching something on TV (via HDMI from ...
0
votes
0answers
58 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 ...
0
votes
0answers
182 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 ...
1
vote
1answer
599 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 ...
0
votes
0answers
43 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 ...
0
votes
2answers
153 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?
3
votes
0answers
120 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 ...
1
vote
1answer
117 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" ...
0
votes
1answer
42 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.
0
votes
0answers
66 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 ...
2
votes
1answer
176 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 ...
1
vote
2answers
169 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 ...
0
votes
1answer
50 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 ...
0
votes
0answers
40 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 (...
0
votes
0answers
378 views

Chrome doesn't use swap

I have written a single page application that gradually loads objects, and memory usage increases. At a certain point, Google Chrome shows an error page, and from the log I see [1:1:1210/224428....
0
votes
1answer
767 views

If I swap out a Bitlocker encrypted SSD to another one, then reintroduce the original SSD in the PC, will it require Bitlocker-unlocking to use?

I am wondering if it would be possible to take out a Bitlocker encrypted SSD from a PC, put in another one and use the PC, then swap the original drive back without it having to be Bitlocker unlocked. ...
0
votes
1answer
2k views

How can I remove a swap partition on FreeNAS?

I have a FreeNAS 11.1-U6 installation for testing purposes. It has two 500GB SSDs and one 4TB USB drive. I installed FreeNAS to ada0 (the first 500GB SSD) and set up a volume on da0 (the 4TB drive) ...
1
vote
0answers
601 views

Why is linux swap so slow

I am software developer, and every now and then I will accidentaly use up all the available RAM with one of my programs. The OS will helpfully swap-out everything else I may be using at the time (i.e. ...
0
votes
0answers
167 views

memory swap for a 128GB of ram job on 24GB of ram machine

Doing some work using machine learning I need to train a model for my language. Since they only provide english german and spanish they advise to take the wikipedia corpus and train the model with ...
0
votes
0answers
187 views

unexpected allocation request that exceeds 2GB error

I have a system with 32GB ram and 200GB of swap partition with Debian Linux (Jessie) and working with ABAQUS software to simulate complex phenomena. I've tested many test cases and they run without ...
3
votes
2answers
13k views

Is there any way to “Reset” or “Clear” windows paging file size which is managed by system?

Is there any way to "Reset" or "Clear" windows paging file size which is managed by system? In my case I have 16 gigs of ram installed and all paging file settings are set to auto. At some point in ...
1
vote
1answer
457 views

Change default swap disk in Centos7

We disabled older swap space (disk) that already mounted in /dev/mapper/centos-swap to increase size of the root(/). Then we create new swap file in /dev/sda3: # lsblk NAME MAJ:MIN RM ...
0
votes
2answers
258 views

Swap - One disk or multiple disks

Hi there internet hivemind! I have a EC2(t2-large) on AWS running Ubuntu. Due to high memory consumption I'm going to add about 8G of Swap. The machine has 4 disks, all of them with enough space. ...
2
votes
1answer
774 views

Linux without swap still starts thrashing

Debian 9.4, Linux 4.9 I sometimes compile something that hardly fits in the RAM, or a rouge process suddenly starts eating memory beyond what's available. When the process goes past the available RAM,...
3
votes
0answers
2k views

swapon failed: Invalid argument with ext4 swapfile and swap partition

I've tried enabling swap both on a swapfile (on ext4): # file /mnt/usb/swapfile /mnt/usb/swapfile: Linux/i386 swap file (new style), version 1 (4K pages), size 1023999 pages, no label, UUID=9dfaa27a-...
1
vote
1answer
395 views

Recovering a swap partition

I accidentally wrote data to my swap partition using dd. Both the swap partition and the intended medium for writing to are 16GB in size, and I got confused. My PC seems unable to use the swap ...
2
votes
1answer
293 views

Paging file and swap partition on a Ubuntu/Windows 7 dual boot

I'm planning hard drive partitions for my new laptop and I had a curious idea: Can the same partition be used to house both the paging file (windows) and the swap space (linux)? The reasoning ...
0
votes
1answer
588 views

Shrink swap partition significantly on SSD (Linux)

I allocated a huge amount of swap space (127G) for a system with 128G ram. I want to reclaim most of that space and make it available to my Linux file system. This is what GParted currently looks like:...
0
votes
0answers
41 views

Windows out of memory but swap almost empty

My Windows laptop with 8GB of memory often has over 95% memory usage and constantly gives me warnings that it is out of memory. I do have many programs at once in the background, but I would expect ...
1
vote
0answers
428 views

Linux Kernel configuring swapping parameters.

Linux may perform a swap out on the following occasions: By a kernel thread denoted as kswapd that is activated periodically whenever the number of free page frames falls below a predefined ...
6
votes
1answer
869 views

Linux hangs when it runs on out of memory

I am getting unexpected behaviour when my machine runs out of memory. I have a Intel i7-6700 with 32GB of RAM and I'm running Arch Linux with vanilla 4.14.8 kernel. I have a 32GB swap on a encrypted ...
2
votes
2answers
1k views

how to permanently disable swaps on Centos?

I've entered the following swapoff -a This only works until reboot. I'm not sure the best way to permanently disable swaps on Centos. Can anyone advise? thanks
0
votes
0answers
17 views

I have 8GB of Free RAM, Why am I SWAPing? [duplicate]

I have 16GB of RAM in my iMac, right now 8GB of RAM is used... and I have 2.31GB of SWAP... [ My question is, if there is 8GB of RAM still free, then why am I swapping?
-1
votes
1answer
55 views

Moving swap partition to External USB HD drive

I have created a swap partition in a USB external Hard Drive. And changed the /etc/fstab file accordingly. The problem is that after reboot, the system hangs and does not start. I am using Lubuntu 16....

1
2 3 4 5
7