- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- chatr and C++
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
тАО11-19-2006 08:58 PM
тАО11-19-2006 08:58 PM
chatr and C++
I work on HP-UX B11.11 plateforms and I've used the chatr command on a binary file in order to use the third quadrant as data space.
'chatr +q3p enable name_fo_the_binary'
I would like to get, in a C/C++ software, the value of the theorical data space accessible for this process (I saw on the man that when you enable the third quadrant, this value is increased from 1.9GB to 2.85GB)
Is there any way to get this value on a C/C++ software ?
Thanks,
Julien V
- Tags:
- chatr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2006 09:41 PM
тАО11-19-2006 09:41 PM
Re: chatr and C++
I don't know of a direct command, but how about mallocing space until loop fails?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2006 11:29 PM
тАО11-19-2006 11:29 PM
Re: chatr and C++
I think that a C/C++ function (like tuneinfo that allow to get a lot of system tunable parameters), if it exists, should give best time performs and is really the best solution for me.
Julien
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 12:58 AM
тАО11-20-2006 12:58 AM
Re: chatr and C++
please see James's answer in :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72276
His program will display the data space used for a specific id of a RUNNING process. I am sure you could adapt his code.
If you enabled the 3rd quadrant, you already stated how much data space increases to, so why do you want to check in your program.
Please also read on a general note:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward the answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 01:34 AM
тАО11-20-2006 01:34 AM
Re: chatr and C++
I'm searching around the James' answers since this morning but I don't find what I really search...
Perhaps I'm too tired... ;-)
Thanks again,
Julien
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 08:03 AM - edited тАО09-08-2014 04:00 AM
тАО11-20-2006 08:03 AM - edited тАО09-08-2014 04:00 AM
Re: chatr and aC++
I assume you know that you must link with -N in order to get the 1.9 GB?
And on IPF you must link with -N to even use chatr +as mpas?
- Tags:
- -N