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 ...

learn more… | top users | synonyms

13
votes
6answers
317 views

How to Increase Ubuntu's Virtual Memory and/or Swap for Matlab?

Situation: fix Out of Memory errors in Ubuntu's Matlab Goal: allocate some virtual memory and/or Swap on external HDD/SSD; the read/write decrease from 20 GBps to 0.1 GBps, which is ok! Therminology: ...
0
votes
3answers
66 views

Do I need more swap space or more RAM… Please anyone suggest

I am using ubuntu 16.04. I am a kind of guy who always do programming, use chrome with nearly 10-15 tabs. A thunderbird mail client, Android Studio Etc... I am suffering with very high RAM usage ...
0
votes
0answers
11 views

Kubuntu and ASUS X200M

I have an ASUS X200M and Windows 7 or 8 is not able to run. I do not know how it got corrupt because I am definitely not a computer expert. I am a newbie to the Linux system but I do like the ...
8
votes
1answer
4k views

How do I get Ubuntu 12.04 to recognize encrypted swap partition so that I can hibernate?

I just installed Ubuntu 12.04 and used gparted to erase and enlarge my swap partition. When I rebooted, gparted said that the file partition for the swap was unknown. Gparted doesn't let me change ...
4
votes
2answers
1k views

Do I need to backup my swap partition?

The thing I wonder why I am not able to see swap area of ubuntu in clonezilla. I want to create an image of my ubuntu. However, I cannot find the swap partition of ubuntu to image it. Thanks.
0
votes
2answers
44 views

Sudo Bleachbit Output Errors

When I run bleachbit as root, I get what looks like swap file errors. I've never seen these before and am wondering if there is a simple way to fix it?? here's the output: debug: DeepScan.scan: ...
2
votes
1answer
26 views

Is SWAP on both hard disks needed?

We have a 32GB RAM ubuntu along with 2 SDD of 240GB. When I view the sda and sdb, both have 32GB swap. Is that normal? I was expecting that only 1 swap of 32GB is needed? or do I need swap at all. ...
129
votes
6answers
150k views

How to empty swap if there is free RAM?

When I open a RAM-intensive app (VirtualBox set at 2GB of RAM), some swap space is generally used, depending on what else I have open at the time. However, when I quit that last application, the 2GB ...
0
votes
1answer
20 views

Kubuntu 16.04: How to disable swap partition from auto-mounting?

I have 2 swap partitions on my drive, one for Kubuntu(/dev/sda7), the other for Kali Linux(/dev/sda9). After googling around for methods how to stop the Kali Linux swap partition from auto-mounting on ...
0
votes
1answer
22 views

Encrypted SWAP wont mount at boot

I need help with my Encrypted SWAP on Ubuntu 14.04. It won't mount. I used ecryptfs-setup-swap to encrypt the swap. At boot this error occurs: device-mapper: rename ioctl on cryptswap1_unformatted ...
0
votes
1answer
45 views

What to do if /dev/md1 is full?

I have a dedicated server, running Ubuntu Server 14.04 LTS. I have a problem with space in disk: df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 8.0K 7.8G ...
2
votes
3answers
96 views

How to create a swapfile?

I have a 500Gib hard disk and 2Gib of RAM. I have ubuntu 12.04 When I originally particioned the disk, I had unallocated space because I had another disk with Windows in it. This disk died, so I had ...
82
votes
7answers
114k views

How do I add a swap partition after system installation?

I did not opt for a swap partition during Ubuntu installation. Later I freed up some space, and made a swap partition. Now after booting up I am manually opening gparted and right-clicking the swap ...
0
votes
2answers
259 views

How to change zram size?

I installed zram with sudo apt-get install zram-config. After that it started automatically and when I verified with cat /proc/swaps it's running properly But when I used sudo echo 128M > /sys/...
0
votes
1answer
7k views

“Failed to create swap space” error during installation

I've been trying to install Ubuntu for the past two days or so, but I've been running into a problem: every time I run the installation program on the LiveCD, I always get the same (or a very similar) ...
0
votes
1answer
66 views

Ubuntu 16.04 takes 30 minutes to shutdown or restart

Ubuntu 16.04 takes 30 minutes to shutdown or restart. This usually happens when Computer is running for a long time and Swap is being used. I have Core i5 with 4 GB RAM, 4 GB Swap and Hard Disk ...
0
votes
0answers
19 views

RAM used by processes does not add up to the total RAM using top command

The total RAM used is about 5GB but I am not running just a few processes as shown in the the picture. I try to find which process is eating most of the RAM, but the result is from top command is not ...
6
votes
1answer
68 views

Who eats all my file descriptors and thus memory?

my current system: 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64) $ free total used free shared buffers cached Mem: 16366288 16090588 275700 ...
9
votes
4answers
15k views

Is having the 'swap' partition at the 'beginning' better than at the 'end'?

I recently installed Ubuntu 11.04 onto a RAID0(stripe) device using the alternate installation disc and manually partitioned the HDs ext4 and swap partitions; during this process, I was reading in a ...
0
votes
0answers
15 views

The disk drive for XY is not ready yet or not present

At first I'd like to clarify, how I got to this messages. I wanted to create a system disk image (120GB SSD) to disk for data / backups (750GB HDD), so I created live USB, booted and run a command for ...
164
votes
19answers
145k views

I have 16GB RAM. Do I need 32GB swap?

I read many places that the rule of thumb for swap space is to double the amount of physical RAM. However, 32 GB does seem a LOT. Do I need that much? Do I need it at all with this high amount of ...
1
vote
1answer
31 views

How to undo “mkswap”

I had a problem with mysql and I needed to make a swap partition to fix it. I ran this code # dd if=/dev/zero of=/swap.dat bs=1024 count=512M # mkswap /swap.dat # swapon /swap.dat ## Edit the /etc/...
0
votes
0answers
111 views

Hibernate does not work on Ubuntu 16.04?

I followed some threads here and was able to enable the hibernate button on the top right menu. But when I hibernate, my laptop screen goes off but the laptop is still running. I know that because the ...
0
votes
0answers
41 views

How to decrease the swap memory in Ubuntu 14.04

While dual booting Ubuntu 12.04 on my 32 bit laptop along with Windows 7, I had little knowledge about partitioning memory, and so I ended up setting 100 GB as the swap memory. After a while I ...
0
votes
0answers
20 views

Hibernation stopped working after changing the swap partition

I usually always do sudo pm-hibernate to save my development session. Now I recently switched to ubuntu and since then I always run into some hibernation trouble. Sometimes the system would crash ...
0
votes
1answer
63 views

Partitioning for Ubuntu — question about partitions

So the question title wasn't very specific, but I couldn't really think of what to call this. My computer came with Windows 10, and I'm trying to run Ubuntu alongside it because of some of its ...
0
votes
1answer
65 views

Ubuntu 16.04 System crash when out of RAM

After upgrading to Ubuntu 16.04 from 15.10. I experienced crashes (system not responding, requiring a power off) every time I was running out of physical memory (using up all the RAM).
0
votes
0answers
35 views

Increasing available RAM temporarily on Raspberry Pi 2

I recently tried to compile Github's Atom on my Raspberry Pi 2, but after getting past the first error and trying again, it aborted in the middle of the build. Looking in the log showed that it ...
0
votes
0answers
19 views

Does 50 % memory and 40 % swap usage (equal size) with vm.swappiness of 90 indicate a kernel bug? [duplicate]

I have 8 GB RAM and a 8 GB swap partition and I set vm.swappiness to 90 in /etc/sysctl.conf (and verified that it's used with the sysctl command at runtime). The system uses 50 % of RAM and 40 % of ...
1
vote
1answer
68 views

Swap on SSD - will it decrease life sizeably? [duplicate]

I have a samsung 850 evo 120GB ssd. I have installed ubuntu on it , with a 119GB / and 1 GiB Swap(on the ssd) . Is the swap a good idea? Should I remove the swap ? Problem is , I have only 1 GB ram. ...
2
votes
2answers
67 views

How can I redetect swap partition after formating to enable hibernation

I had this setup working on my laptop: /dev/sda1 (ext4) / /dev/sda2 (ext4) /home /dev/sda3 swap partition /dev/sda4 (ntfs) /media/windows After getting sick of windows, I removed the last partition....
3
votes
2answers
209 views

Swap partition is not being used completely [closed]

I have bulky Fortran source code (WRF) to be compiled. Every time I compile the code, the system gets stuck. To diagnose the problem, I saw memory performance in the system monitor of Ubuntu, and ...
0
votes
1answer
78 views

Swap on SSD or HDD and how much?

Before I start I am a Linux noob. I will be running Windows 7 and Ubuntu on my 120Gb Kingston SSD. (Just the system files for windows and Ubuntu). Because of the space limitations I do not want to ...
0
votes
0answers
33 views

how to set swap space of double the ram during installation?

I am having serious problems with my administrator password which I am still dealing with with not much help from here, anyway, after I am done with this I plan to reinstall 14.04 LTS (since the ...
1
vote
0answers
52 views

How to Install Ubuntu Server without swap?

I have a 256GB solid state drive on which I plan on installing Xen and a few VMs. For the host (dom0), I want to use Ubuntu Server 16.04 and have it take up as little space as reasonably possible. ...
0
votes
0answers
22 views

Swap priority gets set to -1 on each boot

I have a swap partition of size 7.9 GB. When I use the command free, it shows this: NAME TYPE SIZE USED PRIO /dev/sda7 partition 7.9G 0B -1 The swap partition is not being used and ...
3
votes
2answers
1k views

Can't create a swap file

I've just formatted my laptop with Windows 7 and Ubuntu. I've a 250gb drive and I've split it in 3 partitions:One for Windows 7, one for Ubuntu and a shared partition for both windows and Ubuntu. I've ...
0
votes
0answers
26 views

Ubuntu 14.04 Clear Swap when RAM is full

I am running a python program that, for some reason, goes crazy once in a while. I am then forced to kill the program but the RAM and Swap used by the program is not released. This causes the hanging ...
0
votes
3answers
71 views

Do I need to clear out swap to make my computer fast again?

I ran a process which used up mostly all my RAM and Swap... I was forced to kill the process, but now I see something strange, my Swap usage has decreased a little bit, but it is still half used while ...
27
votes
7answers
12k views

With an SSD, do I need to change my swappiness to increase SSD life?

I encountered this article which includes the following suggestion: Swap and swappiness I kept my swap partition on the old HDD. Swap on the SSD would be faster, but would also shorten the ...
0
votes
1answer
18 views

Server is swapping regardless of available memory

Here is some vmstat output x@x-server:~$ vmstat 1 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us ...
0
votes
0answers
64 views

Swap partition is not mounted by default at boot in ubuntu 16.04 after resizing partitions

I resized my ubuntu partition using gparted from a live cd. I first turned off swap, then deleted it. Then I resized the partition and created a new swap and turned swap on and rebooted. After that, ...
0
votes
0answers
46 views

ubuntu system partition is running out of space and the swap partition is 16GB

This is the output of lsblk on my server: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 64G 0 disk ├─sda1 8:1 0 ...
2
votes
3answers
1k views

How much swap should I take for 1-128GB RAM on 14.04 or higher?

I'm going to install 64 bit 14.04 on a Thinkpad T400 with something like 1 to maybe 128GB RAM. How much space should I allocate to the swap partition? And especially: WHY those recommendations for ...
1
vote
1answer
47 views

I resized partition and deleted swap area , how do I update the /etc/fstab file to reenable swap?

This is my current fstab file content: # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more ...
0
votes
1answer
36 views

Stop Ubuntu from using original swap partition

When I installed Ubuntu 16.04 I put it on a 250 GB SSD and created a 4 GB swap partition. Recently I have been doing some machine learning and I keep using up all of my 16 GB of memory. I decided to ...
33
votes
7answers
59k views

How do I disable swap?

I have some sensitive data in ram that i prefer not to be on disk. How do i disable swap? I have more then enough ram. If ram gets too high i have no problems with processes being terminated. How do I ...
0
votes
1answer
30 views

Not properly using Physical memory

How do I get ubuntu to make use of the swap file. It doesn't even use the full physical memory, it only uses 1.3 Gb of 8 Gb, and it doesn't make use of the swap file at all, even when it has detected ...
0
votes
0answers
13 views

Is it beneficial in any way to have two swap partitions on the same extended partition with the same priority?

I read somewhere that I can speed up the swap process if I make more than one swap partition with the same priority on different drives. I was wondering if splitting the swap partition I have on my ...
0
votes
2answers
56 views

Secondary hdd with swap partition: spindown?

I'm running Ubuntu 16.04 on a laptop. I have a small, 120GB SSD drive, and a secondary 1TB HDD. Today I made Linux use a swap partition that is located on that second drive. After testing things out ...