AIX background memory usage monitoring

Source: Internet
Author: User

Ps gv | head-N 1; ps gv | egrep-V "RSS" | sort + 6B-7-n-r | head-N 11 2 shows the complete command based on your situation; 3. The value 0 indicates that the ratio of the used memory to the total physical memory is close to 0, indicating that it is rarely used;

 

Svmon-p-t 10 (check the 10 processes that occupy the most memory)

 

 

The system uses the physical memory as the workspace and places the interactive data and programs on the disk. these spaces are page spaces. the 7.1 page space overview page has 4 K Capacity, which can be transmitted between physical memory and secondary storage. It is a unit of virtual memory. A page space can also be called a swap space. is the LV of the property type paging. the default page lv created during system installation is hd6 on hdisk0, also called homepage space. the default page space is created according to the following standards in the Custom phase of system installation: 1. the page space cannot be less than 16 MB and can only be on hd6. The size of aix4.2.1 is not less than 32 MB, and the size of aix4.3 is not less than 64 MB. the page space cannot exceed 20% of all disk space; 3. If the actual memory is less than 256 MB, the swap space is twice the actual memory; 4. if the actual memory is not less than 256 MB, the page space is 512 MB. page Space key points: the number of page spaces required by the application depends on the type of activities completed on the system. if the page space is reduced, the process may be lost. If the page space is used up, the system will be nervous. when the page space is insufficient, the system monitors the free page Number of Space blocks. the vmstat and topas commands can obtain the statistics in this case. when the number of free page space blocks is lower than the warning level, the system notifies all processes except the core process that there is insufficient page space. 1. the position of the page space the I/O of the page space is random and usually one page at a time. number of I/O occurrences on the report page of The vmstat and topas commands: vmstat [-F] [-I] [-S] [physicalvolume...] [interval [count] to improve the page feed performance, use multiple pages and arrange them on different PVS as much as possible. multiple pages can be placed on one PV, but this is not recommended. 2. we recommend that the total page size be no less than twice the physical memory size when the memory size is smaller than MB. for memory greater than 512 M: pgsize = m + (memory size-256M) x 1. 25 Ideally, there should be several pages of roughly the same size The surface space is on different physical disks. if you want to create a new page space, create it on the light-load PV, and do not place it in the PV of rootvg. during system boot, only the Home Page space is active. therefore, all blocks allocated during boot are on the home page. this means that the home page space should be larger than the next page space. the second page space should be of the same size to ensure that the round-robin algorithm works effectively. the LSPs-a command provides a snapshot of the current application for each page space in the system, while the LSPs-s command provides a summary of all the active page spaces and their current applications. 3. the limitations of VG page space are in versions earlier than aix5.1. Do not set the page space to the VG of the Mobile Disk. to remove an online disk with a page, you need to restart it. note: In versions earlier than 5.1, when a page activity in the VG with PG volume export cannot be varyoff or export, make sure that these pages are not automatically activated during system boot, restart them, and then perform the operation. 7.2 to manage the page space, run the following command to manage the page space: CHPs changes one Page space properties LSPs display the properties of a page space mkps create a page space RMPs delete a page space Swapon activate a page space swapoff to live one or more page space Swapon command is used in system initialization (/sbin/RC. boot) early activation of the initial Page space device. later, other devices become available. This command is used to activate other page spaces so that page activities can appear in multiple devices. the active page space cannot be deleted. to delete an active page space, it must be removed first. you can use the CHPs command in versions 4.3 and earlier to make the page space unavailable after the next startup. after the instance is restarted, run the RMPs command to remove the instance. in version 5.1, use the swapoff command to dynamically live the page space, and then use the RMPs command. note: In versions 4.3 and earlier, you must restart any page deletion operations. Therefore, you must plan the time. page devices activated by the Swapon-a command are listed in the/etc/swapspaces file. when the page space is created using the mkps-a command, It will be added to the file. When you use the RMPs command to delete the file, it will be deleted from the file. when CHPs-A is used, the file is modified accordingly. 7.2.1 display page space properties the LSPs command displays page space properties, such as page space name/PV name/VG name/size/usage percentage/activity/automatic activation. the LSPs {-S | [-c |-L] {-A |-t {LV | NFS} | pagingspace}-C parameter is in the colon format and the page size in pp. show information colon-s show all page space Summary-A show all page space properties all-l list mode list-T specify the page space category: type, with LV or NFS 7.2.2 added and activated a page space 1. run Smitty mkps; 2. select a volume group to be added, such as rootvg; 3. enter the size of the page to be added (calculated by LP. For example, if LP is 4 MB and 20 mb is required, enter 5); 4. select whether Use this page now, and enter yes or press F4 to select. 5. select whether to use this page every time you start the system. Select Yes; 6. press enter to create. at this time, whether the creation is successful is displayed. Press F10 to return to the command line. you can use LSPs-a to check whether the setting is successful. 7.2.3 changing page space attributes can change two attributes: to enable or activate the page space next time, and to increase the size of an existing page space. version 5.1 adds the ability to remove a living page, so you do not need to restart to change the page space size. the following are the steps for live removal before version 5.1: 1. run Smitty CHPs 2. select the page space to be changed. 3. select whether to use the page space for each startup and select no; 4. press enter to change. After the change, a success prompt will be displayed. Press F10 to exit Smit. after the machine is restarted, run the LSPs-a command to confirm that the changed page space has been removed. in version 5.1, a page space is dynamically active. swapoff command: swapoff devicename {devidename .....}, For example, swapoff/dev/paging03 can activate paging03 or use the Smitty swapoff command. note that to live all the pages in use, you must move the pages to other active pages. Therefore, other pages must have enough space. increase page size: 1. run Smitty CHPs; 2. select the page space to be added. 3. enter the number of Lp To be added; 4. press enter to change; after running successfully, press F10 to exit Smit; then use LSPs-a to confirm that the page has been added. reduce page size version 5.1 with the CHPs-D command can reduce the size of a page and not deserve the page, do not need to restart, do not need to delete and re-build. to reduce pg03 by two LP: CHPs-D 2 pg03, the following result is displayed: shrinkps: Temporary paging space paging04 created. shrinkps: Paging space paging03 removed. shrinkps: Paging space paging03 recreated with new size. 7.2.4 delete pages other than hd6. In versions earlier than 4.3, use RMPs. note: incorrectly deleting the default page space can prevent system restart. this operation can be attempted only by experienced system administrators. before deleting a page, you must go to the active page, which requires restarting. use sysdumpdev-L to check the active dump device. the default dump device cannot be deleted. before deleting this page space, you must change the default dump device to another page space or LV: sysdumpdev-p/dev/newdumpdev. delete a PS: 1. changes the activity of the PS to be deleted so that it will not be reactivated at the next startup. 2. restart the machine, shutdown-fr; 3. execute Smitty RMPs after startup; 4. press F4 to obtain the LV list on the page; 5. select the PS to be deleted, and press ENTER; 6. warning message, press ENTER; 7. press enter to delete the file. If OK is displayed, the file is successfully deleted. in aix5.1, run swapoff first, and then delete PS: RMPs 7.2.5 mobile default PS (hd6) mobile default ps may have two benefits: 1. balance Disk Load to improve storage system performance; 2. save the disk space on hdisk0. when deleting hd6, a special step is required. the page space is activated by the shell script of the Configuration System During the boot process. Therefore, to delete hd6, these scripts must be modified and a new startup image must be created. reduce the size of hd6. Note: aix4.2.1 and later versions do not support hd6 smaller than 32 m; otherwise, the system cannot boot. if you decide to reduce hd6, you must leave enough space for the software. one important thing to reduce hd6 is to leave enough space to match the memory. run the following command to find out the memory size: lsattr-e-l sys0-A realmen step to reduce hd6: 1. create a temporary page space in rootvg: mkps-a-n-s 30 rootvg hdisk0. The result shows the name of the created page space, and write down the name. 2. alive hd6: CHPs-a n hd6 3. change/sbin/RC. hd6 entry in the boot file: Swapon/dev/hd6: Change hd6 to the created ps. 4. use sysdumpdev-L to check the name of the master dump device. 5. if the master device is hd6, change it to another page space, for example, to the created pg00: sysdumpdev-p/dev/pg00 6. use bosboot to create a boot image: bosboot-D/dev/hdisk0-A; 7. restart: shutdown-R; 8. after the system is started, delete hd6: RMPs hd6; 9. create a new page space LV for hd6: mklv-T paging-y hd6 rootvg 30 (120 m); 10. use LSPs-a to check the reduced hd6; 11. change the name of the master dump device to hd6: sysdumpdev-p/dev/hd6; 12. change/sbin/RC. entries in the boot file: Swapon/dev/pg00 is Swapon/dev/hd6; 13. re-create the boot image for the disk: bosboot-D/dev/hdisk0-A; 14. make the new hd6 page automatically activated at startup: CHPs-A y hd6; 15. change the properties of the temporary PS so that it is no longer automatically activated: CHPs-a n pg00; 16. restart the system normally: shutdown-R; 17. after the system restarts, delete the temporary PS: RMPs pg00. reduce hd6 in aix5.1: You can use CHPs-D to dynamically reduce the size of hd6. this command prevents hd6 from being reduced to a level lower than 32 MB or actually deletes it. if hd6 is reduced, the temporary Boot Image pointing to the temporary homepage space and a temporary/sbin/RC. the boot entry will be created to ensure that the system is always in a safe boot state. move the hd6 page space to another VG: hd6 is not recommended because the name is fixed in several places. in the second phase of system boot, only the PS in rootvg is activated. If there is no PS in rootvg, the system boot performance will be seriously affected. if you want most of the PS to be on another VG, it is best to make hd6 as small as possible (as large as the physical memory), and then create a larger PS on another VG. move hd6 in the same VG: Move hd6 from hdisk0 to another PV in this VG without restarting the system. use: migratepv-l hd6 hdisk0 hdisk1, which will spend different time by PS.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.