- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: High CPU utilisation by a process
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
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
07-17-2005 06:52 PM
07-17-2005 06:52 PM
High CPU utilisation by a process
I am experiencing a problem where in one of my application programs which is written in COBOL is utilising a high percentage of CPU. The ouput of the 'top' command when the program is executed is as follows.
TIME %WCPU %CPU COMMAND
2:45 88.24 88.09 bgt205
The program continuously reads a file for records and process the record if available.
Could anyone suggest any method to reduce the CPU utilisation of the program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 07:20 PM
07-17-2005 07:20 PM
Re: High CPU utilisation by a process
Please a look through the documentation for things such as required kernel changes and ulimit parameters required for application.
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 07:44 PM
07-17-2005 07:44 PM
Re: High CPU utilisation by a process
while :
do
:
done
The above script is working the way it was designed and no amount of kernel changing will ever fix this usage. There is nothing wrong with high CPU usage if it is what the program is supposed to do. Of course, the program may be using very inefficient methods to accomplish the processing, but that's for the programmer to fix.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 08:22 PM
07-17-2005 08:22 PM
Re: High CPU utilisation by a process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2005 10:21 PM
07-17-2005 10:21 PM
Re: High CPU utilisation by a process
You can also use tusc tool. Yu can get it here.
http://hpux.connect.org.uk
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 07:02 PM
07-18-2005 07:02 PM
Re: High CPU utilisation by a process
Are there any pauses or delays if the program reads the file and finds no records, or does it just read the file again? If the latter, then no wonder it is using a lot of CPU.
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 07:15 PM
07-18-2005 07:15 PM
Re: High CPU utilisation by a process
use Glance plus to find out more details on process and cpu performance , which is real time and will give optimum results than top.
regards
Vinod K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 07:44 PM
07-18-2005 07:44 PM
Re: High CPU utilisation by a process
It looks like the cobol program needs some changes. Is it possible to modify the program to read the file with some time gaps rather than reading continiously. I hope file you want to read may not be getting modified every millisecond.
Cheers!!!
eknath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 07:45 PM
07-18-2005 07:45 PM
Re: High CPU utilisation by a process
Andrew,
The programs reads a file for a record , if there is no record then it will keep on browsing the file until it finds a record. Does such read calls increase the CPU utilisation ? What is the meaning of %WCPU utilisation in the top command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2005 07:55 PM
07-18-2005 07:55 PM
Re: High CPU utilisation by a process
> The programs reads a file for a record ,
> if there is no record then it will keep
> on browsing the file until it finds a
> record. Does such read calls increase
> the CPU utilisation ?
What do you mean by 'browsing the file'?
If the program is continuously doing something, it will be using CPU. If it reads the file, finds no records, and then just goes straight on to read the file again, it will be using a lot of CPU because the code is constantly executing.
My COBOL is extremely rusty, so I can't suggest the way to code it, but you want either a delay after failing to find any records, or some sort of read that won't return unless there is something there (not sure if COBOL has that).
WCPU is "weighted CPU", an average used by the scheduler. See http://forums2.itrc.hp.com/service/forums/questionanswer.do?threadId=57634
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 08:28 AM
07-19-2005 08:28 AM