Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
42 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....
1
vote
1answer
36 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
0answers
67 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) ...
0
votes
0answers
18 views

Programs using too much swap, unable to hibernate

I have a debian desktop with vm.swappiness set to 5. It has 8GB of ram, runs a very light window manager (i3), and has about 11GB of swap space. The only possibly resource intensive thing I run is ...
0
votes
0answers
53 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
85 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
77 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 ...
0
votes
0answers
489 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
66 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
62 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. ...
0
votes
1answer
247 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,...
0
votes
0answers
48 views

Confusion about swap space in HardenedBSD

I want to install HLint with cabal in HardenedBSD (cabal install HLint), but it's running some kind of memory error: cabal install HLint ... ghc: mmap 131072 bytes at 0x0: Operation not permitted I ...
2
votes
0answers
859 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
66 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
196 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
216 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
36 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
168 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 ...
4
votes
0answers
342 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
331 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
14 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
41 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....
0
votes
1answer
79 views

Windows is not booting & Ubuntu is running very slow 😭 , may be due to bad partitioning

have dual booted my lenovo laptop with Ubuntu 16.04 alongside Windows 10. I had no knowledge about partitioning at that time, so I left that task to Ubuntu thinking that it would do required tasks ...
-1
votes
1answer
38 views

From which memory do CPUs actually read data?

In accordance with my own understanding, for data to be processed by CPU, it should be placed in RAM, in the meantime CPUs themselves have cache memory, that is also used to access data. It's a pretty ...
0
votes
1answer
165 views

Linux - Use disk as RAM

I have a VM and in it a process that consumes a lot of memory (~200GB). Some sort of in-memory DB. I need to run it on a standard laptop and I cannot recompile it or see the code. I've added 256GB of ...
0
votes
0answers
465 views

Windows Subsystem for Linux swap space too large, Windows 10

I noticed my disk space has shrunk considerably. So I checked my bash on windows, running free -h command: total used free shared buff/cache available Mem: 7.9G ...
1
vote
1answer
867 views

Swap partition on USB Stick

I created an additional swap partition on my USB stick and enabled it using mkswap. I'd like to have it available upon next boot by adding it to /etc/fstab. But since it's an external USB stick that ...
0
votes
1answer
176 views

Using swap file instead of a partition

I just wondered while using a swap file instead of an dedicated partition seems to only have advantages, isn't a swap file is slower due to the filesystem's overhead like e.g. ext4's journaling?
1
vote
1answer
85 views

What happens when you mlock(2) memory that is already swapped?

Simple question, but I couldn't find an answer. If there's a page in memory that has already been swapped out to disk by the kernel, and then its owner process calls mlock(2) or VirtualLock on that ...
1
vote
3answers
101 views

Is it possible to change the GPU in HP G42-388TX?

I was just wondering if I could swap my GPU (AMD Radeon Mobility HD 5000 Series) with a better one. But I don't know whether the GPU is soldered on or not or is it possible to swap? I don't want to ...
1
vote
1answer
471 views

notepad++ How to swap two if and then statements

So i have some code to reform (1000 lines) and i want to go from this if $one=0 and $two=32 then $dist=1 if $one=0 and $two=15 then $dist=2 if $one=0 and $two=19 then $dist=3 to this if $one=0 and $...
2
votes
1answer
2k views

Swap memory on SSDs

Swap memory isn't very worth it in a HDD because of the low writing speed. However with the increasing popularity of SSD, and their faster writing/reading speeds, Does having a swap memory on a SSD ...
1
vote
0answers
596 views

Arch Linux suspend not working

I recently installed arch linux on my laptop, a Lenovo z50-70. If I close the lid, the computer does not suspend, instead the screen shuts down and when I lift the lid back up the screen turns on ...
1
vote
1answer
311 views

A scheme for swap space on a USB

I have recently bought a USB flash drive that I am going to use solely for swap partitions. I understand that swap files on flash media are likely to use up the number of write cycles rather quickly, ...
0
votes
1answer
342 views

Explain `fstab` swap syntax

Disk sda is SSD, while sdb is a conventional hard drive. # cat /proc/swaps Filename Type Size Used Priority /dev/sda1 ...
0
votes
1answer
1k views

vmware workstation player - run VM entirely out of RAM (do not allow swap space to be used)

As the title states I am running into an issue with vmware workstation player (version 12). HOST OS - Elementary 0.4 GUEST OS - Any, in this case rhel7 Swap Space - None (there's a dumb reason that ...
8
votes
2answers
11k views

Deleted a partition, now getting 'Gave up waiting for suspend/resume device' message during boot

I've recently deleted a partition around 8GB in size. This partition was located after the main partition, but seems to not be critical as I can still boot the OS and run all the applications. The ...
1
vote
0answers
224 views

Automatically move data from swap to ram once enough memory is free

Yes I know there are already questions that ask the same thing. But none of the answers actually answer the question. One common answer is "you don't need to be concerned aboput it, because swap ...
0
votes
1answer
787 views

My MacBookPro (Sierra) not using Swap memory though no RAM is left

Recently my mac started to work very slow and constantly freezing due to running out of memory. I thought that it's supposed to use ssd space once RAM is close to full, however, it's not using the ...
1
vote
4answers
912 views

Can I swap hard drive between two identical PCs and keep all installed programs and OS intact?

I have two Dell Precision T7600 desktop computers. I have all my programs installed on PC1 using Windows 10 OS. If I swap the hard drive, will all the installed programs, OS (Windows 10 and Ubuntu) as ...
1
vote
1answer
85 views

Is distributing load in a balanced way between swap partitions possible?

Let's say I have two swap partitions, /dev/sdb and /dev/sdc, where /dev/sdb is 4 times faster in terms of I/O than /dev/sdc. Is it possible to configure it in such way that when the OS decides that it ...
0
votes
0answers
100 views

Encrypting an Arch installation w/ suspending state

I'm trying to set up a fresh Arch install in a way similar to the Macbook I use for work. The Macbook is encrypted, and I want to recreate that encryption setup. I need to: - Fully encrypt the disk - ...
0
votes
2answers
768 views

Linux server swapping before memory is completely full

I expected all the RAM to be used before experience swapping, but I have this strange result in htop: Meaning that on my server with 24GB of RAM, my software swapped 1GB of memory to disk, when they ...
4
votes
0answers
826 views

Hibernation without swap enabled

My laptop has plenty of RAM and a SSD. To not wear out the SSD, I do not want to have swap be used ever. If a process ever uses so much RAM that it has to start using swap, then it clearly is ...
19
votes
1answer
1k views

How to stop a Linux process for later execution swapping-out its memory

I want to stop a long running process so it does not consume any CPU or physical memory resources, with the intention of resuming the same process in the future. I know the CPU part is achievable ...
1
vote
0answers
825 views

Why doesn't my Linux machine use swap?

I have a java application in a Tomcat application server that uses extreme amounts of memory - let's say 45GB. I have 32GB RAM + 32GB of Swap on my Ubuntu 16.04 64bit PC. I'm starting the application ...
0
votes
1answer
28 views

Map Linux and Swap partitions

I have parallel installations of ubuntu and elementary os. I want to be able to hibernate both of them so I created 2 swap partitions. Now how do i map the installations and swap partitions so that ...
29
votes
1answer
12k views

prevent system freeze/unresponsiveness due to swapping run away memory usage

If a process demands a lot of memory, the system moves all other process to the swap file. Including it seems, necessary processes like the X11 server or the terminal. So if a process keeps ...
0
votes
1answer
629 views

Safe to reduce swap size Kali Linux?

I recently dual booted my laptop with Windows 10 and Kali Linux. It was successful and both OS's work fine. My only mistake was making a 6Gb swap partition. I would like to know if it is safe to ...
0
votes
1answer
1k views

Linux swap slowing my system? [closed]

Can swap really slow the system because it uses the hard-disk as a RAM unit ? I have Fedora 24 (Gnome) here with 8 gigabytes of swap and 6 gigabytes of ram , but i am noticing a very bad conditional ...