- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Wants to make a machine 100% CPU usage for 6 minut...
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
02-10-2006 06:29 AM
02-10-2006 06:29 AM
I want to test some alerts on a machine.
I need to achieve this, 100 % CPU for more than 6 minutes.
How can i achieve this.
Any help is appeciated.....
Tx,
Nair.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 06:40 AM
02-10-2006 06:40 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=998254
Bill's response is the better way to do it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 06:44 AM
02-10-2006 06:44 AM
Re: Wants to make a machine 100% CPU usage for 6 minutes...
Write a script that kicks off multiple scripts that have tight loops in them.
2x scripts per CPU on the box should lock it up pretty well.
You could also consider giving them higher priorities than standard processes to increase the likelihood they will chew up the CPU.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 06:52 AM
02-10-2006 06:52 AM
Re: Wants to make a machine 100% CPU usage for 6 minutes...
loop 360 &
loop 360 &
loop 360 &
loop 360 &
This is a very tight C program that loops until the number of seconds sent in on the command line expires. Drop a few of these on a box and it will grab everything but no interaction is needed to kill them.
I've intentionally do this in K&R C so that the Bunlled C Compiler will handle it. If you like, you can covert it to ANSI C in about 20 seconds.
Compile like this:
cc loop.c -o loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 06:58 AM
02-10-2006 06:58 AM
Re: Wants to make a machine 100% CPU usage for 6 minutes...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 07:01 AM
02-10-2006 07:01 AM
Re: Wants to make a machine 100% CPU usage for 6 minutes...
# perl -e 'alarm 360;while (1) {}'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2006 12:51 PM
02-10-2006 12:51 PM
Re: Wants to make a machine 100% CPU usage for 6 minutes...
Another option if your network's don't mind would be to run a number of UDP_STREAM tests from the system - as many as CPUs - pointing at some poor system out on the net. That will also take each CPU to 100% and increment "real" network statistics.
However, I'd probably not do the latter on a production system.
http://www.netperf.org/