Swap basics for Ubuntu users.....
3 posters
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1
Swap basics for Ubuntu users.....
What is swap?
Swap space is the area on a hard disk which is part of the Virtual
Memory of your machine, which is a combination of accessible physical
memory (RAM) and the swap space. Swap space temporarily holds memory
pages that are inactive.
How much swap do you need?
it's highly recommended that the swap space should be equal to the
amount of physical memory (RAM). Also, it's recommended that the swap
space is twice the amount of physical memory (RAM) depending upon the
amount of hard disk space available for the system.
Creating swap
At the time of installing ubuntu we can specify how much swap we will use. But it is also possible to add more swap without partitioning any of the HD space. We can create a swap file and allow the os to use that as virtual memory. This is possible because Linux treats everything as a file (like - directory). Now, lets create a swap file and tell our UBUNTU to use that-
First of all we will create a 512MB .swap file
Swap space is the area on a hard disk which is part of the Virtual
Memory of your machine, which is a combination of accessible physical
memory (RAM) and the swap space. Swap space temporarily holds memory
pages that are inactive.
How much swap do you need?
it's highly recommended that the swap space should be equal to the
amount of physical memory (RAM). Also, it's recommended that the swap
space is twice the amount of physical memory (RAM) depending upon the
amount of hard disk space available for the system.
Creating swap
At the time of installing ubuntu we can specify how much swap we will use. But it is also possible to add more swap without partitioning any of the HD space. We can create a swap file and allow the os to use that as virtual memory. This is possible because Linux treats everything as a file (like - directory). Now, lets create a swap file and tell our UBUNTU to use that-
First of all we will create a 512MB .swap file
- Code:
sudo dd if=/dev/zero of=/mnt/512Mb.swap bs=1M count=512
- Code:
sudo mkswap /mnt/512Mb.swap
- Code:
sudo swapon /mnt/512Mb.swap
- Code:
cat /proc/meminfo
- Code:
gksudo gedit /etc/fstab
- Code:
/mnt/512Mb.swap none swap sw 0 0
BIT0111-muctadir- Expert
- Course(s) :
- BIT
Blood Group : B+
Posts : 233
Points : 395
Re: Swap basics for Ubuntu users.....
With the 2.6 kernel, "a swap file is just as fast as a swap partition."
Source:
https://help.ubuntu.com/community/SwapFaq
Similar topics
» Swap Problem while installing Oracle 10g
» Ubuntu 11.04 - Discussion
» games for ubuntu..........
» Playing urban terror using Qubee (Other internet users, please check too)
» Using Bangla in Ubuntu
» Ubuntu 11.04 - Discussion
» games for ubuntu..........
» Playing urban terror using Qubee (Other internet users, please check too)
» Using Bangla in Ubuntu
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford