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 partitions are called swap partitions.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

Installed Ubuntu 20.04 LTS on Samsung EVO 860 SSD

I replaced my HDD with Samsung EVO 860 SSD. I read suggestions that swap partitions should be disabled/removed in order to extend the life of the SSD. However, gparted does not show that I have a ...
0
votes
1answer
7 views

A dependency job for cryptsetup.target failed. See 'journalctl -xe' for details

I am trying to encrypt swap file in 20.04 post-installation (i successfully conducted home dir encryption). I have a swap file created, with an UUID, and these are my fstab: # /etc/fstab: static ...
0
votes
1answer
16 views

“cannot open /dev/mapper/cryptswap1: no such file or directory” no matter what I try when encrypting swap file!

I tried every trick in the book and I still can not encrypt the swap file. I always get the error: cannot open /dev/mapper/cryptswap1: No such file or directory So far, I tried creating the ...
1
vote
2answers
28 views

Partition Scheme for Dual boot on SSD with 16GB RAM

So I have a laptop with 16GB RAM, 240GB SSD (For system files) and 1TB HDD (For data/media files). I’m installing Ubuntu 20.04 alongside my Windows 10 (also on SSD). I have the following 4 questions: ...
0
votes
0answers
12 views

Changing Swap size on encrypted LVM? (kubuntu 20.04 installation)

I just installed kubuntu 20.04 but the swap size is way too small (~1GB). I used the encrypted LVM setup for a whole disk. How can I increase the swap size, since there is no space left? [edit] I ...
1
vote
0answers
22 views

How to fix swap file device timed out in LVM setup?

Fresh install of 20.04 boots normally, but I see this in syslog at every boot. It looks like no swap file is being allocated. How can I fix this? systemd-fsckd.service: Succeeded. dev-mapper-...
0
votes
1answer
7 views

How to switch Z and Y key in Serbo-Croatian (US)?

What file should i edit in /usr/share/X11/xkb/symbols/? Thanks!
0
votes
0answers
33 views

Ubuntu 18.04.3 doesn't boot after expanding disk space in Hyper-V

I ran into a problem with my disk space after I increased my swap size. I had 30GB disk space allocated to Ubuntu and I increased my swap size to 8GB which depleted all remaining disk space. After ...
0
votes
1answer
45 views

Deleting Swap File on VPS Server Using Ubuntu 18.04?

I followed the following guide to create a 1GB swap file on my 1GB RAM Ubuntu 18.04 VPS: https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-18-04 However after getting ...
15
votes
4answers
3k views

Is it necessary to have a /home and /swap partitions in 20.04

Is it necessary to have a /home partition in Ubuntu Desktop 20.04? I read somewhere about a home file in /root partition... Does the same go to the /swap partition? I have a SSD. So it is pretty fast ...
0
votes
1answer
36 views

system slows down after returning from sleep

I have a 2gb RAM / Atom Z3735F / Ubuntu 20.04 machine . My system slows down after waking up from a sleep . Putting CPU governor in performance mode didn't solve the issue . What i have noticed is ...
0
votes
0answers
63 views

Extending LVM Swap File

I just upgraded to 20.04 - full install - using LVM. I have 3 SSDs in box, and I wanted a 'single' storage area. I want to increase my Swap file size, but when I try to resize, system indicates no "...
0
votes
1answer
26 views

swap priority -2

Using Ubuntu 16.04. /proc/swaps indicates a priority of -2 ~$ cat /proc/swaps Filename Type Size Used Priority /dev/sdb3 partition 8263676 0 -2 I ...
1
vote
0answers
48 views

Do I need a swap partition (SSD) [closed]

Do I need a swap partition if I have a 16GB RAM. I have a SSD not a HDD in Ubuntu 20.04?
1
vote
1answer
54 views

Home and swap partition minimum size

What is the minimum size of the home partition and can I use a pre-used NTFS partition as the home partition?
0
votes
0answers
40 views

18.04: How to decrease the swap partition to increase the root partition?

I want to resize the swap partition which is approximately 15GB to like 8-9 GB so I can increase the size of my root partition. I am not even sure if that is possible but I need to install some ...
0
votes
2answers
174 views

I Have Problem with swap memory in ubuntu 20.04 LTS

My swap memory was 7.7 Gig and I change it to 10 Gig with gparted Now When I go into gparted it shows me that my swap is 10 gig but in gnome system monitor shows it 2 gig and in htop and top just ...
0
votes
0answers
37 views

Encrypted swap causes timeouts at shutdown

Ubuntu 16.04.6 - shutdown takes 1/2 hour. I suspect my encrypted swap: walt@bat:~(0)$ swapon NAME TYPE SIZE USED PRIO /dev/dm-0 partition 11.2G 3.8G -2 walt@bat:~(0)$ grep swap /etc/...
0
votes
0answers
55 views

Suspend to RAM / Hibernate/Suspend to disk (generic and up to date)

I found here different articles that covers this topic. The problem of this - none of them seems to be generic and/or covers all parts or handles recent ubuntu version. I would like that you don't ...
0
votes
0answers
31 views

Dell XPS 13 2015 Freezes and Fans start getting loud

I've been working with Ubuntu 18.04 for a while, I have a Dell XPS 13 (2015). Consistently, when I work and open a few Firefox tabs and a couple of pdf files, my laptop fans suddenly become very loud ...
1
vote
2answers
100 views

Swapfile size is 2G. What would be the best size to allocate to it?

This is a followup question to my original question related to the Ubuntu 19.10 freeze where I had to restart the machine every time. I looked up at my swapfile and it is of 2G size. I do have a 16G ...
1
vote
1answer
63 views

Ubuntu installation help related to swap area

I am going to install ubuntu 18.4 (dual booting with windows). I currently have 4GB RAM. I am going to add 8GB RAM the next month or so. so while I am installing ubuntu how much swap area should I use....
1
vote
0answers
69 views

Ultra high page cache usage potentially triggering kswapd0?

I have been running into a serious problem with my ubunutu 18.04 server. I started noticing that there were serious slowdowns in the server and when I checked, CPU usage was all maxed to 100%. I began ...
0
votes
0answers
30 views

Amount of swapfile being used too little

i created a swapfile of 8GB on my Ubuntu 18.04 LTS, but only 126Mb is being used, is this enough of does this mean it isn't being used i have 4gb RAM total used free shared buff/...
0
votes
0answers
17 views

Find out what application or process uses swap

Lately my Ubuntu desktop started swapping, but only sometimes. I am curious, what applications or processes started using the swap. I have more than enough memory and still some process needed to use ...
0
votes
1answer
279 views

CPU 100% with kswapd0 process, although no swap is needed

I have this small virtual server (1GB RAM, 1 vcore), which served me well untill it suddenly started reporting 100% CPU usage because of kswapd0. Memory consumption is between 50% and 60%. I've set ...
0
votes
0answers
12 views

Is it possible to decrease swap space size in ubuntu [duplicate]

My laptop have 8GB ram. Unfortunately, I make swap space 16GB. Now I want to decrease it. Please help me. Thank you.
1
vote
0answers
79 views

How to troubleshoot slow booting problem in Ubuntu 19.10?

Before installing Ubuntu on my 64GB USB2.0 flash drive i did some research on partition schemes. Most of the websites recommended 2GB-8GB for root(/) partition . But,to play on the safe side i set ...
0
votes
1answer
27 views

Increase swap space

I have a ubuntu 16.04 and installed gparted on it and I wonder how I can increase the swap space in my case shown in the below screenshot?
2
votes
1answer
82 views

How to mount and swap storage

I got a Linux machine of 1TB. The storage structure is like this: /dev/xvda1 9.8G 1.9G 7.8G 20% /. tmpfs 30G 0 30G 0% /dev/shm. /dev/nvme0n1 1.8T ...
1
vote
1answer
40 views

Ubuntu seizes up after using VOIP

I run Ubuntu 18.04 on a Lenovo ThinkPad. Lately I've started using VoiP capable apps like Zoom and Microsoft Teams. They sometimes (more than 50% of the incidents) cause my GUI to freeze up. I still ...
0
votes
1answer
52 views

Deactivating swap error on shutdown

I randomly get deactivating Swap error on shutdown.My swap partition is on an ATA disk in an usb enclosure and connected to the laptop via usb.Its always mounted on boot and there is no problem with ...
0
votes
0answers
31 views

How do I change the swappiness settings in Kubuntu Desktop [duplicate]

I just installed Kubuntu Desktop and I am using an SSD drive. When I check the swappiness settings in the terminal typing cat /proc/sys/vm/swappiness I get 60 as result and I want to reduce this ...
0
votes
1answer
129 views

Kernel bug swap

Ubuntu 18 bugged and I noticed this messages in my /var/log/syslog file: I often have issues with the swap, the kswapd0 process running and taking a lot of CPU. What can I do to prevents all these ...
1
vote
1answer
220 views

19.10: A swap problem related to crypttab and updating

I updated last night as seen in my logs. Start-Date: 2020-03-16 13:56:51 Commandline: apt upgrade Requested-By: logan (1001) Install: linux-image-5.3.0-42-generic:amd64 (5.3.0-42.34, automatic), ...
0
votes
1answer
70 views

Ubuntu slow boot after swap removing

Recently my Ubuntu 18.04 is booting slowly. I deleted a swap are which is inside another HDD drive from the "Disks" in menu, then treats and boots normally, up to now. Now, every time I boot my ...
1
vote
1answer
75 views

18.04: How to disable swap memory? fstab shows no swap; where does it load from, and how to disable it?

cat /etc/fstab LABEL=cloudimg-rootfs / ext4 defaults 0 0 #LABEL=UEFI /boot/efi vfat defaults 0 0 df -h Filesystem Size Used Avail Use% Mounted on udev ...
0
votes
0answers
12 views

why my swapfile did not get mount from time to time?

I put my swapfile on an encrypted disk: /dev/mapper/encrypted-disk /data auto defaults,x-systemd.automount,x-systemd.mount-timeout=1min,x-systemd.device-timeout=1min 0 2 /data/swapfile swap swap sw ...
1
vote
0answers
30 views

Encrypting swap partition during install?

I manually made the partitions for a Xubuntu install, but see no option to encrypt the swap partition. Is there such a option? The suggested duplicate question is not about encrypting swap during ...
0
votes
2answers
37 views

How to disable swapfile only for specific actions?

When I copy a big file in ubuntu 18.04.4, ubuntu lags and the whole system gets slower. I searched for this issue and one solution was here. But it didn't worked for me. Then I found the second ...
0
votes
1answer
56 views

Can I have temporary swap space greater than 2x RAM?

I have 8G RAM. I know how to create and use a temporary swapfile. I need to have ~30G of memory to run a pandas computation, but everywhere I check the recommended upper limit of swap file seems to be ...
0
votes
0answers
125 views

Changed Swappiness to 5 but no effect, Ubuntu still swaps when 60% ram is used

In sysctl.conf file I have put vm.swappiness = 10 at the end of the file and saved it as root. And then rebooted my pc; But even then Ubuntu swaps when 60% of my ram is used when it is actually ...
0
votes
0answers
32 views

kswapd0 slows down the system a lot

I feel like it started recently (last 3 months). I have Ubuntu 18.04 LTS on Dell XPS i7 with 16 GB RAM. Linux 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 ...
4
votes
3answers
981 views

Ubuntu 18.04: Is dynamic swap space sizing practical? Running out of memory crashed Ubuntu

My Ubuntu 18.04 (Bionic Beaver) installation crashed because of a problem with out of memory. I have messages like this: Jan 31 16:56:53 adam-Lenovo-YOGA-720-15IKB kernel: [47980.843963] oom-kill:...
3
votes
1answer
401 views

Can I have a swapfile on btrfs?

Modern Ubuntu versions are using a swap file instead of a swap partition by default. Before the 5.0 Linux kernel it was not possible to place a swap file on a btrfs partition, btrfs file system could ...
0
votes
1answer
113 views

Ubuntu 19.10 thrashing frequently with browser activity

I am running Ubuntu 19.10 on both a desktop and a laptop and they seem to have the same problem. My kernel is 5.3.0-26-generic My sysctl.conf swap settings are vm.swappiness=10 vm....
0
votes
1answer
83 views

swapon --show is empty

I was given a VM to use for a class, and it was far too small. I extended the main HD by 100 GB to give me some breathing room. In the process, I had to remove and re-add the swap partition. The ...
2
votes
2answers
334 views

Can't increase swap size: the swapfile appears to have holes

Edit: I gave up to struggle with 19.10. Due to my research it has serious bugs especially with 5.3 kernel. Too much people have same issues and there is not only one solution that won't work for me. I ...
0
votes
0answers
76 views

Ubuntu 18.04.3 Preseed LVM SWAP Problem

I can not get SWAP Configured properly with percentage ranges (%) I've try all the combinations that I can image, in despite of this none of them have succed. With debian 10 the preseed configurations ...
0
votes
0answers
35 views

Partitions multiplied after 19.10 fresh install

so just reinstalled Ubuntu 19.10 desktop from the new 'Live CD', and chose the ZFS option which in all fairness I think I've also done differently in the past, but I've now got some new funky ...

1
2 3 4 5
23