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.

shell scripts

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 07: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 01:06 PM
How to send mail with attachments in hpux server? saga20 UNIX for Advanced & Expert Users 1 08-29-2013 02:35 PM
Hitachi Device Manager Agent for HPUX lamoul HP-UX 8 12-03-2012 01:23 PM
Problem in Configuring kerberos Server on HPUX Amit Kulkarni HP-UX 1 03-30-2012 12:39 PM
pwage-hpux-T for Trusted HPUX servers sparcguy HP-UX 2 03-24-2011 11:07 PM
Ignite issue on HPUX server Prabhu H HP-UX 3 12-10-2008 10:15 PM
how to execute script from my desktop windows xp to my HPUX server? kenshinhimura HP-UX 2 03-05-2008 05:47 PM
Can't start the cpp server in hpux onlyforforum HP-UX 0 05-26-2007 11:25 AM
Configuration of email on HPUX server sharmavr UNIX for Dummies Questions & Answers 1 07-19-2006 11:22 AM
Finding server Model on HPUX lnineill HP-UX 4 01-06-2005 02:37 PM

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

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