HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: process memory usage in 10.x machine
Operating System - HP-UX
1833452
Members
3331
Online
110052
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
Go to solution
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
03-13-2002 07:47 AM
03-13-2002 07:47 AM
I understand that when i use "delete" operator call or free() call in c++, i'm releasing memory from the process to the operating system(HP 10.20).
But why does Glance doesnt show the decrease in process memory usage .
even "top" command doesnt reflect the change in the mem. usage of the process?
But why does Glance doesnt show the decrease in process memory usage .
even "top" command doesnt reflect the change in the mem. usage of the process?
how much i know depends on how little you know
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 07:56 AM
03-13-2002 07:56 AM
Solution
Because it really doesn't. Part of the schedulers task is to help the system determine what the high and low memory requirements are per process. That way, when/if the process starts to demand more memory, it will already have it reserved. But if the system needs to "reclaim" it, it will.
http://docs.hp.com/hpux/onlinedocs/os/11i/mem_mgt.html
live free or die
harry
http://docs.hp.com/hpux/onlinedocs/os/11i/mem_mgt.html
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 07:58 AM
03-13-2002 07:58 AM
Re: process memory usage in 10.x machine
Hi:
I can't believe I just answered the same question.
When you free process memory using free(), the memory is not returned to the OS but rather goes back on the process's heap forereuse by the same process. You can use the sbrk() system call with a negative vaue to decrease allocated process space but this is not for the faint of heart. If you use sbrk(), you must not use any of the higher-level memory allocation/free functions or absolute chaos including crashes is almost guaranteed.
Regards, Clay
I can't believe I just answered the same question.
When you free process memory using free(), the memory is not returned to the OS but rather goes back on the process's heap forereuse by the same process. You can use the sbrk() system call with a negative vaue to decrease allocated process space but this is not for the faint of heart. If you use sbrk(), you must not use any of the higher-level memory allocation/free functions or absolute chaos including crashes is almost guaranteed.
Regards, Clay
If it ain't broke, I can fix that.
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