Sponsored Content
Top Forums Shell Programming and Scripting Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX. Post 302288623 by jim mcnamara on Tuesday 17th of February 2009 02:54:50 PM
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?
Code:
i=0
while true
do
    while [[ $i -lt  100000000 ]]
    do
         i=$(( $i + 1))
    done
    i=0
done

This is BAD idea on a production system with other users, especially if you start a bunch of these running.
 

10 More Discussions You Might Find Interesting

1. HP-UX

Finding server Model on HPUX

Hi i am just wondering is there a command in hp that you can find the server model on hpux? Thanks (4 Replies)
Discussion started by: lnineill
4 Replies

2. UNIX for Dummies Questions & Answers

Configuration of email on HPUX server

I am working in an developer 2000 based application where backend is Oracle9i in unix environment. My application has the functionality if email generation. But I am not able to test this functionality as my HPUX server is not configured for emails. Please let me know the steps for configuring mail... (1 Reply)
Discussion started by: sharmavr
1 Replies

3. UNIX for Dummies Questions & Answers

Need an advise Backup HPUX Server while online

I will perform a "fbackup -f /dev/rmt/0m -i /". Can any body advise me on the following: 1. Is this a full backup of the entire file system or like the entire image of the server. Is it ok to do a backup while the server is online. 2. If it is not advisable to do a backup while the server is... (2 Replies)
Discussion started by: real-chess
2 Replies

4. HP-UX

Can't start the cpp server in hpux

Hello, I have writtern the makefile and successfully produce the server exe. But, it doesn't run in hpux11.11 server. compile and link option: /opt/aCC/bin/aCC -Aa -Wl,+s /cc/smc3/root/development/auto_activation/AA_global/obj/smc3/aa_config.o... (0 Replies)
Discussion started by: onlyforforum
0 Replies

5. HP-UX

how to execute script from my desktop windows xp to my HPUX server?

Good day, i would like to get some advice, how will i execute my script in hp ux servers, and how to configure rsh and rexec. thanks (2 Replies)
Discussion started by: kenshinhimura
2 Replies

6. HP-UX

Ignite issue on HPUX server

Hi All, I am getting below error while igniting(restoring image) on 2470 server. i tried with different images it is giving same error. please help me out to resolve this issue * Making VxFS filesystem for "/usr/aethos/snss/suppimpapp1", (/dev/vg00/rsuppimpapp1). *... (3 Replies)
Discussion started by: Prabhu H
3 Replies

7. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

8. HP-UX

Problem in Configuring kerberos Server on HPUX

Hi, I am getting this error during kerberos server setup in HPUX 11.31 : kdb_create: unknown LDAP backend error while adding master entry to the database ps -ef|grep ldap root 3905 1 0 13:11:36 ? 0:00 /opt/ldapux/bin/ldapclientd Unable to find out the meaning of this... (1 Reply)
Discussion started by: Amit Kulkarni
1 Replies

9. HP-UX

Hitachi Device Manager Agent for HPUX

Hi there, i am looking to download the Device manager agent for HPUX 11.31. Where we can find it. I've tried on google and Hitachi web sites and spent several hours, i just couldn't find anything at all. Please help. Thank you very much! (8 Replies)
Discussion started by: lamoul
8 Replies

10. HP-UX

HPUX 11.23 - server is crawling

OK HPUX masters I need help. I have a HPUX 11.23 server that I am using as a Ignite server that services two HPUX services for backups only. The other day I noticed that our Make Net Recoveries were failing. Upon attempting to login to the server SSH and could not I then tried to ping and could... (6 Replies)
Discussion started by: waytec
6 Replies
privgrp(4)						     Kernel Interfaces Manual							privgrp(4)

NAME
privgrp() - format of privileged values SYNOPSIS
DESCRIPTION
sets a mask of privileges, and getprivgrp(2) returns an array of structures giving privileged group assignments on a per-group-ID basis (see getprivgrp(2)). associates a kernel capability with a group ID. This allows subletting of superuser-like privileges to members of a particular group or groups. The constants and structures needed for these system calls are defined in Privileges are as follows: Allows access to the system call (see rtprio(2)). Allows access to the system call (see plock(2)). Allows access to the system calls (see chown(2)). Permits the use of the system call for setting locks on files open for reading only (see lockf(2)). Permits the use of the and system calls for changing respectively the real user ID and real group ID of a process (see setuid(2)). Permits the use of the system call for changing processor binding, locality domain binding or launch policy of a process (see mpctl(2)). Allows access to the and to set POSIX.4 realtime priorities (see rtsched(2)). Permits the use of for forcing the target process to run serially with other processes that are also marked by this system call (see serialize(2)). Permits certain administrative operations in the Instant Capacity (iCAP) product for deactivation and reactivation of processors. See that product's docu- mentation for more information. Permits certain administrative operations in Process Resource Manager (PRM) product. See that product's documentation for more information. Allows change to the system pset configuration (see pset_create(2)). Privileges are described in a multiword mask. The value of the for each privilege is interpreted as a bit index (counting from 1). Thus a group ID can have several different privileges associated with it by having different bits ORed into the mask. The system is configured with a specified maximum number of groups with special privileges. defines this maximum. Of this maximum, one is reserved for global privileges (granted to all processes) and the remainder can be assigned to actual group IDs. defines the size of the multiword mask used in defining privileges associated with a group ID. Privileges are returned to the user from the system call in an array of structures of type The structure associates a multiword mask with a group ID. The privgrp_map structure contains the fields: where priv_groupno contains the group ID (see setprivgrp(2)), and priv_mask contains the privilege mask associated with priv_groupno. SEE ALSO
getprivgrp(1), setprivgrp(1M), chown(2), getprivgrp(2), lockf(2), mpctl(2), plock(2), pset_create(2), rtprio(2), rtsched(2), serialize(2), setgid(2), setuid(2), shmctl(2). privgrp(4)
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy