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

add linux swap partition without harming existing data on the hard drive

I installed Ubuntu 20.04 using a bootable USB and followed the instructions. I noticed after installation that I only have a 2GB swapfile which is mounted under root directory(/). I want to separately ...
0
votes
1answer
71 views

Ubuntu 20.04 crashes when SWAP activates. Should I return my laptop?

I made the question like this because I am also looking for some general advice, besides possibly a technical solution to this problem. Just browsing with firefox (opening a million tabs), the ...
0
votes
1answer
58 views

high RAM usage on ubuntu desktop

I'm using an Ubuntu desktop 20.04 LTS. I'm not running any concurrent applications at the time. and I'm using R and python and a jupyter notebook in my computer. today while running jupyter notebook I ...
0
votes
0answers
21 views

Extending system(root) partition

I want to add unallocated space to my root partition (on the left), however the swap partition and my main partition are in the way, I'm unsure of what to do next, do I move the unallocated space to ...
0
votes
1answer
39 views

How do i change to boot from host partition?

I am currently partitioning my disk for LFS build while my host system being Ubuntu 20.04 LTS. After I finished with the partitioning, I rearranged partitions with gdsik /dev/sdb command followed by ...
0
votes
0answers
17 views

what is ideal swap size for a process?

Context: My process is almost hogging all 16 GB of available memory When I check for swap size it is increasing to 6GB then decreasing 3GB and stabilizing to 3GB Swap size trend for one hour 1 GB, 2 ...
0
votes
1answer
120 views

Slow boot possibly related to firmware

For the past few months booting my system (Windows-Ubuntu dual boot) has taken way too long (~3 min). I'm trying to fix it right now and I'm having very little luck. The symptoms From turning on the ...
0
votes
2answers
30 views

Encrypting root partition with included swapfile

I want to encrypt my Ubuntu root partition. This partition currently includes the /boot folder, the swapfile and my home folder (let's call this partition sda9). I found a solution to move my /root ...
1
vote
0answers
21 views

Xubuntu 18.04: Letters became boxes after increasing swap size

Turns out my root was on a separate disk with only a few gigs available. I accidentally made the swap fill nearly all of it by following this: https://bogdancornianu.com/change-swap-size-in-ubuntu/ ...
0
votes
0answers
24 views

Swap file not activated on startup on Ubuntu 20.04

I have created swapfile at /swapfile and add following line to /etc/fstab (according to SwapFaq): /swapfile none swap sw 0 0 When I try to activate it ...
0
votes
1answer
17 views

Ubuntu swap ctrl with alt wirless keyboard - big problem after reboot

i have problem with my keys swap. I'm using "gnome-tweak-tool" tool and everything is good. Keys are working properly. Problem is when my keyboard is going offline or after laptop reboot. I ...
0
votes
0answers
18 views

Ubnutu 20.04 keeps closing VScode when the ram usage is high

Ubuntu 20.04 keeps closing VScode when the ram usage is high. But, I have another 1GB of free ram (My laptop is with 16GB ram). The swap file size is also 16GB. And when this happens swap file usage ...
0
votes
1answer
25 views

Is there a way to block the use of swap memory for a specific program?

I'm trying to maximize the performance of a game, and if it access to the swap memory the fps drops. Is there a way to "block" the swap memory for a specific program? For the moment i reduce ...
0
votes
0answers
31 views

Ubuntu 20.04 Hibernation not working with luks

I configured hibernation in Ubuntu with a swap file which works only when I use the command sudo systemctl hibernate, but when the system is shut down or restarted, at startup the kernel wait for the ...
0
votes
1answer
33 views

Cleaning up swap issues on Ubuntu Server 20.10

Question spawned from a previous question found here: Very long startup time on Ubuntu Server (network configuration) I have two swap partitions mounted in my fstab which seems odd. I'm guessing it's ...
0
votes
1answer
89 views

Swap file hard disk it appears to have holes

guys i need to enable swap on my ubuntu system and i want to avoid swap on SSD or format my hard disk that doesn't contain the swap partition. So i was trying to create a file swap and use it but, ...
0
votes
0answers
19 views

Screen locking inappropriately and making it impossible to relog in

I have disabled the automatic screen locking feature, since I don't want my programs to be interrupted, and I turn off my monitors when I'm not using them anyways. Yet, recently, for some reason, the ...
1
vote
0answers
26 views

On a desktop with 16 GB swap is being used slowly to eventually fill up and then system frozes

I Installed Ubuntu 20.04 some days ago, on a system with a 500GB SSD and 16GB of ram. It runs incredibely fast. I used mainly for web development with docker and 2 browsers opened. After 2 - 3 days ...
0
votes
0answers
30 views

Increase swap partition size [duplicate]

Error on hibernate "not enough swap space for hibernate". swapon -s reports Filename Type Size Used Priority /dev/dm-1 partition 1003516 240388 -2 ...
1
vote
1answer
60 views

File size of [swapfile] is 0, but swapon shows I have swap

I am looking to enable hibernation on Ubuntu 18.04. I'd like to know if my swapfile exists and is being recognized as a swapfile. Not sure if I have swap, or if one part of the system does not ...
1
vote
1answer
46 views

Ubuntu create swap automatically even I have no swap partition setup?

I was preparing the servers for setup a Kubernetes cluster, based on the official document, You MUST disable swap in order for the kubelet to work properly Ref here. So I did not create a swap ...
0
votes
2answers
72 views

Ubuntu not recognizing all swap space

I have issue regarding my swap size. When I issue htop I get this output showing that I only have 2 GB of swap space: Also when I check system monitor: But, If I check the swap partition using ...
0
votes
1answer
49 views

Why is my swapfile not getting automatically mounted?

I always have to manually activate the swapfile after boot. What's wrong? Here is my /etc/fstab: # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique ...
0
votes
1answer
87 views

How to move Linux Swap Partition - GParted

I have a dual boot machine with Windows 10 and Ubuntu 16.04 LTS. I want to alocate my space to my home partition but I have to move my Linux Swap Partition. How can I do it? Here are my partitions ...
0
votes
1answer
115 views

How much swappiness I need with 4GB ram [closed]

I am a bit confused because everyone says to reduce the swappiness to about 10; but if I have only 4GB RAM than how much swappiness would be the best? and also If I had 8 and 16GB ram? and also I am ...
0
votes
1answer
93 views

Is the long freeze-up normal on 18.04 and ThinkPad R61 after memory swapping starts?

I have the Lenovo R61 Thinkpad with Ubuntu 18.04. It has 4GB memory, Samsung SSD 860 EVO 500GB with 9GBs swap partition, Core™2 Duo CPU T7500 @ 2.20GHz × 2 and Intel® 965GM (CL) graphics. Soon after I ...
0
votes
1answer
69 views

Error creating Swap File. Ubuntu 18.04

Please be gentle with me, I am a noob and will need simple explanations. I wanted to increase swap file size, but encountering some weird behavior. Full story - I had 2G and wanted to allocate more ...
0
votes
1answer
32 views

Swap being consumed despite ram being empty

I was heavy tasking a while ago which probably lead to swap being used, probably the first time. But now there is still data in swap even though ram is free.
2
votes
1answer
133 views

Out of memory: Killed process

i got Out of memory: Killed process 24502 (python) total-vm:19568804kB, anon-rss:14542148kB, file-rss:4kB, shmem-rss:0kB, UID:1000 pgtables:31232kB oom_score_adj:0 used this command dmesg how can I ...
0
votes
0answers
113 views

Swap Fn and Left Ctrl for External Keyboard

I'm using a thinkpad external keyboard with my laptop. The laptop has the left ctrl on the very corner of the keyboard. But on the external keyboard, it's swapped with Fn. This is quite irritating ...
0
votes
1answer
53 views

Can I use my swap memory to increase storage for Ubuntu 20.04? [duplicate]

I have accidentally (well actually carelessly) provided 11gb swap memory for my dual boot Ubuntu 20.04 installation with Windows 10. I have allocated 25gb to the root partition, which I would like to ...
0
votes
0answers
166 views

sudo systemctl hibernate shows error 'Failed to hibernate system via logind: Not enough swap space for hibernation'

I found so many others asking very similar questions to this. But I tried almost all of the solutions but it doesn't seem to be working for me. When I enter sudo systemctl hibernate it gives me this ...
0
votes
1answer
57 views

Change and increase default swap file location

Good day! Would like to change my VM Ubuntu Desktop Server 20.04 swap file location and increase it to certain degree, if possible 100GB of swap? Is there a way to connect my VM (virtualbox) ubuntu to ...
0
votes
0answers
47 views

Swapfile not being used and read-error crashes Ubuntu 20.04

After making my swapfile large enough to finally make my hibernation run I noticed it was barely used no matter how much swapiness I set. I didn't think anything of it. Fast forward half a year and ...
-2
votes
2answers
134 views

Partitioning disk to install Ubuntu

I tried to install Ubuntu without doing any research and I ended up formatting the whole disk, losing all my data, just to have a gpt partition table. Now I am not afraid of making mistakes because I ...
-2
votes
1answer
79 views

Swap size on ubuntu server [closed]

I manage a VPS and I was surprised that there are less than 200Mo of SWAP for 4Go RAM, and all swap memory seems used (Swap usage: 100% at ssh login) After searches, I found answers like 62073, useful ...
1
vote
0answers
74 views

20.04 Setting up hibernation with full disk encryption

I recently installed 20.04 with full disk encryption and wanted to setup my laptop to allow hibernation. I followed this guide on the matter, and this didn't work. Then I found this entry on the ...
0
votes
1answer
47 views

Ubuntu 20.04 cannot keep apps open after resume

Recently i installed Ubuntu 20.04 on my Asus n550jk laptop. And I have an issue. When I suspend my laptop, it seems to work, because it will turn on when I open the lid or press any key, but apps that ...
0
votes
0answers
39 views

What is the minimum space needed for Ubuntu 16.04LTS 32bit? Do I need a linux swap also? [duplicate]

I am severely limited on my main hdd, as /dev/sda1 (windows 7) is 59.51gib with a 2gib linux swap, and a 13gib /dev/sda2 ext4 where I had an installation of Arch 32. Is it possible install Ubuntu 16....
0
votes
1answer
104 views

Hibernate without swap partition

I am using ubuntu 20.04 on a machine with 16G RAM and 1T SSD. I used to have a swap partition of 20G and know how to hibernate with swap partition. But I found the partition never used in normal time. ...
2
votes
1answer
94 views

How do I make Ubuntu use a new Swap partition?

When I rearranged the partitions on my SSD, I stupidly deleted the swap partition and made a new one at another place instead of copying it and deleting the original. Now my Ubuntu probably doesn't ...
0
votes
0answers
72 views

Ubuntu 20.04 Hibernate logging me out and doesn't work

I am new here and I switched from Win10 to Ubuntu a couple of days ago. I am having an issue with Ubuntu. I am unable to hibernate using sudo systemctl hibernate,sudo hibernate or sudo pm-hibernate . ...
0
votes
1answer
48 views

Merge root partition with unallocated space [duplicate]

The root partition space in my Ubuntu 18.04 LTS is almost exhausted, so I want to extend this partition. This is a picture from :Gparted output. I want to merge the /dev/sda8 partition with the ...
0
votes
0answers
84 views

Ubuntu 20.04 - system cannot hibernate despite dealing with swapfile

General description I want to switch from Windows to Linux, but there is one issue which doesn't allow me to use my Ubuntu 20.04 fully. I don't know how to make my computer hibernate. As I already ...
0
votes
1answer
466 views

Update stuck with update-initramfs

I have an Ubuntu 20.04.1 with an AMD 64bit machine and I am going clueless now over an issue. The software updater was as usual asking for the upgrades and I clicked that damn 'yes'. It seems to be ...
1
vote
1answer
32 views

No Unallocated Space Visible After Shrinking Partition (GParted)

I know there are a lot of questions concerning resizing partitions with GParted, but none of them seem to address the problem I'm having. I have two hard drives, one of which is a 2 TB HDD attached ...
0
votes
0answers
14 views

Ubuntu 16.04 update to 18.04 Running sluggish

I installed you ubuntu 16.04 from an iso which I had installed on ventoy which is a multi live usb stick which I can have like 20 live iso’s on if I want its easier to hop if thats what im doing, but ...
6
votes
2answers
558 views

Where is resume file?

Why don't I have a resume file in the path: /etc/initramfs-tools/conf.d? Shouldn't there be in this path? I'm using Ubuntu 20.04 and while installation I created a swap partition (instead of swapfile) ...
0
votes
0answers
63 views

Ubuntu won't boot properly after deleting snap

I recently updated Ubuntu from 18.04 to 20.04 and it was working fine. Then, it decided to stop booting, it gets frozen in the logo screen. I notice this happen just after I uninstall snapd and it ...
0
votes
0answers
34 views

What is the difference between using a swap partition vs. a swap file? [duplicate]

I just did a full disk encryption installation and it created a swap partition. In most manual install guides I see people making a swap file instead. So am curious to know if there is any pros / cons ...

1
2 3 4 5
25