- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: using wdb to see processes memory usage
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
Forums
Discussions
Discussions
Discussions
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
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
05-27-2007 08:45 PM
05-27-2007 08:45 PM
using wdb to see processes memory usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2007 09:00 PM
05-27-2007 09:00 PM
Re: using wdb to see processes memory usage
Two possibilities spring to mind.
1) Your code is bad and isn't really releasing the memory.
2) wdb has a problem correctly showing this.
Its more than likely not the OS as you surmise. The system should be normally patched with a recent bi-annual patch update.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2007 09:06 PM
05-27-2007 09:06 PM
Re: using wdb to see processes memory usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2007 09:11 PM
05-27-2007 09:11 PM
Re: using wdb to see processes memory usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2007 09:40 PM
05-27-2007 09:40 PM
Re: using wdb to see processes memory usage
Sk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2007 10:13 PM
05-27-2007 10:13 PM
Re: using wdb to see processes memory usage
If you call mallinfo(3), you should see an increase in free blocks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2007 01:51 AM
05-28-2007 01:51 AM
Re: using wdb to see processes memory usage
total space in arena=1178904
number of bytes in free small blocksfsmblks=121248
number of bytes in free ordinary blocks=113824
number of holding blocks=71
number of bytes in holding block headers=4080
cost of enabling keep option=0
number of ordinary blocks=14
number of small blocks=7100
number of bytes in ordinary blocks in use=7100
number of bytes in small blocks in use=864352
***********After malloc 1000000 bytes
total space in arena=2096408
number of bytes in free small blocks=121248
number of bytes in free ordinary blocks=23056
number of holding blocks=71
number of bytes in holding block headers=4080
cost of enabling keep option=0
number of ordinary blocks=16
number of small blocks=7100
number of bytes in ordinary blocks in use=7100
number of bytes in small blocks in use=864352
***********After free 1000000 bytes
total space in arena=2096408
number of bytes in free small blocks=121248
number of bytes in free ordinary blocks=1023088
number of holding blocks=71
number of bytes in holding block headers=4080
cost of enabling keep option=0
number of ordinary blocks=15
number of small blocks smblks=7100
number of bytes in ordinary blocks in use=7100
number of bytes in small blocks in use=864352
You are rigth...de number of in free ordinary blocks are increased. So, the memory is not given to de OS. Can i configure somethig to give this memory to the OS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2007 02:49 AM
05-28-2007 02:49 AM
Re: using wdb to see processes memory usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2007 12:29 PM
05-28-2007 12:29 PM
Re: using wdb to see processes memory usage
Why do you want to do that? Are you short on memory or swap space?
In general, no. There is M_REL_LAST_FBLK for mallopt(3) that may help.
I suppose if you only have one big request, you could use mmap/munmap(2)
(google doesn't find MALLOC_TRIM_THRESHOLD on any HP sites.)
Since this is your first question to the forum, please read the following:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33