1831151 Members
2537 Online
110020 Solutions
New Discussion

memory question

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

memory question

Hey guys,

how does one prevent itself from runnng out of memory?

How can I control the amount of memory a process can use?
4 REPLIES 4
Hai Nguyen_1
Honored Contributor
Solution

Re: memory question

Sanman,

If you have glance, you can configure it in advisor mode to notify you of memory botteneck.

In addition, you can take a look at HP optional product which allows you to specify a specific amount of system resource for a specific process (or a group of processes.)

Hai
Hai Nguyen_1
Honored Contributor

Re: memory question

Sanman,

I forgot to mention the HP optional product which is Process Resource Management (PRM.)

Hai
MANOJ SRIVASTAVA
Honored Contributor

Re: memory question

Hi Sanman

The first and foremost thing is to know what can the system handle . Please check for the kernel parameters to know the limits of the system and tune them in case you think that there something lacking .

http://docs.hp.com/hpux/onlinedocs/os/KCparams.OverviewAll.html

is a popular place to look for the limits , also you need to look for o/p's of glance , vmstat to know whether you are saturating the memory or not.


Manoj Srivastava
A. Clay Stephenson
Acclaimed Contributor

Re: memory question

Those values are ultimately controlled by the maximum addressable space. There are three kenel values maxtsiz (text or instructions), maxdsiz (initiazlized data, dynamic memory), and maxssiz (stack space, local unitialized variables). There are also 64bit versions of these vales. These three tunables define the maximum values on a global basis. It is normally a good idea to not set these values to extremely large values because this can allow a rogue process to grab all the system resources. You can also use the ulimit command to decrease these settings for a particular process but only a super-user is allowed to increase them.
If it ain't broke, I can fix that.