About Swap partition during Linux Installation
Swap partition, that is, Swap zone. The role of Swap space can be simply described as: when the physical memory of the system is insufficient, a part of the physical memory needs to
swap space may result in better performance.
How do I view swap space? Linux, the system provides three ways to view the partition of the system's swap:
Cat/proc/swaps
Swapon-s
Label:bash size sharedinuxlogs Add divuuid use # #增加交换分区需要先模拟出虚拟磁盘 # from the Linux kernel build 0 device zero, write to the Newdisk file, specify the file block size 1M, 100 blocks [[emailprotected] ~]# DD If=/dev/zero of=/tmp /newdisk bs=1m count=100 recorded the 100+0 read record of the 100+0 write 104857600 bytes (MB) copied, 1.41021 seconds, 74.4 mb/s [[emailprotected] ~]# Du-sh/tmp/newdisk100m/tmp/n
There's a lot of memory, using swap.At this point, swap does not necessarily affect performance:In other words, the current data stored in swap is still infrequently used-that is, swap is playing a normal role.According to the memory management algorithm, when the memory page is not accessed for a long time, the page is swapped out without affecting the use.But y
see the size of the used and unused resources of the swap space. The
should keep the swap load below 30% to ensure good system performance.
System commands for swap operations
Add swap
Prepare to learn about ORACLE. when setting up the environment, always prompt that SWAP space is insufficient. Specifically, record the method for adding SWAP space! Step 1: Check the current partition (use free-m or cat/proc/swaps): [root @ db2root] # free-mtotalusedfreesharedbufferscachedMem: 10068492201138-/+
Prepar
Solve virtual machine Linux increase disk space after the swap partition can not automatically mount the issue, the use of Linux for this article is Lubuntu, not guaranteed to be applicable to other distributions Linux
1, into the Linux
How to add a new swap partition to the RHEL system-Linux general technology-Linux technology and application information. The following is a detailed description. Solution: 1. if you want to add a swap partition (if you want to
SWAP is called a SWAP zone, which is equivalent to the virtual memory in Windows. Its function is to increase the memory through SWAP when the memory in our system is insufficient. When we install the Linux system, the root and SWAP are the most basic partitions. If we set S
I want to install oracle10g in the virtual machine and find that the default swap space does not meet the minimum requirement. because the physical memory I allocate is 1 GB, 2 GB swap space is required as required, by default, only 1 GB of swap
Prepare to learn about ORACLE. when setting up the environment, always prompt that SWAP space is insufficient. Specifically, record the method for adding SWAP space!
To add a swap partition file in
Article Title: Talk about the important Linux system Swap zone. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Swap, that is, in the
1. solve the problem by partitioning. 2. solve the problem by using the file method. if the hard disk partition is insufficient, you can consider using the file method. the specific method is to create a file with a certain capacity, then run the mkswap and swapon commands to mount the file and add it to the swap. the specific operations are as follows: cd/ddif /...
1. solve the problem by partitioning2.
Article Title: Use Cryptmount to protect the file system and swap space. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Cryptmount allows you to encrypt file systems and
SWAP partition http://www.linuxidc.com/Linux/2014-03/98311.htm
A method for creating SWAP partitions in an OpenStack Virtual Machine instance http://www.linuxidc.com/Linux/2013-07/87380.htm
In Linux, how many SWAP spaces should b
Add swap partitions under centos. this method is not limited to centos, linux is applicable to the following commands. you must operate the Java code ddif/dev/zeroof/home/swapbs1024count512000www.2cto.com under the root account to create a partition file such as/home/swap...
Add
the forum say they have a large memory and do not need to use swap partitions. if we use swap partitions properly, why can't eight machines solve the problem? Next, let's take a look at the official suggestions of RedHat: Next we will talk about swap partition optimization: 1. first, try to use partitions instead of files. remember to do this unless you have. of
Hugepage IntroductionHugepage technology is an added feature of Linux in Kernel 2.6, the basic principle is: use a larger page to achieve greater memory access! This technology can be supported in Linux kernel 2.6 and above, 32-bit and 64-bit! The size of the Fan Wei is 2MB to 256MB, depending on the kernel version and the server hardware architecture! Hugepage Benefits:
1. Increase the hit r
Usage of swap partitioning: swap puts data into swap when the physical memory is insufficient. Therefore, swap plays a role in virtual memory, in a sense, memory space is also increased. Generally, the swap partition is set when t
Article Title: two solutions to solve the problem of too small swap partition in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In order to break through the limitation of p
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.