- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: how can i get all process names and topcpu usi...
Operating System - OpenVMS
1753808
Members
7708
Online
108805
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
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
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-12-2009 07:34 PM
02-12-2009 07:34 PM
Re: how can i get all process names and topcpu using c?
i am using the system function to get system informations ,so i'm also testing sys$getsyi ,i know how to get the total memory of the system using SYI$_PHYSICALPAGES,but i wanted to get total free pages,in use pages just like
$show memory,can you help me?
$show memory,can you help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2009 08:28 PM
02-12-2009 08:28 PM
Re: how can i get all process names and topcpu using c?
likuair,
YOU can do this.
Check out the GETJPI call in the example.
Read it twice.
The GETSYI call is very much similar.
Read up! In the manuals, or: $ help system $GETSYI
As for the 20%.... 20% of what?
A single CPU? All cpu usage?
Since beginning of time? For an iteration?
YOU can do this. If you can not, then IMHO you have no business even asking the first question.
YOU can solve this in the program, or outside in EXCEL.
You'll just need 2 (or more) measurement in a loop. Take that CPU time (in centi-seconds) subtract the prior value, multiply by 100 and divide by the centiseconds between measurements.
IF you can not handle that, call LIB$SPAWN ("SHOW SYSTEM") or similar.
btw... For mere money I'll gladly hold your hand, or do this for you.
Enjoy!
Hein
YOU can do this.
Check out the GETJPI call in the example.
Read it twice.
The GETSYI call is very much similar.
Read up! In the manuals, or: $ help system $GETSYI
As for the 20%.... 20% of what?
A single CPU? All cpu usage?
Since beginning of time? For an iteration?
YOU can do this. If you can not, then IMHO you have no business even asking the first question.
YOU can solve this in the program, or outside in EXCEL.
You'll just need 2 (or more) measurement in a loop. Take that CPU time (in centi-seconds) subtract the prior value, multiply by 100 and divide by the centiseconds between measurements.
IF you can not handle that, call LIB$SPAWN ("SHOW SYSTEM") or similar.
btw... For mere money I'll gladly hold your hand, or do this for you.
Enjoy!
Hein
- « Previous
-
- 1
- 2
- Next »
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP