Low Virtual memory available


 
Thread Tools Search this Thread
Operating Systems AIX Low Virtual memory available
# 1  
Old 02-21-2012
Low Virtual memory available

Hi

I am running AIX 5.2. My server is running low on memory. It it using about 1307775 file pages on a total of 1511424 (from vmstat -v).

I looked at the memory yesterday morning, and we had plenty of free memory. I did a backup from Windows (ftp mget command) of a large file selection. From this moment, free memory dropped to very low.

Question #1 : how do I prevent that to happen?
Question #2 : how do I "flush" memory for it to be normal, without restarting my server?

Here is the result of vmstat -v :
Code:
 vmstat -v                                                    
 1511424 memory pages                                         
 1462705 lruable pages                                        
     184 free pages                                           
       1 memory pools                                         
   60528 pinned pages                                         
    80.1 maxpin percentage                                    
    20.0 minperm percentage                                   
    80.0 maxperm percentage                                   
    89.4 numperm percentage                                   
 1307775 file pages                                           
     0.0 compressed percentage                                
       0 compressed pages                                     
     0.0 numclient percentage                                 
    80.0 maxclient percentage                                 
       0 client pages                                         
       0 remote pageouts scheduled                            
      32 pending disk I/Os blocked with no pbuf               
       0 paging space I/Os blocked with no psbuf              
  198714 filesystem I/Os blocked with no fsbuf                
       0 client filesystem I/Os blocked with no fsbuf         
       0 external pager filesystem I/Os blocked with no fsbuf

Thanks

Last edited by jim mcnamara; 02-21-2012 at 11:07 AM..
# 2  
Old 02-21-2012
Are you getting errors in another application, or do you just want to see memory free? File memory (like reading large files to perform a backup) will not be freed unless that memory is needed for something else.
Padow
# 3  
Old 02-21-2012
Just getting slow system... slow backup,, slow execution of programs, no errors...
I restarted the server, and now memory looks great.

How does FTP files transfer can fulls memory like that? there must be a way to prevent that?

Thanks for your reply!
# 4  
Old 02-21-2012
I don't think high "file pages" is bad per se, if that's disk cache like the documents I've found suggest. The OS should give that up as easily as "free", and when the right things get cached(frequently used programs and data) it's not just harmless, it's highly beneficial.

But large amounts of disk access can cause cache pollution -- all the "good" disk cache of frequently-used programs and data gets recycled, to make room for the "more recent" disk activity caused by a big FTP transfer.

This useless cache will be replaced by better things once they're used again, but not before, which may be surprisingly slow once you're used to how fast they work when cached...
# 5  
Old 02-21-2012
Code:
198714 filesystem I/Os blocked with no fsbuf

This clearly shows that you are running out of filesystem buffer (bufstruct) causing slow I/O. You can increase the number of bufstructs per file system, known as numfsbufs, with the ioo command and remount the file system. Check man page of ioo for details or go to here: Help - AIX 6.1 Information Center
# 6  
Old 02-21-2012
can you post vmstat -v

I guess your system is paging a lot (or scanning and freeing pages in significant amount).
Your minperm value is set to 20% which is approx 26000 pages - you might want to reduce this to give the box some air to breathe.

For AIX 5.2 with ML greater 4, IBM used to recommend usually below tunables

Code:
vmo -p -o minperm%=5
Leave maxperm and maxclient at default of 80
Leave strict_maxperm and strict_maxclient at their defaults
vmo -p -o minfree=960
vmo -p -o maxfree=1088
vmo -p -o lru_file_repage=0
vmo -p -o lru_poll_interval=10
ioo -p -o j2_maxPageReadAhead=128
ioo -p -o maxpgahead=16
ioo -p -o j2_maxRandomWrite=32
ioo -p -o maxrandwrt=32
ioo -p -o j2_nBufferPerPagerDevice=1024
ioo -p -o hd_pbuf_cnt=1024
ioo -p -o numfsbufs=1024

Regards
zxmaus
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Linux live cd for low memory

Could I please get some recommendations of a linux live cd for low memory? (1 Reply)
Discussion started by: cokedude
1 Replies

2. Red Hat

GUI for RHEL5 on low memory system

I've got RHEL5 running in CLI mode on a powerful workstation. It was a Pentium Pro 200 Mhz, but was upgraded to the new Pentium II Overdrive 333 Mhz chip. This machine has 128 MB of RAM. The video card is an ATI Radeon 9250. RHEL5 runs fine in 128 MB in CLI mode. It won't run in GUI mode... (7 Replies)
Discussion started by: lupin..the..3rd
7 Replies

3. AIX

High Runqueue (R) LOW CPU LOW I/O Low Network Low memory usage

Hello All I have a system running AIX 61 shared uncapped partition (with 11 physical processors, 24 Virtual 72GB of Memory) . The output from NMON, vmstat show a high run queue (60+) for continous periods of time intervals, but NO paging, relatively low I/o (6000) , CPU % is 40, Low network.... (9 Replies)
Discussion started by: IL-Malti
9 Replies

4. UNIX for Dummies Questions & Answers

cpu, memory and virtual memory usage

Hi All, Does anyone know what the best commands in the UNIX command line are for obtaining this info: current CPU usage memory usage virtual memory usage preferably with date and time parameters too? thanks ocelot (4 Replies)
Discussion started by: ocelot
4 Replies

5. AIX

ulimits max locked memory virtual memory

Hi, Would any one be so kind to explain me : are ulimits defined for each user seperately ? When ? Specialy what is the impact of : max locked memory and virtual memory on performance of applications for a user. Many thanks. PS : this is what I can see in MAN : ulimit ] ... (5 Replies)
Discussion started by: big123456
5 Replies

6. Programming

about virtual memory and memory leak

Hi, First of all I appreciate this group very much for its informative discussions and posts. Here is my question. I have one process whose virtual memory size increases linearly from 6MB to 12MB in 20 minutes. Does that mean my process has memory leaks? In what cases does the... (4 Replies)
Discussion started by: shriashishpatil
4 Replies
Login or Register to Ask a Question