HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory usage
Operating System - HP-UX
1829107
Members
2581
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-14-2001 11:06 AM
02-14-2001 11:06 AM
memory usage
Okay - I'm told that when a programmer makes a call to free() in hpux 10.20 - the memory is only available to the executable that originally malloc'd the memory to begin with - versus being returned to the system wide pool of available memory.
Example: We have an application that is 'supposedly' not leaking memory - however when reviewing with Glance, the Virtual and Resident memory will increase with certain usages of this program's functionality - but never decrease.
Are there any known 'isms' with regard to hpux 10.20 (December 1999 Gen. Release patches)?
thanks in advance,
Ken
Example: We have an application that is 'supposedly' not leaking memory - however when reviewing with Glance, the Virtual and Resident memory will increase with certain usages of this program's functionality - but never decrease.
Are there any known 'isms' with regard to hpux 10.20 (December 1999 Gen. Release patches)?
thanks in advance,
Ken
Lead, Follow, or Get out of the Way! - USMC
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2001 01:07 PM
02-14-2001 01:07 PM
Re: memory usage
This is correct. Once allocated, process virtual memory is never really freed back to the system. However, the malloc/free calls maintain their own pool of free memory. When you call free(), you make the memory available to subsequent malloc() calls so that they don't have to keep extending the processes' data segment by calling sbrk(). Well behaved programs that malloc/free correctly, should not leak memory.
The K&R C book has an example implementation of malloc() and free() that show what is going on.
-sam
The K&R C book has an example implementation of malloc() and free() that show what is going on.
-sam
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP