Showing posts with label PERFORMANCE. Show all posts
Showing posts with label PERFORMANCE. Show all posts

Saturday, September 5, 2015

How to create/increase/decrease/remove/disable the paging space in aix?

How to create/increase/decrease/remove/disable the paging space in aix?



LIST
How to list out all the paging space details?       #lsps –a       
How to list out the consolidate paging space size?  #lsps –s
CREATE
How to create the paging space
#mkps –s <no of pp> -n –a rootvg       mkps –s 8 –n –a rootvg
INCREASE
How to Increase the Paging space?
#chps –s <no of pp> <paging name>       chps –s 8 paging00
DECREASE
How to decrease the paging space?
#chps –d <no of pp> <paging name>      chps –d 4 pagin00
DELETE
How to delete the paging space?
#swapoff /dev/<paging name>               swapoff /dev/paging00
#rmps <paging name>                            rmps paging00
CONFIGURATION FILE
All the paging space is defined in /etc/swapspaces.       # cat /etc/swapspaces
ENABLE
How to enable the paging space?      #swapon /dev/pagin00
DISABLE
How to disable the paging space?     #swapoff /dev/paging00


Friday, June 5, 2015

How to deal with performance monitoring in aix?

How to deal with performance monitoring in aix?



To display top 10 highly utilized files under /var FS: find /var –xdev –ls|sort +6rn|head

To list the top ten users of paging space in IBM AIX:  svmon -Pgt 10

To list the top ten users of realmem in IBM AIX:   svmon -Put 10

To see the memory usage of that process:  svmon –p pid       

To display top 10 CPU-consuming processes: ps aux | head -1; ps aux | sort -rn +2 | head

To display top 10 memory-consuming processes: ps -ealf | head -1 ; ps -ealf | sort -rn +9 | head

To display processes in order of being penalized: ps -eakl | head -1 ; ps -eakl | sort -rn +5

To display processes in order of priority: ps -eakl | sort -n +6 | head

To display processes in order of time: ps vx | head -1 ; ps vx | grep -v PID | sort -rn +3 | head -10

To display processes in order of real memory use: ps vx | head -1 ; ps vx | grep -v PID | sort -rn +6 | head -10

To display processes in order of I/O: ps vx | head -1 ; ps vx | grep -v PID | sort -rn +4 | head -10

To determining the PID of wait processes: ps vg | head -1 ; ps vg | grep -w wait









If you happy with the above topic, please leave your reactions.

Sunday, May 24, 2015

How to find out the top ten space consuming files in aix?

How to find out the top ten space consuming files in aix?


As a system admin, daily we are facing the disk utilization for the root and non root filesystems. At that time we need to find out the highly utilized files and based on the confirmation we proceed with housekeep.

If we receive /var filesystem utilizing above the threshold limit, we need to use the below command to find out the highly space consuming files. 


find /var -xdev -ls|sort +6rn|head -20


What the command will do?:

The command is really very very useful to find out top 20 high space consuming files under /var. The command check all the directory and sub-directory of /var and find out the highly space consuming files and display it. You can find out the file size on the 6th column and the files are list out in reverse order which means highly space consuming files are list out in first.

Note: please change the filesystem name on the second place of the command according to you.





If you like the above topic, please leave your reactions.

Thursday, January 17, 2013

How to solve "reading symbolic information ...dbx: fatal error: Not enough space"

reading symbolic information ...dbx: fatal error: Not enough space


Sometimes, app people wants to execute the dbx, but they stuck up with the below error.

Error:

Type 'help' for help.
[using memory image in core]
 reading symbolic information ...dbx: fatal error: Not enough space

Eventhough we have enough spaces on the filesystems, the server throw the "dbx: fatal error: Not enough space"

Solution:

Changing the ulimit (data) value will fix this issue.

Please change the data value to unlimited on the user attribute. It will fix the issue.

chuser data=-1 siva

Note: please make sure we have enough paging space on our server.


Monday, December 31, 2012

How to find the memory by the slots in AIX?

How to find the memory by the slots in AIX?

Using the below commands we can find out the memory slots in AIX.

                     #lscfg -vp |grep -p DIMM

Output:

#lscfg -vp |grep -p DIMM

Memory DIMM:
  Record Name.................VINI
  Flag Field..................XXMS
  Hardware Location Code......U787B.001.DNWG069-P1-C9-C1
  Customer Card ID Number.....312D
  Serial Number...............YH10MS83M07F
  Part Number.................15R7170
  FRU Number.................. 15R7170
  Size........................2048
  Version.....................RS6K
Physical Location: U787B.001.DNWG069-P1-C9-C1

Memory DIMM:
  Record Name.................VINI
  Flag Field..................XXMS
  Hardware Location Code......U787B.001.DNWG069-P1-C9-C3
  Customer Card ID Number.....312D
  Serial Number...............YH10MS7CH07D
  Part Number.................15R7170
  FRU Number.................. 15R7170
  Size........................2048
  Version.....................RS6K
Physical Location: U787B.001.DNWG069-P1-C9-C3

Memory DIMM:
  Record Name.................VINI
  Flag Field..................XXMS
  Hardware Location Code......U787B.001.DNWG069-P1-C9-C6
  Customer Card ID Number.....312D
  Serial Number...............YH10MS7CH1A6
  Part Number.................15R7170
  FRU Number.................. 15R7170
  Size........................2048
  Version.....................RS6K
Physical Location: U787B.001.DNWG069-P1-C9-C6

Memory DIMM:
  Record Name.................VINI
  Flag Field..................XXMS
  Hardware Location Code......U787B.001.DNWG069-P1-C9-C8
  Customer Card ID Number.....312D
  Serial Number...............YH10MS83M097
  Part Number.................15R7170
  FRU Number.................. 15R7170
  Size........................2048
  Version.....................RS6K
Physical Location: U787B.001.DNWG069-P1-C9-C8




Monday, December 24, 2012

How to find out the TOTAL/USED/AVAILABLE memory in AIX?

How to find out the total/used/available memory in AIX?

Sometime we are in the situation to find out the used memroy and available memory of aix server. Using the below script we can find out the total/free/used memory in aix.


#!/usr/bin/ksh
#memory calculator
um=`svmon -G | head -2|tail -1| awk {'print $3'}`
um=`expr $um / 256`
tm=`lsattr -El sys0 -a realmem | awk {'print $2'}`
tm=`expr $tm / 1000`
fm=`expr $tm - $um`
echo "\n\n-----------------------";
echo "System : (`hostname`)";
echo "-----------------------\n\n";
echo "Memory Information\n\n";
echo "total memory = $tm MB"
echo "free memory = $fm MB"
echo "used memory = $um MB"
echo "\n\n-----------------------\n";


Save the above script in a file and execute it.

#vi mem_calci     ---> paste the above script and save it
#chmod +x mem_calci   ---> provide the execute permission
#./mem_calci     ---> run the script

Sample output:

System : (Hostname)
-----------------------
Memory Information

total memory = 8126 MB
free memory = 6328 MB
used memory = 1798 MB
-----------------------



If you happy with above topic, Kindly rate your reactions/comments below

Wednesday, December 19, 2012

How to deal with SYSTEM DUMP dump in AIX ?


How to deal with system dump in AIX?

To list out the system dump attirbute: #sysdumpdev -l

To list out the last dump record details: #sysdumpdev -L

To know the potential size of the dump AIX would generate: #sysdumpdev -e

To change the primary dump device as sysdumpnull: #sysdumpdev -p /dev/sysdumpnull

To change the secondary dump device as sysdumpnull: #sysdumpdev -s /dev/sysdumpnull

To change the primary device permanently: #sysdumpdev -P -p <device_name>

To change the secondary device permanently: #sysdumpdev -P -s <device_name>

To create the secondary dump device: #mklv -t sysdump -y <dumplv_name> <vg_name> <no of PPs> <hard disk_name>  -----> #mklv -t sysdump -y lg_dumplv rootvg 6 hdisk0


To active the secondary dump device: #sysdumpdev -Ps /dev/lg_dumplv   (To activate the system dump is done by assigning it as the secondary device)

To initiate a dump, (which reboots the system as part of its process): # sysdumpstart -p

To change the copy directory use: #sysdumpdev -D <path_name>

To change "always dump condition use": #sysdumpdev -k for false, sysdumpdev -K for true

To change the type of dump use: #sysdumpdev -t <fw-assisted | traditional>

To need to uncompress the file use the dmpuncompress utility: #dmpuncompress  < filename >   (dmpuncompress vmcore.0.BZ)

To copy the most recent system dump from a system dump device to a directory, use the savecore command. For example, to copy the dump to the directory /var/adm/ras, use the below commands:   #savecore -d /var/adm/ras    (validate using:   ls -l dump_file_copy.BZ)

How to leave a system dump while rebooting the server from hmc?
chsystate -m managedSystemName -r lpar -n lparName -o dumprestart