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]

Unix systems, and other Unix-like operating systems, use the term "swap" to describe both the act of moving memory pages between RAM and disk, and the region of a disk the pages are stored on. In some of those systems, it is common to use a separate whole partition of a hard disk for swapping. These ...

0
votes
1answer
21 views

How to increase swap size when there is already a partition existing [duplicate]

~$ sudo swapon --show gives me this NAME TYPE SIZE USED PRIO /dev/sda5 partition 976M 0B -2 I want to increase my swap size. Is there a way to increase this or do I have to create a ...
1
vote
1answer
28 views

How can I limit page cache/buffer size

My problem is this: My laptop has a relatively slow disk subsystem (amd I'm not going to buy a better one) and I backup my system using rsync which works well for me. However, during the backup ...
4
votes
2answers
2k views

It is safe to have a swap partition on the SSD? [duplicate]

As I'm planning to buy an SSD and replace my old mechanical hard drive, I've heard rumors that having swap partition can decrease the life of SSD. So is this true? Or can I still have a swap partition ...
1
vote
0answers
63 views

Ubuntu 18.04 doesn't use swap, but whet it does it freezes

My ubuntu 18.04 64bit isn't using the swap file/partition to the point when the 8gigs(of which 7.3 are usable) of ram almost fills up, and when it does, and actually writes some things in swap it ...
0
votes
0answers
61 views

Ubuntu 18.04.1 can't boot (emergency mode)

After shutting down the PC too many times while the kernel is loading my Ubuntu 18.04.1 doesn't boot anymore, it falls into emergency mode the grub wasn't showing before: The screen after I select ...
0
votes
1answer
45 views

Ubuntu 16.04, I need to increase swap space? [duplicate]

Ubuntu 16.04 16GB RAM. How can i increase swap memory in my case? And how many GB i have to add?
2
votes
1answer
76 views

Slow Boot Time UBUNTU 18.04

Ever since I increased disk space on UBUNTU 18.04, the booting time has increased manifolds.I created new swap partition. As pointed out by other answers for similar question, I have Updated the UUID ...
0
votes
0answers
23 views

Overwriten GRUB partition

I have a following issue : http://paste.ubuntu.com/p/7YBzbVhhZw/ I have probably made swap on sda1 partition, where had been bootloader and it is not working anymore. I cannot manage this by any ...
1
vote
0answers
36 views

Ubuntu 16.04 use all swap instead of free memory

I have 128GB of memory but Ubuntu 16.04 seems to use all swap space instead of using 55GB free memory. So of course the load goes to the moon. Could someone help?
0
votes
0answers
30 views

how to activate swap

I have a 16gb card in my laptop running Lubuntu 18.04, which is formatted as swap. when I click on activate partition in Disks I get this error: while the partition is recognized as swap by the app
0
votes
1answer
28 views

Updated to 18.04 and need help [duplicate]

I ran swapon --show and its showing /swapfile 4gb used O /dev/sda6 partition 3.8gb used 0 My original swap partition was on sda5 and moved it to sda6 a while ago. How do I manage this? Do I remove ...
1
vote
0answers
75 views

Unable to Hibernate: Swap header not found

I hadn't allocated any swap partition while installing ubuntu before so I couldn't hibernate my laptop which gave error: couldn't find swap device,try swapon. I then created a swap partition using ...
1
vote
0answers
21 views

How can I use SATA hot plugging in Ubuntu 16.04 on an Intel NUC NUC7i7DN board?

If I attach a SATA drive to the NUC(NUC7i7DN) after booting into Ubuntu 16.04, the drive is not recognised. Nothing shows up with lsblk or dmesg. If I restart, the drive shows up. Additionally, I am ...
0
votes
0answers
27 views

Wine 3.0 asking for more virtual free swap

Good afternoon, Wine 3.0 (32 and 64 bit) installed successfully from Ubuntu repository using Synaptic Package Manager. System Lubuntu 18.04 Den-Linux-MS-7252:~$ free -h total ...
1
vote
0answers
67 views

Any swap usage causes system wide freeze, 18.04

My question is exactly the same as Any swap usage causes system wide freeze, only in 18.04. But nobody answered that one ... When I play particularly graphic intensive games, some (variable) short ...
0
votes
0answers
30 views

Cannot increase size of swap partition under lvm

I'm running Ubuntu 18.04, and the installation uses LVM. The partitions were automatically setup, with swap only getting 976 MiB. I decided to increase the partition size using the method here: how to ...
0
votes
1answer
112 views

Ubuntu 18.04 - Swap space not used, Gnome freezing

I have an issue with my swap space. It is always empty even when it should be used. In the screenshot below, you can that my RAM is half full, and the remaining RAM is full with cache and buffer. ...
1
vote
1answer
90 views

Hibernate not working in 18.04

When I use the command sudo systemctl hibernate, the system seems to go to hibernation, but when restarted, it is a fresh start without any of the previous windows that were left open. And when I ...
0
votes
1answer
61 views

partman-auto/expert_recipe with swap calculation during preseed

I can't find any useful information regarding swap calculation for partman and I've also tried partitioning with the below schema with no success, hopefully, you may be able to help me here. I'm ...
0
votes
3answers
56 views

Dual boot with Win10 Legacy - SSD/HDD - Swap Partition

Trying to install ubuntu 16.04 /boot folder on SSD and /home on HDD while creating swap partition of 16gb (default=RAM?). Win10 is installed on the SSD while all other files are saved on the HDD. (~...
0
votes
1answer
173 views

How should I set up swap encryption on 18.04? [duplicate]

Things change over time. The latest question I found on this topic was from 2014 and appears to refer to 14.04. We are running 18.04 server. What is the current way to setup swap encryption? Is the ...
2
votes
1answer
143 views

vm.swappiness does not apply to tmpfs, Ubuntu Server 16.04.5

Need for some expert advise has brought me here. Observation: OS locks up during high RAM usage, very low swap usage (plenty available), high tmpfs usage. My setup: Ubuntu Server 16.04.5 with ...
2
votes
2answers
93 views

Not sure my swap is being used

I'm having problems trying to squeeze a bit more life from my aging desktop to teach my grandson a bit of coding. The machine was drastically slowing down to the point of unusable for 30 seconds at a ...
0
votes
0answers
114 views

Ubuntu 18.04 takes long time to boot

I have a dual boot system (Windows 10 + Ubuntu 18.04). Here is the output of systemd-analyze time: Startup finished in 6.590s (kernel) + 57.125s (userspace) = 1min 3.715s graphical.target reached ...
0
votes
1answer
90 views

System almost freezes when memory full

I have tested with zram or physical swap on SSD. When memory usage is very high, for example a memory leak, the system starts to swap. At this moment, top shows 10% IO wait, 20% CPU per kswapd. But ...
2
votes
1answer
59 views

Transfer to swap the memory data of idle software running in background while keeping in RAM only active ones?

While running 5-6 programs at the same time (Browser, Virtual Machines, Terminal, Text Editor, File Explorer), some of them from time to time (let's say every 15 minutes) are inactive/idle (not ...
1
vote
2answers
111 views

dphys-swapfile will not calculate greater than 2GB swap file

The dynamic swap file program dphys-swapfile (available from apt) doesn't reconfigure when changing the configuration in /etc/dphys-swapfile. Basically I removed the comment '#' and changed the value ...
1
vote
0answers
77 views

Hibernate with swap smaller than RAM [duplicate]

I'm running Ubuntu 18.04.1 LTS release. I cannot hibernate ubuntu properly. After turning the computer on, the computer does a full restart, as if it didn't know I did a hibernate. I used sudo ...
1
vote
0answers
138 views

Ubuntu 18.04.1 performance issue [closed]

I started using Ubuntu from Ubuntu 14.04. Then I installed Ubuntu 16.04. Till now I was loving this operating system, but since I installed Ubuntu 18.04, using Ubuntu has become a nightmare for me. I ...
1
vote
2answers
194 views

Problem with swap in ubuntu 18.04

I have Ubuntu 18.04 installed on my PC which having 8GB total memory and I allowed 2GB swap space when installing Ubuntu. When in normal operation it uses about 2GB from main memory and zero of swap. ...
1
vote
1answer
46 views

Swap not mounted at boot (UUID is correct)

I can't get swap to mount automatically at boot. Ubuntu 16.04. I've read many articles/forums, generally everyone points to an incorrect UUID. My UUID is 100% correct. I have also tried mounting ...
0
votes
2answers
57 views

How can I secure an unencrypted swap parition?

Clearly this is an issue and likely it has a solution which might be: This is not required because... This is impractical because... [2 passwords on suspend, for example] Oh. Yeah, we fixed that in ...
0
votes
0answers
145 views

ubuntu running out of memory

I recently switched to Ubuntu 18.04 (from win 10) and am really starting to like it apart from my problem (and a very annoying bug when transferring files). My system has a i3 processor and 4GB ram, ...
0
votes
1answer
74 views

Ubuntu freezes when compiling software

I have a Xubunut16.04 install with 16GB RAM and a 20GB enrypted Swap. When I start a large compilation with configure make -j in a terminal, I can see in the panel load monitor all cores go to ...
0
votes
0answers
12 views

Recover partition allocated for readyboost as a swap partition [duplicate]

I followed this tutorial and made a USB formatted as NTFS to the swap to use as a readyboost with Linux. But now I want to recover back to my NTFS file or even the data on the USB. How can I roll ...
0
votes
0answers
39 views

Hibernation is causing laptop to shutdown

I managed to increase my swapfile to 16GB because i want to hibernate my laptop. I tried with sudo systemctl hibernate but it's not working. The laptop is shutting down.
5
votes
2answers
2k views

How do I increase swapfile in Ubuntu 18.04?

I have laptop with 8 GB RAM and 1TB HDD. I have swapfile which is 2 GB (Ubuntu 18.04 uses a swapfile instead of a separate swap partition by default) and I want to increase it to use hibernation. I ...
0
votes
0answers
28 views

Any swap usage causes system wide freeze

Here is my system, through the prism of htop: Lots of swap defined. It's the desktop version of Ubuntu 16.04 btw. On this particular machine, any spilling over of memory to swap will cause a very ...
0
votes
0answers
60 views

Resize disk to Install windows 10 alongside Ubuntu

I have Ubuntu 16.04 running on below disk and I want to install Windows 10 alongside it My understanding is that the overall process should be: Resize my disk to make space for Windows 10 Install ...
2
votes
1answer
56 views

After restarting, swap becomes 0 gb

I used a live USB to increase the size allocated to Ubuntu. Now I am on my OS. I increased the swap from 8 GB to 11 GB, but now I can't see it is used. $ sudo lsblk [sudo] password for ...
0
votes
3answers
210 views

Can I change location of swapfile?

I have a 240 GB SSD and 1 TB 5400 rpm HDD. Planning to install 18.04 on SSD and use HDD as /home. My concern is whether to put swap file on SSD or HDD. I have 8 GB RAM and will use 16 GB swap file. Do ...
0
votes
2answers
196 views

read-error on swap-device Ubuntu 18.04

I'm using a Kingston USB 14GB as a swap area on Linux Ubuntu 18.04, and today the system crush and throw a message " read-error on swap-device " , and the screen turn black, I tried to switch between ...
0
votes
0answers
64 views

Separate file for hibernation? Why use swap? [duplicate]

Why have one file, the swap file, with 2 purposes: a swap file that serves the purpose for both providing some extra memory for apps (swap) and also for storing the state of the entire system (...
1
vote
0answers
42 views

Convert swap partition to a file

I have an updated desktop, to work with office/internet and some virtual machines. I have a: MSI Z370-A Pro Samsung SSD 970 EVO PCI-E NVMe M.2 500 GB G.Skill Ripjaws V DDR4 3200 PC4-25600 16GB 2x8GB ...
0
votes
2answers
282 views

Swap partition size for 32GB RAM [duplicate]

Currently I have laptop with 16GB of RAM and 512GB SSD. I always use "full encrypted disk" option in installation creator which automatically create 16GB swap partition. Now I want to buy laptop with ...
0
votes
0answers
28 views

What is filling up my swap?

This is a laptop. I booted the machine up left, didnt open anything came back the next day and my 2 gig swapfile was full up to 1.8gig. Now this is a 16 gig machine and the allocated memory was 1.1 ...
1
vote
0answers
80 views

Ubuntu OS on SSD and swap on HDD

I'm planning to install a SSD in the CD-drive of my laptop. After this install i will be left with a 500 GB HDD and a 120 GB SSD . I would like to reinstall Ubuntu 18.04.1 on the SSD and install the ...
0
votes
0answers
41 views

low disk space due to its usage as tmpfs

I have ran a program and i just entered wrong dimensions (100 times larger) so it took all my disk space and even then it didnot ran and hang the system for 5 minutes. Now when I restared my system it ...
1
vote
1answer
806 views

Increasing the Swap Space on Ubuntu [duplicate]

My Swap space is currently set to 2 GB. How do I increase it? Also I'm running with an SSD and have 16GB of RAM. What is the Max Memory I can set the swap file to?
0
votes
0answers
143 views

How to remove systemd targets?

I have installed a Ubuntu 18.04 with manual disk partitioning as simple as it gets (one primary partition with ext4 filesystem, mount point "/", reserved blocks 0%, bootable flag on, no swap!). I ...