In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to adjust the aix 5 swap space for everyone. The quality of the article is high, so Xiaobian shares it with you as a reference. I hope you have a certain understanding of relevant knowledge after reading this article.
When PAGE SPACE is high, you can use vmstat and svmon to track it regularly to see what causes memory consumption, and kill unused processes and redundant services. Or you can add SWAP space to mitigate, as shown below.
1. Check the SWAP space size and utilization rate, and find that the default paging logical volume on the first hard disk of rootvg is hd6.
2. Check the characteristics and status of rootvg
3. Check the details of rootvg volume and find that there are 392 remaining PPS, and the size of each PPS is 256M.
According to calculations, SWAP is expanded from the original 24G to 36G, requiring an increase of 48 PPS. The chps -s command allows you to dynamically increase the size of paging space. (To reduce SWAP space, create a temporary boot image pointing to temporary host paging space and a temporary/sbin/rc.boot to ensure that the system can be safely restarted.) Use chps -d command to dynamically reduce the size of paging space. Note: chps -d command prohibits reducing the size of hd6 to less than 32MB or deleting it.)
5. Expanded PPS
6. Expanded capacity check
Linux adds swap
1. View System Swap Space Usage
[root@test usr]# free
total used free shared buffers cached
Mem: 513980 493640 20340 0 143808 271780
-/+ buffers/cache: 78052 435928
Swap: 1052248 21256 1030992
2. Create swap files in the right places
[root@test usr]# mkdir swap
[root@test usr]# cd swap
[root@test swap]# dd if=/dev/zero of=swapfile bs=1024 count=10000
10000+0 records in
10000+0 records out
[root@test swap]# ls -al
total 10024
drwxr-xr-x 2 root root 4096 Jul 28 14:58 .
drwxr-xr-x 19 root root 4096 Jul 28 14:57 ..
-rw-r--r-- 1 root root 10240000 Jul 28 14:58 swapfile
[root@test swap]# mkswap swapfile
Setting up swapspace version 1, size = 9996 KiB
3. Activate swap file
[root@test swap]# swapon swapfile
[root@test swap]# free
total used free shared buffers cached
Mem: 513980 505052 8928 0 143900 282288
-/+ buffers/cache: 78864 435116
Swap: 1062244 21256 1040988
[root@test swap]#
About how to make aix 5 swap space adjustment to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
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.