release fre swap memory on AIX

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users release fre swap memory on AIX
# 1  
Old 09-17-2011
Hammer & Screwdriver release fre swap memory on AIX

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?

# 2  
Old 09-17-2011
Never heard of such things.
Anyways why do you want such thing?
All I know are the following increasing , decreasing , activating and deactivating swap space.
The only way that I know is to deactivate swap to free up disk space , that if you don't want to go with reboots.
# 3  
Old 09-23-2011
in linux works "swapoff / dev / sdaX" or "swapoff / dev / vg_xxxx / lv_swap" also can do "sysctl-w vm.swapiness = 10" default 60, this works on Linux for AIX should be "swapoff / device ". This will not affect the operation of the OS but it is best not to, it should be noted that the swap buffers are copied to the ram and you should check you have enough space.
# 4  
Old 09-23-2011
Originally Posted by sombralibre
in linux works "swapoff / dev / sdaX" or...
Linux is unusual in having "virtual swap" where swap is not needed for all memory.

I think AIX is like most other UNIX where all active memory must be backed by swap -- not that writes all memory to disk all the time, but when 500MB memory is allocated, 500MB gets reserved for this memory should it need to be swapped out. So I don't think just turning off all swap is tenable here.

Having to allocate which swap to use after-the-fact like Linux does can sometimes result in 'overcomitting' when the system tries to use more swap space than you actually have, runs out of memory, and has to start killing things to make room.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

SWAP memory

Admins, How can I configure the server so that it will utilize the swap file as little as possible? Please correct me if I'm wrong, I would say change the value of sysctl - vm.swappiness? And if, how can I keep it permenatly even after rebooting the system? since no related parameters in... (7 Replies)
Discussion started by: leo_ultra_leo
7 Replies

2. 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

3. Red Hat

Swap memory

Hi team, Is there any ability to force the system to use the swap memory for a specific service? And prevent another service of using the swap memory? Thanks (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies

4. HP-UX

How much Swap memory do i have ?

here is the output of swapinfo command ==> swapinfo Kb Kb Kb PCT START/ Kb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 8192000 0 8184000 0% 0 - 1 /dev/vg00/swap reserve - 8184000 -8184000 memory ... (5 Replies)
Discussion started by: mohtashims
5 Replies

5. UNIX for Dummies Questions & Answers

Is swap and Shared memory the same ?

In Linux, Unix environments Is swap and Shared memory the same ? In Linux, swap is mounted on /dev/shm ? I am wondering if the naming of 'shm' has anything to do with Shared memory ? (3 Replies)
Discussion started by: kraljic
3 Replies

6. UNIX for Dummies Questions & Answers

Threshold for swap memory

hi guys the monitoring team is using a tool for monitoring linux boxes and they set an alarm for swap memory to 10%(critical) I really has no idea when swap memory usage is high.... Can someone recommend me a threshold for this? when is warning or critical and this parameters can affect... (3 Replies)
Discussion started by: karlochacon
3 Replies

7. UNIX for Advanced & Expert Users

Query regarding swap memory

Hi, Please help explain and answer the below: 1. I need to predetermine how much swap will my JVM use if it is started with -Xms 512M and -Xmx 1024M ? 2. Can a JVM process just use the Heap and not the Swap memory ? 3. If the Total physical RAM on my server is 8 GB and current Heap... (6 Replies)
Discussion started by: mohtashims
6 Replies

8. UNIX for Dummies Questions & Answers

swap memory

Hi, I want to see used swap memory I know that for this there is command free -m but this shows Swap: 16383 4529 11854 by top command while load is 1.05 max CPU % 24 mysqld why used swap shows 4529 either it is not flushed there is other command... (2 Replies)
Discussion started by: kaushik02018
2 Replies

9. Solaris

swap memory

Hi Can any help me on setting the swap memory ? I would like to set swap memory for installing oracle 9i software. RAM - 512 Mb HDD - 40 Gb OS - Sun Solaris 5.9 (6 Replies)
Discussion started by: sivaramat
6 Replies

10. Filesystems, Disks and Memory

Total Memory/Swap Memory

I need to put a program together to determine the total, available memory and total and available swap on unix machines. I have been searching for weeks and I seem to run into dead ends. Every unix platform I look at has a different way to determine memory info. Any sugggestions or new... (4 Replies)
Discussion started by: ghe1
4 Replies
Login or Register to Ask a Question