create account

What is Swap Memory? by ayushmanantal

View this thread on: hive.blogpeakd.comecency.com
· @ayushmanantal ·
What is Swap Memory?
![](https://steemitimages.com/DQmYmHJfcuBiQD6qK1r51jr9iPoZ1BxU3qtnYeANfSd5zWt/image.png)

Swap space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM. Swap space is located on hard drives, which have a slower access time than physical memory.
Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of swap partitions and swap files.
Swap should equal 2x physical RAM for up to 2 GB of physical RAM, and then an additional 1x physical RAM for any amount above 2 GB, but never less than 32 MB.

So, if:
M = Amount of RAM in GB, and S = Amount of swap in GB, then

If M < 2
 S = M *2
Else
 S = M + 2 

 

Using this formula, a system with 2 GB of physical RAM would have 4 GB of swap, while one with 3 GB of physical RAM would have 5 GB of swap. Creating a large swap space partition can be especially helpful if you plan to upgrade your RAM at a later time.
For systems with really large amounts of RAM (more than 32 GB) you can likely get away with a smaller swap partition (around 1x, or less, of physical RAM).
πŸ‘  ,
properties (23)
authorayushmanantal
permlinkwhat-is-swap-memory
categorylinux
json_metadata{"tags":["linux","swap","memory"],"image":["https://steemitimages.com/DQmYmHJfcuBiQD6qK1r51jr9iPoZ1BxU3qtnYeANfSd5zWt/image.png"],"app":"steemit/0.1","format":"markdown"}
created2017-09-22 15:56:54
last_update2017-09-22 15:56:54
depth0
children2
last_payout2017-09-29 15:56:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,299
author_reputation616,507,792
root_title"What is Swap Memory?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,629,504
net_rshares1,779,578,081
author_curate_reward""
vote details (2)
@cheetah ·
$0.10
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://www.centos.org/docs/5/html/5.2/Deployment_Guide/s1-swap-what-is.html
πŸ‘  
properties (23)
authorcheetah
permlinkcheetah-re-ayushmanantalwhat-is-swap-memory
categorylinux
json_metadata""
created2017-09-22 15:57:15
last_update2017-09-22 15:57:15
depth1
children0
last_payout2017-09-29 15:57:15
cashout_time1969-12-31 23:59:59
total_payout_value0.073 HBD
curator_payout_value0.024 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length175
author_reputation942,693,160,055,713
root_title"What is Swap Memory?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,629,541
net_rshares33,870,502,360
author_curate_reward""
vote details (1)
@steemcleaners ·
$0.71
Not indicating that the content you copy/paste is not your original work could be seen as [plagiarism. ](http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/)

Some tips to share content and add value:
- Use a few sentences from your source in β€œquotes.” Use HTML tags or Markdown. 
- Linking to your source
- Include your own original thoughts and ideas on what you have shared.

Repeated plagiarized posts are considered spam. Spam is discouraged by the community, and may result in action from the [cheetah bot](https://steemit.com/steemitabuse/@cheetah/cheetah-bot-explained).

Creative Commons: If you are posting content under a Creative Commons license, please attribute and link according to the specific license. If you are posting content under CC0 or Public Domain please consider noting that at the end of your post. 

If you are actually the original author, please do reply to let us know!

Thank You!
πŸ‘  
properties (23)
authorsteemcleaners
permlinkre-ayushmanantal-what-is-swap-memory-20170922t200823257z
categorylinux
json_metadata{"tags":["linux"],"links":["http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/","https://steemit.com/steemitabuse/@cheetah/cheetah-bot-explained"],"app":"steemit/0.1"}
created2017-09-22 20:08:24
last_update2017-09-22 20:08:24
depth1
children0
last_payout2017-09-29 20:08:24
cashout_time1969-12-31 23:59:59
total_payout_value0.703 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length922
author_reputation2,789,224,428,782,668
root_title"What is Swap Memory?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,649,110
net_rshares244,158,308,599
author_curate_reward""
vote details (1)