aix swap


 
Thread Tools Search this Thread
Operating Systems AIX aix swap
# 1  
Old 02-12-2006
aix swap

I have an unsupported legacy server:

# uname -a
AIX ibmms01 3 4 0054960A4C00

Following a period of poor performance, it was investigated using vmstat 10.
There upto 10 blocked kernel threads reported, and free memory was down to 123. The scan rate was high, 3000+ with lots of page in page out activity.

There was ample space on the file systems, the CPU was 60% idle.

The RAM was checked:

# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 2272MB 50 yes yes lv
# lsdev -C | grep mem
mem0 Available 00-00 Memory
# lsattr -El mem0
size 2048 Total amount of physical memory in Mbytes False
goodsize 2048 Amount of usable physical memory in Mbytes False
#

This shows 2Gb RAM and 2 Gb swap space. Does the output of lsps -a show that only 50% of current available space is allocated for swap? If so how can the remaining 50% be allocated?

I've had a look in SMIT, but nothing seems obvious?

Thanks,

Jabberwocky
# 2  
Old 02-12-2006
I don't use AIX and I do not understand the commands you used except for vmstat. But I can make a few general comments. It is not clear from your post what effect you would like to have on your system. Running out of swap would be a disaster. You would get messages like "can't fork", "out of memory", etc. Many programs do not handle errors like these very well. The box well might crash or lock up and a reboot would be needed to get things going again. Running out of swap means that you are out of virtual memory. Running out of physical memory is not good but perhaps not a disaster. If vmstat showed you a scan rate of 3000+, you clearly had been out of physical memory for some time. Generally, the box can run in this state, but with a performance impact. If you want to check your swap to ensure that were not close to a disasterous out-of-swap condition, that is a great idea, and I hope some AIX expert comes along who knows those other commands you used. But if you want to address that performance problem, you will need more memory. You may be able to make a modest impact on the severity of the performance problem by distributing your swap across more disks. But adding more memory can make the performance problem go away.
# 3  
Old 02-12-2006
Excuse my previous vagueness.
My point is the output of lsps -a gives:

# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 2272MB 50 yes yes lv

The %Used field value is 50 - does that mean that it is possible to
free up another 2272Mb of swap space on this AIX box?
If so, how?
I can see the swap on the root volume group in smit, but it is not clear
how to allocate the rest (if any exists) of the physical space on the
device.

Thanks,

Jabberwocky
# 4  
Old 02-13-2006
You are only using 50% of your allocated swap space. In this case about 1.1G of swap.

Your real memory and swap are seperate devices. You have 2G of real memory AND 2.2G of swap space.
# 5  
Old 02-13-2006
understood

I think that has cleared it up lsps -a gives real time % usage of swap space.
I was originally thinking that the % Used column gave that amount of device- based swap space that has been allocated as in Solaris Disk Suite or Veritas Volume manager. The remaining space could then be allocated for use as swap space.
I now see that you mean this % Use figure relates to the current usage of swap space.

Thanks for your help.

Jabberwocky
# 6  
Old 02-16-2006
Perhaps you haven't set any kernel tuning parameters. Per default MINPERM/MAXPERM is 20/80, try 10/40 and monitor the effect.

Also the MINFREE/MAXFREE parameters may have to be adjusted, but without more information i can't give you any detailed advice.

Use "/usr/samples/kernel/vmtune" (better consult the manpage before, this can send your machine to electronic nirwana) to set kernel tuning parameters.

You can use the vmtune utility to change parameters only until the next reboot. If you want your parameters to survive the reboot put them into an rc-file.

Btw. it is expected behavior that your machine doesn't have more meory free - AIX doesn't want memory to go wasted and will it assign to *any* task before leaving it unused.

bakunin
# 7  
Old 02-16-2006
kmtune vs lsattr

Thanks for your info. I have used lsattr -E -l sys0 command to look at the tunable kernel parameters. I cannot find any mention of minperm/maxperm nor minfree/maxfree in the output. Can these parameters only be accessed via kmtune? The box has live applications on it, so if invoking kmtune will affect the server in anyway, it won't be used.

The full output of lsattr -E -l sys0 gives:

# lsattr -E -l sys0
keylock normal State of system keylock at boot time False
maxbuf 20 Maximum number of pages in block I/O BUFFER CACHE True
maxmbuf 0 Maximum Kbytes of real memory allowed for MBUFS True
maxuproc 256 Maximum number of PROCESSES allowed per user True
autorestart false Automatically REBOOT system after a crash True
iostat true Continuously maintain DISK I/O history True
realmem 2097152 Amount of usable physical memory in Kbytes False
conslogin enable System Console Login False
fwversion IBM,M2P00279 Firmware version and revision levels False
maxpout 0 HIGH water mark for pending write I/Os per file True
minpout 0 LOW water mark for pending write I/Os per file True
fullcore false Enable full CORE dump True
pre430core false Use pre-430 style CORE dump True
rtasversion 1 Open Firmware RTAS version False
modelname IBM,7026-H80 Machine name False
systemid IBM,01654960A Hardware system identifier False
boottype disk N/A False
SW_dist_intr false Enable SW distribution of interrupts True
cpuguard disable CPU Guard True
#

Are there any parameters here that need their values changing?

Thanks,

Jabberwocky
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Add additional swap place on AIX server

Can anyone help me the detailed procedure and commands to follow to add additional swap on aix server . My system shows following as of now , #lsattr -E -l sys0 -a realmem realmem 13893632 Amount of usable physical memory in Kbytes False #pstat -s PAGE SPACE: USED PAGES FREE... (7 Replies)
Discussion started by: gull05
7 Replies

2. Solaris

Explain the output of swap -s and swap -l

Hi Solaris Folks :), I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands. $swap -s total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available $swap -l swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies

3. AIX

AIX swap space, physical memory & cache

Hi, I am new to AIX, Can someone please help me how to know the swap space, total physical memory and system cache? We are using AIX 5.3. Thanks! (3 Replies)
Discussion started by: Phaneendra G
3 Replies

4. Solaris

swap

Hi, Can somebody please help here, since iam just a beginner. According to my book knowledge. the Avalilable memory calculated by swap -l (includes only swap) should be small as compared to swap -s value(includes Virtual memory=swap +physical). but this is quite opposite in my case. swap... (6 Replies)
Discussion started by: Laxxi
6 Replies

5. UNIX for Advanced & Expert Users

release fre swap memory on AIX

Hello, How is it possible to free swap memory on AIX. when i do vmstat on machine i can see less than 1 Gb "fre" when usually I have around 5 GB. I dont wont to reboot the server. any idea? Thanks. (3 Replies)
Discussion started by: LiorAmitai
3 Replies

6. HP-UX

Swap device file and swap sapce

Hi I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system: - I would like to know when does the memory swap space spill over to the device swap space? - And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies

7. Red Hat

swap not defined as swap

free -m : 1023 total swap space created default partition /dev/sdb1 50M using fdisk. i did write the changes. #mkswap /dev/sdb1 #swapon /dev/sdb1 free -m : 1078 total swap space this shows that the swap is on Question : i did not change the type LINUX SWAP (82) in fdisk. so why is... (5 Replies)
Discussion started by: dplinux
5 Replies

8. Solaris

Swap config - Mirror swap or not?

Hello and thanks in advance. I have a Sun box with raid 1 on the O/S disks using solaris svm. I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space. I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

9. Solaris

swap -l

When i try to type swap -l ,nothing come out but blinking. May i know what is the problem and solutions ? thanks (6 Replies)
Discussion started by: Farbegas
6 Replies

10. UNIX for Dummies Questions & Answers

About swap

Is it really so that if swap will be located in the begining of hard drive, than it will work faster? (1 Reply)
Discussion started by: Ty3
1 Replies
Login or Register to Ask a Question