- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need Scripts to stress CPU and Memory
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
05-06-2004 06:03 AM
05-06-2004 06:03 AM
Just want to test some alarm definitions I am creating...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:23 AM
05-06-2004 06:23 AM
Solution# while true
> do
> let i=i+1
> done
If you want to see what the script is doing put an echo in there.
# while true
> do
> let i=i+1
> echo $i
> done
If you have multiple CPUs on the system, run the script multiple times to max out all the CPUs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:27 AM
05-06-2004 06:27 AM
Re: Need Scripts to stress CPU and Memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:51 AM
05-06-2004 06:51 AM
Re: Need Scripts to stress CPU and Memory
Compile like this:
cc mem.c -o mem
Use it like this:
mem 1000
to allocate 1000 1MB chunks
or simply mem
to continue allocating until it fails.
echo ${?} after failure to get errno; it should be ENOMEM 12. It display total memory allocated as it runs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:57 AM
05-06-2004 06:57 AM
Re: Need Scripts to stress CPU and Memory
I know all these from a previous incarnation but my memory cells are starting to die down -- all of 37 years and my memory is already failing! Hopefully we'll all still be alive when the "Brain-Add-On flash memory" will be avilable.. Imagine a 1 Petabyte Brain Module .. he he he!
Thanks A-Clay for the code (just did no have time to review my K&R/C).. Patrick.. thanks for the looper /recursion tricks...