How Progress Use SWAP Memory

cferriol

Member
Hi
In my DB server the memory is almost time at 90% but swap is never used.
How can I reduce RAM comsuption and send some processes to SAWP?
I used Fedora Core 3
Carlos
 

Casper

ProgressTalk.com Moderator
Staff member
Do you know what processes consumes most of the memory?
The OS knows best what to swap and what not. Since no swap is used it means the memory can handle everything, which I suppose is a good thing.

There are some processes which you absolutely don't want to swap like the shared memory (-B). Therefore it's wise to use -pinshm parameter which prevents shared memory form swapping.

Do you experience any problems, since you want the system to swap?
How much RAM is on the box? What is your -B and db blocksize, databse size, # of users, version of Progress?


Regards,

Casper.
 

TomBascom

Curmudgeon
Hi
In my DB server the memory is almost time at 90% but swap is never used.

This is as it should be.

And it's almost completely without meaning.

Modern operating systems almost always use almost all memory almost all of the time.

The reason that most memory is being used most of the time is that if the OS has nothing better to do with it RAM is allocated to filesystem buffers. As other processes have more legitimate needs for the memory it is released to them and the buffer space shrinks (to a minimum which is usually much bigger than it needs to be).

Unfortunately this means that most simple measures of memory utilization are pretty much useless.

How can I reduce RAM comsuption

Run less stuff and set discretionary memory utilization parameters (such as -B) to lower values. But you probably don't really want to do that -- it will almost certainly hurt performance.

and send some processes to SWAP?

You really don't want to do that. Especially not on purpose. Swapping is a very, very bad thing. It is what the OS does when it would otherwise crash for lack of memory. Performance really, really sucks when you start swapping. (Actually it usually starts to suck long before you get to that point since heavy paging will occur before the OS resorts to swapping -- and heavy paging is also really, really bad for performance.)

I used Fedora Core 3
Carlos

You should look in /proc for finer grained information about your memory use. I haven't got a Linux system handy at the moment but the data is in there somewhere.

You might also want to obtain "nmon". It's a very good monitoring tool.
 
Top