Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Sunday 26 June 2011

AIX - Paging Space

AIX - Paging Space

Paging space is configured for additional system performance i.e. if real memory is occupies some system process, that time further process is moved to paging space temporary. If real memory getting free, then process moved from paging space to real memory. This paging space is assigned from HDD space.

Normally paging space is configured double size of the real memory

If system has 512MB RAM, then paging space size will be 1BG.



In this paging space we can perform following:

1. List paging space
2. Create paging space
3. Change paging space
4. Activate paging space
5. Deactivate paging space
6. Remove paging space


AIX - Paging - Activate Paging Space

Using swapon command we can activate the paging space

#swapon /dev/newpaging (To activate paging space)

The paging space is active stage, and then one entry will be available in /etc/swapspaces file.


5. Deactivate paging space

Using swapoff command we can deactivate the paging space

#swapoff /dev/newpaging (To deactivate paging space)

The paging space is deactivated, then that paging space entry is removed from /etc/swapspaces

AIX - Paging - Change Paging Space

Using chps command we can increase, decrease, auto on, and auto off the paging space.

#chps –s 5 newpaging (5 LP’s added with newpaging) – To increase

#chps –d 3 newpaging (3 LP’s reduced from newpaging – To Decrease

#chps -ay newpaging (To start the paging space at startup)

#chps –an newpaging (To stop the paging space automatic startup at boot)
Using mkps command we can create the paging space

AIX - Paging - Create Paging Space

#mkps –s 10 rootvg hdisk2
s- size
10 – no of PP size
Rootvg – specifying the VG
Hdisk2 – paging space created in PV hdisk2 (PP allocated from hdisk2)

Then paging space has created and name will be paging00

Using mklv command we can create paging space using different name.
Generally paging name will be paging00, paging01, paging02,

#mklv –y newpaging –t paging rootvg 10 hdisk2
#lsps –a
Paging00 , newpaging
AIX - Paging - Deactivate Paging Space

Using swapoff command we can deactivate the paging space

#swapon /dev/newpaging (To deactivate paging space)

The paging space is deactivated, then that paging space entry is removed from /etc/swapspaces

AIX - Paging - List Paging Space

Using lsps command we can view the paging space details

#lsps –a (It will display the paging space details)

AIX - Paging - Remove Paging Space

Using rmps command we can remove the paging space

#rmps newpaging

NOTE:

Before removing the paging space, paging space should be offline, then we can remove the paging space, otherwise it will giv

No comments:

Post a Comment