Operating System - HP-UX
1844030 Members
3106 Online
110226 Solutions
New Discussion

memory for a particular process

 
SOLVED
Go to solution
antonio elder prado
Regular Advisor

memory for a particular process

Hi,
do you know if it is possible to dedicate , say 80% of memory to a particular process.
do you think nice would do the trick ?
basically I have a machine with 7G of memory and some developers need to get at least 5G to a particular process.
TIA
./antonio/.
6 REPLIES 6
RAC_1
Honored Contributor
Solution

Re: memory for a particular process

You need to educate your developers. Why they so much memory?? What part of program will take that much memory?? text, data, stack??

Technically you can do that, provided you satisfy certain conditions. - program needs to be 64 bit program. you need to have PRM product-lisenced product. But I think you wont need that much. If system has enough memory, your program can run withour any performance problem. You also need to take into consideration what else you are running on the system.

Anil
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: memory for a particular process

HP makes a separate, purchaseable product called Process Resource Manager (PRM) to do just this sort of tuning.


Pete

Pete
Peter Godron
Honored Contributor

Re: memory for a particular process

Antonio,
nice and renice would change the priority of the program on the CPU, but if another process already has memory, would not necessarily release the memory.

Can you increase the swap area, wait for a less busy time to run or sit in the background grabbing memory (malloc) as it becomes free?

Regards
Geoff Wild
Honored Contributor

Re: memory for a particular process

PRM:

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3835DA

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Clay Stephenson
Acclaimed Contributor

Re: memory for a particular process

Nice will not do this. You can purchase the PRM (Process Resource Manager) package to do this. I assume that you have already increased maxdsiz_64bit, maxssiz_64bit, and maxtsiz_64bit as well as shmax up to the required values. You should be aware that these limits apply to virtual memory and not physical memory. Normally, code requiring this much memory should be dynamically allocated and should adapt itself to whatever limits it encounters or at least issue an error message and exit. If your developers are not using dynamic memory allocation for data structures this large then replace your developers.
If it ain't broke, I can fix that.
antonio elder prado
Regular Advisor

Re: memory for a particular process

thank you all, seems that PRM is the way to go to resolve this immediate problem.


./antonio/.