Command to fresh the memory !


 
Thread Tools Search this Thread
Operating Systems AIX Command to fresh the memory !
# 1  
Old 11-11-2009
Command to fresh the memory !

Command to fresh the memory !

Some time during some load on the AIX system memory will get hang and will not respond for any new process.

Can you please helper me with command to fresh the memory to avoid that hanging on the memory.
ITHelper
# 2  
Old 11-11-2009
First of all - what you describe is called forking and it should not happen if you have sufficient memory + pagingspace in your box and lru_file_repage is switched off. If it happens frequently, you very likely have insufficient memory in your box or some memory leaks.
Please check your avm value (what is shown in 4k pages!!) with the vmstat command - a healthy box is somewhere around 80% of physical memory. If you're dramatically exceeding it, you simply need to add physical memory or reduce the consumtion.
Check with vmo command the value of lru_file_repage - if its set to 0, than your system rarely uses pagingspace (as long as you have enough physical memory) and your system should not fork at all.
As far as I know, the only fast and reliable way apart from killing the top memory consuming processes (what is sometimes not possible because it would require to start a new process what's usually not possible when your box is really forking/inresponsive) to refresh memory is to reboot the box.
If it's possible that you're out of memory because i.e. a crashed database did not free up its shared memory, you can give it a try using ipcrm on the misallocated shared memory segments - but be careful that you don't do it on shared memory actually in use. And as stated before - this only works if you have enough free memory to start a new process. So you need to give it again and again a try until it works.
Hope that helps,
kind regards
zxmaus
# 3  
Old 11-12-2009
You might probably be interested to read this thread where we have gone through the motions of tuning a system. Perhaps not everything will apply to your problem, but some of it will probably.

I hope this helps.

bakunin
# 4  
Old 11-12-2009
I came today across an undocumented command that might do what you want if you have bos.perf.tools installed - but I would be very careful doing this EVER on a production system: /usr/lib/perf/crush

It basically tells the VMM's page stealer to switch to an "aggressive" mode that may end up freeing pages that applications have not touched in a while.

usage:
Code:
/usr/lib/perf/crush <integer>

you calculate the integer using output from 'svmon -G' : memory size total - memory pinned = <integer>

Rumor has it that it was developed for internal IBM use to clean memory pages before running benchmark applications.

Your applications might slow down for a moment but you will see a much bigger free list afterwards.

Kind regards
zxmaus
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Solaris

I 'd like to start fresh.

How can I deinstall or delete the whole environment and delete everything (all the files, group, users). I would like to start fresh. I 'd like to install ORACLE 12c. Create users from scratch, create group from scratch etc) Why? I installed Oracle 11g on Solaris. It had an ORACLE_BASE,... (6 Replies)
Discussion started by: newborndba
6 Replies

2. UNIX for Dummies Questions & Answers

Very fresh to UNIX

Hello all, I am very new to unix. Can anybody suggest me good learning videos and their links for UNIX. Thanks (1 Reply)
Discussion started by: nnani
1 Replies

3. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

4. Solaris

memory manufacturer command

Does anybody know the command i issue to find out the manufacturer of the RAM modules in my machine ....ie KINGSTON etc ....i know there is one because I saw sombody use it the other day cheers (1 Reply)
Discussion started by: hcclnoodles
1 Replies

5. Filesystems, Disks and Memory

Memory Command

Hello, What are the comparative command in solaris for checking the memory and produced the output as free -m does in linux. (1 Reply)
Discussion started by: 009satyendra
1 Replies

6. Solaris

fresh admin

hi everybody i'm just recreuted as UNIX system admin... please tell me from where do i have to begin... best regards (8 Replies)
Discussion started by: hmaiida
8 Replies
Login or Register to Ask a Question