Welcome to the Linux Foundation Forum!
SWAP SPACE Partition question
I have a question regarding swap space, I know linux uses that as virtual memory, I am currently running on ubuntu server 10.10.
Here is my question, will I see a speed increase since I have the space to spare, if I make a additional large swap space partition, or increase the size of my current one, my current swap space is 13 gigs.
0
Comments
-
The swap partition is very rarely used, it is only a backup location when your RAM has been filled. When it is in use you will see a reduction in system speed because a hard disk is far slower than RAM. The general rule is to set your swap to 2x RAM or 2G which ever is smaller.
Blowing up your swap space beyond your needs will not make the system faster, if you wish to use more swap than RAM you can search good for instructions to change your swappiness, after a test on that you will see why swap is for backup only.0 -
makes sense, thanks.0
-
Here is a screenshot of my laptop swap status.
I have a typical habit of assigning 2x times of RAM size. But this theory works out for moderate desktop or PC configurations.
Larger servers may need a different formula to work out how much swap is required. Anyway, as you can see if the SWAP usage is 90% ZERO all the times, you can reduce the SWAP eventually. Since usually allocating larger space is a overhead for kernel.
This is applicable for swap memory than compared to your utility other partitions.
0 -
kiran.kankipati wrote:I have a typical habit of assigning 2x times of RAM size. But this theory works out for moderate desktop or PC configurations.
That might have been true years (many!) ago. It is not anymore.
You do not want to use swap, at all. In fact, it should be used only in rare cases(like if there's some kind of problem with some software that is taking up way to much memory).
If you are constantly using swap... GET MORE RAM!!!0 -
0nto wrote:use your SWAP space 3x from your RAM it will help you

As I've said many times: that is not true, at all.
It's easy to have nowadays 8Gb of ram: should I have 24 freaking gigs for swap?!?!?!?!? That is just nonsense.
In a regular desktop (and most servers) having a great swap is totally unnecessary!0
Categories
- All Categories
- 175 LFX Mentorship
- 175 LFX Mentorship: Linux Kernel
- 745 Linux Foundation IT Professional Programs
- 372 Cloud Engineer IT Professional Program
- 168 Advanced Cloud Engineer IT Professional Program
- 73 DevOps IT Professional Program - Discontinued
- 3 DevOps & GitOps IT Professional Program
- 98 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- AI & ML Training
- Blockchain & Decentralized Identity Training
- 2 Cloud & Containers Training
- Cybersecurity Training
- DevOps & Site-Reliability Training
- Linux Kernel Development Training
- Networking Training
- Open Source Best Practice Training
- System Administration Training
- System Engineering Training
- Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 946 Programming and Development
- 310 Kernel Development
- 618 Software Development
- 981 Software
- 373 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)