Home Man
Today's Posts

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

👤 Login to reply

Thread Tools Search this Thread
# 1  
Old 02-17-2009
Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas?
# 2  
Old 02-17-2009
The mpctl() system call (in C) lets you specify what cpu a process runs on.
Is that what you meant?

or something like this?
while true
    while [[ $i -lt  100000000 ]]
         i=$(( $i + 1))

This is BAD idea on a production system with other users, especially if you start a bunch of these running.
# 3  
Old 02-18-2009
Hi Jim - I ended up using something similar.

for i in 1 2 3 4 5 6 7 8 9 10
        while `true`

I agree not the best idea but I needed to test.

Thank you.

Last edited by Don Cragun; 10-05-2016 at 06:31 PM.. Reason: Add CODE tags.
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
HPUX 11.23 - server is crawling waytec HP-UX 6 06-15-2015 12:06 PM
Hitachi Device Manager Agent for HPUX lamoul HP-UX 8 12-03-2012 12:23 PM
Problem in Configuring kerberos Server on HPUX Amit Kulkarni HP-UX 1 03-30-2012 11:39 AM
pwage-hpux-T for Trusted HPUX servers sparcguy HP-UX 2 03-24-2011 10:07 PM
Ignite issue on HPUX server Prabhu H HP-UX 3 12-10-2008 09:15 PM
how to execute script from my desktop windows xp to my HPUX server? kenshinhimura HP-UX 2 03-05-2008 04:47 PM
Can't start the cpp server in hpux onlyforforum HP-UX 0 05-26-2007 10:25 AM
Need an advise Backup HPUX Server while online real-chess UNIX for Dummies Questions & Answers 2 08-17-2006 03:28 AM
Configuration of email on HPUX server sharmavr UNIX for Dummies Questions & Answers 1 07-19-2006 10:22 AM
Finding server Model on HPUX lnineill HP-UX 4 01-06-2005 01:37 PM

All times are GMT -4. The time now is 06:04 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
Show Password