- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- data segment usage
Operating System - HP-UX
1820614
Members
1787
Online
109626
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
Discussions
Discussions
Discussions
Forums
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
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
тАО07-05-2001 02:10 PM
тАО07-05-2001 02:10 PM
data segment usage
Hi
What can we know the amount of data segment and dynamic stack segment is being used.
We need these to change the values of maxdsiz and maxssiz.
Praveen
What can we know the amount of data segment and dynamic stack segment is being used.
We need these to change the values of maxdsiz and maxssiz.
Praveen
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2001 02:22 PM
тАО07-05-2001 02:22 PM
Re: data segment usage
Hi,
Essentially all of the run-time tools (top, ps, glance) can only give you totals. If the code was compiled with profiling diagnostics are possible. It is almost impossible to monitor statck usage as this changes from moment to moment and is data dependent. In any event, it does no harm whatsoever (and consumes no resources) to set maxdsiz, maxtsiz, and maxssiz quite large). It is very ununusual for maxssiz to need to exceed 64MB and 512MB is a large maxdsiz. You can go bigger still and it does no harm. The only downside to very large values is that a runaway memory hog will not die as quickly and thus tie up resources for a longer period.
Clay
Essentially all of the run-time tools (top, ps, glance) can only give you totals. If the code was compiled with profiling diagnostics are possible. It is almost impossible to monitor statck usage as this changes from moment to moment and is data dependent. In any event, it does no harm whatsoever (and consumes no resources) to set maxdsiz, maxtsiz, and maxssiz quite large). It is very ununusual for maxssiz to need to exceed 64MB and 512MB is a large maxdsiz. You can go bigger still and it does no harm. The only downside to very large values is that a runaway memory hog will not die as quickly and thus tie up resources for a longer period.
Clay
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2001 03:30 AM
тАО07-08-2001 03:30 AM
Re: data segment usage
You could use pst_status::pst_vdsize and pst_status::pst_vssize as populated by pstat_getproc( ) and multiply those page counts by pst_static::page_size as populated by pstat_getstatic( ).
If you don't want to use the pstat_* interfaces for any reason or if you have threads, here's a URL from within the HPUX-DEVTOOLS list archives:
http://devresource.hp.com/CXX/Forums/hpux-devtools/hpux-devtools.0105/0155.html
If you don't want to use the pstat_* interfaces for any reason or if you have threads, here's a URL from within the HPUX-DEVTOOLS list archives:
http://devresource.hp.com/CXX/Forums/hpux-devtools/hpux-devtools.0105/0155.html
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP