In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Swap partition of Linux system, that is, swap partition, usually also known as virtual memory, Swap space can be simply described as: when the physical memory of the system is insufficient, it is necessary to release part of the space in physical memory for the current running program to use. The freed space may come from programs that have not operated for a long time, and the freed space is temporarily stored in Swap space, and when those programs are ready to run, the saved data is restored from Swap to memory. In this way, the system will always swap when physical memory is insufficient. Swap tuning is critical to the performance of Linux servers, especially Web servers. By tweaking Swap, you can sometimes bypass system performance bottlenecks and save on system upgrades.
1. Create swap partition file
[root@devsz wxadmin]# dd if=/dev/zero of=/opt/swapfile bs=1M count=4096 4096+0 records in4096+0 records out4294967296 bytes (4.3 GB) copied, 20.789 s, 207 MB/s
2. Authorize documents
[root@devsz wxadmin]# chmod 600 /opt/swapfile
3. formatted interchange partition
[root@devsz wxadmin]# mkswap /opt/swapfile Setting up swapspace version 1, size = 4194300 KiBno label, UUID=bfe83644-0fa0-43f9-bf7e-69f9e24b391f
4. Open swap partition
[root@devsz wxadmin]# swapon /opt/swapfile
5. View swap partition status
[root@devsz wxadmin]# free -m total used free shared buff/cache availableMem: 3789 2682 208 280 898 586Swap: 4095 0 4095[root@devsz wxadmin]#
The above is all the content of this article, I hope to help everyone's study, but also hope that everyone a lot of support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.