Saturday, April 27, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 20454  / 1 Year ago, sat, december 24, 2022, 10:55:24

Presently my RAM is 2GB. I heard that in linux we can get extra memory to RAM from the harddisk by using swap partition. What is the procedure for that?



enter image description here here in the pics i'm giving my system info.



enter image description here


More From » partitioning

 Answers
7

In a default Ubuntu installation you will always have a swap partition which will be created by the installer. In your setup it is the partition /sda5 but this location may change from system to system.



This partition will obviously not be able to increase the physical RAM but it is storage memory on your hard disk reserved for the kernel to use whenever we run short of physical RAM. This may never happen on a system with 2 GB of RAM unless we perform very memory demanding tasks (e.g.
video processing, huge image processing) or have many applications running simultaneously.



Note that memory usage on swap is extremely slow, so we do not really want to have that other than in emergency situations.



In case you need a larger swap you can do so after installation either by creating a larger swap partition:





or by adding a swap on a file (which can not be used for hibernation):





More about swap can also be found here:




[#27308] Saturday, December 24, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sigtestim

Total Points: 298
Total Questions: 108
Total Answers: 106

Location: Bermuda
Member since Thu, Apr 20, 2023
1 Year ago
;