I have 1GB RAM. Can someone tell me how large I should make the swap partition?
13182
I'm going to install 64 bit 14.04 on a new machine with something like 1 to maybe 128GB RAM and even more RAM later. How much space should I allocate to the swap partition?   And especially: WHY those recommendations for these numbers?    (None of the existing answers  and  explain any of the why and are a bit dated if we look at 1GB or RAM and up)
45257
When we want to setup a linux system, there is a common a suggestion to set the swap space  twice as big as your physical memory. I want to know why do we need this, and how it is this suggestion come to be?
88158
I have a laptop on which I have installed Ubuntu 12.04 and Windows Now just for learning purposes I am going to install Backtrack OS on it.  My laptop has 4 GB of RAM so according to the recommendation I have allocated 8 GB of swap space on my hard drive.  can I share the swap space between these two OS (Backtrack and Ubuntu)  I really don't want to waste 8 GB of more space for swap (because as I have noticed it is rarely used and as far as I know OS doesn't store any data in swap space, does it?) So is there a way with which I can share this 8 GB swap partition? If yes how?
74146
I have a dell laptop with 4GB of ram and 500GB of storage.I just finished installing windows 8.1 32bit version, which utilizes 3GB of ram.  Can I install and run Ubuntu to utilize that unusable portion of Ram.Then how?  Thanks in advance
16495
I'm having Swap partition of 8 GB , how can i create a swap file from it ? Currently having three partitions root , home , swap . So if i create a swap file how do i create it and where do it get saved ? My RAM is about 4 GB.
32432
Somehow I happened to swap out 14 GB of memory. After having killed the culprit, I have tons of free memory again, so I thought I could  again. So with 5 GB out of 32 GB used and 14 GB of swap space used, I ran swapoff -a.... and 4 hours later about half of the work was finished.  This means less that 1 MB/s, while I can easily copy 200 MB/s. My swap is encrypted but so are all normal partitions and with  it leads to no noticeable CPU load (and filling the swap space took only a few minutes). I see that there's no special reason to optimize swapoff, however I wonder how it could get that slow?    Just adding some more data: My main memory is 32 GB and I have 32 GB swap space on each of 4 harddisks (surely an overkill, but who cares?). The whole swap space can be  (decrypted and) read in less than 5 minutes:  time -p sudo sh -c 'for i in /dev/mapper/cryptswap?; do md5sum $i &amp; done; wait' 014a2b7ef300e11094134785e1d882af  /dev/mapper/cryptswap1 a6d8ef09203c1d8d459109ff93b6627c  /dev/mapper/cryptswap4 05aff81f8d276ddf07cf26619726a405  /dev/mapper/cryptswap3 e7f606449327b9a016e88d46049c0c9a  /dev/mapper/cryptswap2 real 264.27   Reading a part of a partition can't be slower than reading it all. Yet reading about 1/10th of it takes about 100 times longer.  I observed that during swapoff both the CPU was mostly idle (maybe 10% of one core) and so were the disks ("measured" by the LEDs). I also saw that the swap spaces were turned off one after the other.
91973
I want to create a very small sized ubuntu VM, preferably under 1 GB (500 to 700 MB). What is the way to create the smallest distro?  I tried minimal ubuntu but after installing it was also about 1.5 GB.
55896
From what I understand, the purpose of a swap partition in Linux is to free up some "not as frequently accessed" information from RAM and move it to a specific partition on your harddrive (at the cost of making it slower to read from or write to), essentially allowing active applications more of the "high speed memory".  This is great for when you are on a machine with a small amount of RAM and don't want to run into problems if you run out. However, if your system has 16 GB or 32 GB of RAM, and assuming you aren't running a MySQL database for StackExchange or editing a 1080p full length movie in Linux, should a swap partition be used?
3304
I had:   Software:  Dual boot with  Windows XP Ubuntu 10.04 LTS x32   Hardware  Fake RAID 1 (mirroring) with 2x1 TB:    Partition 1 - Windows Partition 2 - SWAP Partition 3 - / (root) Partition 4 - Extended Partition 5 - /home Partition 6 - /data  arek@domek:/var/log/installer$ sudo fdisk -l  Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000de1b9     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *          63   524297339   262148638+   7  HPFS/NTFS/exFAT /dev/sda2       524297340   528506369     2104515   82  Linux swap / Solaris /dev/sda3       528506370   570468149    20980890   83  Linux /dev/sda4       570468150  1953118439   691325145    5  Extended /dev/sda5       570468213   675340469    52436128+  83  Linux /dev/sda6       675340533  1953118439   638888953+  83  Linux  Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000de1b9     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63   524297339   262148638+   7  HPFS/NTFS/exFAT /dev/sdb2       524297340   528506369     2104515   82  Linux swap / Solaris /dev/sdb3       528506370   570468149    20980890   83  Linux /dev/sdb4       570468150  1953118439   691325145    5  Extended /dev/sdb5       570468213   675340469    52436128+  83  Linux /dev/sdb6       675340533  1953118439   638888953+  83  Linux  arek@domek:/var/log/installer$ ls -l /dev/mapper/ total 0 crw------- 1 root root 10, 236 Oct  7 20:17 control lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha -&gt; ../dm-0 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha1 -&gt; ../dm-1 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha2 -&gt; ../dm-2 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha3 -&gt; ../dm-3 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha4 -&gt; ../dm-4 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha5 -&gt; ../dm-5 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha6 -&gt; ../dm-6     I want to upgrade from 10.04 x32 to 12.04 x64 using FRESH installation.
59994
I've read that you need to put the swap partition on HDD rather than SSD.   My questions are the following:    When and how is the "checking" done by the distribution (or something else) to find its Swap partition?  Does it happen during boot?  It just checks all available disks and searches for a partition with 'swap' flag?  What happens if there are several partitions like that?  Also, how many swap partitions do I need to have if I run, for example, two different distributions on the same disk, let's say Fedora and Ubuntu?
62593
I want to reinstall Ubuntu from scratch.   I have read ( and ) that it is recommended to have 3 partitions for the desktop installation: root, home and swap as having a separate home and root can simplify the process if you want to upgrade or reinstall Ubuntu (if you break something by mistake).  But there is no type of formula (that I can find) on how big each partition should be. I know this is somewhat dependant on what you plan to install. I want to have flexibility down the line to install new software without having to worry about shifting the partition sizes around.  Does anyone know of a formula or percentage breakdown that they have used to successfully calculate partition sizes?  i.e. x% of space will be allocated to the swap, y% of space to the root partition and z% of space to the home partition
121923
My PC has 8 Gb of ram. Is there any way to make ubuntu use most of it? I mean rarely drop caches and keep once opened programms in ram longer, preload apps on boot, etc.
59832
I am asking myself which constellation is better: should I stock up my RAM up to 16GB (from 8GB), or should I buy a SSD with 128GB??   I really dont know :/  Cheers!  BTW: My macbook supports 16GB RAM, i already checked this ;)
53581
Using swap space instead of RAM can drastically slow down a PC.  So why, when I have more than enough RAM available, does my Linux system (Arch) use the swap?  Checkout my conky output below:    Also, could this be the cause of speed and system-responsiveness issues I'm having?  Output of free -m :  $ free -m              total       used       free     shared    buffers     cached Mem:          1257       1004        252          0         51        778 -/+ buffers/cache:        174       1082 Swap:          502        144        357
9063
What rules should I follow to determine how much swap space my linux-based computer should have today?
42590
I want to install Ubuntu on a mini PC which has only 3.5GB disk space. Do you have any recommendations?
4981
I plan on installing Ubuntu 19.04 and give it 100 GB of my 256 GB SSD space and leave the rest for Windows as I would primarily be using Ubuntu.     A. Now, as I plan to install a lot of applications in Ubuntu, should I give more space to the / partition than the home partition? (Or maybe even drop the /home altogether?).    B. I have another 128 GB SD card for files like photos, audio and video files. Please suggest me the optimal partitioning for the use case.    C. Also, I have 8 GB of RAM so what should be the optimal swap partition size?    D. How would the distribution be if I choose "install Ubuntu alongside Windows" option?