Because you are ready to install Oracle database on Linux, it is said that the swap partition is less than 4G easy to fail, the sky chatter I even the swap partition is not very clear,
I think I have an impression, but I'll talk about it before we get big.
The test proves that the default swap partition of UBUNTU14 is the same as the initial set of memory size.
Originally because the hand speed too fast, accidentally set the memory to the default 1G, later changed to 3G, now found that the swap partition actually only a small 1G,
Anyway hard drive place big, again reward you 4G is not what.
By the way,swap view mode free
?
OK, check the tutorials online, and then implement the test
- DD If=/dev/zero OF=/SWAP1 bs=1m count=4096
First, create swap files for partitioning in a space where appropriate: for example,/SWAP1
If the infile,of means that outfile,bs=1m represents the increased module size, count=4096 represents 4,096 modules, or 4G space
- Mkswap/swap1
Set the destination file to a swap partition file.
- Swapon/swap1
Activate swap to enable swap partition files now
- Free to check it out.
- First hold the pride, do not do the following operation, restart will be invalid.
- Add the following line to the/etc/fstab file
/SWAP1 swap swap defaults 0 0
- Restart the test.
Respect for the original is the Chinese nation's fine traditional virtues, as the 21st century five good uncle I have to put the reference address on
( ̄ ̄) "
Http://blog.chinaunix.net/uid-24373487-id-83864.html
Linux Swap partition settings