- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find released memory of a process ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 07:32 AM
тАО08-18-2009 07:32 AM
How to find released memory of a process ?
It is good that OS holds the memory to use for the next memory requirement but this feature is severely affecting our application. It is reaching maxdsiz limit and atlast resulting in ENOMEM error.
1. Is there anyway to forcefully tell the OS to return the released memory ?
2. Is there any tool to know how much memory has been retained by the OS which is released by the process ?
- Tags:
- free
- heap usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 07:42 AM
тАО08-18-2009 07:42 AM
Re: How to find released memory of a process ?
read the man pages for both commands and see if it suits your purpose.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 07:47 AM
тАО08-18-2009 07:47 AM
Re: How to find released memory of a process ?
> It is observed that in Unix flavors, even if a process releases memory the OS doesn't return it...
Yes, that is the idea of the "heap". The design intention is to minimize some of the overhead of memory allocation/deallocation.
> It is good that OS holds the memory to use for the next memory requirement but this feature is severely affecting our application. It is reaching maxdsiz limit and atlast resulting in ENOMEM error.
Then your application needs to be re-worked or you need to increase 'maxdsiz' or 'maxdsiz_64bit' for 32-bit or 64-bit processes, respectively.
> 1. Is there anyway to forcefully tell the OS to return the released memory ?
I don't know, but again, if your application 'free()'s 'malloc()'ed memory then that memory will be returned to the heap and will be available for a new 'malloc()' request.
> 2. Is there any tool to know how much memory has been retained by the OS which is released by the process ?
I don't know the answer to that, either.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 08:52 AM
тАО08-18-2009 08:52 AM
Re: How to find released memory of a process ?
The process isn't releasing memory. The user frees it and libc keeps it around.
>It is reaching maxdsiz limit and at last resulting in ENOMEM error.
This has nothing to do with your original statement. If you reach maxdsiz, you have a leak or heap fragmentation. Any space that you freed would be reused.
>2. Is there any tool to know how much memory has been retained by libc which is freed by the process?
You can call mallinfo(3) and print the various memory types.
- Tags:
- mallinfo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2009 12:11 AM
тАО08-19-2009 12:11 AM
Re: How to find released memory of a process ?
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1360331
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1355634
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1351858
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1266550
- Tags:
- heap fragmentation