10-03-2006
stopping a processor
hi,
Can any plz tell what is the command for stopping a processor? suppose a system is accessing 10 processors and we want to stop the 3rd & 6th processor then whats the command in Unix?
thank u
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Fedora C2
Apcache 2.0
Right now my setup consists of a cable modem which connects to a wireless router (Linksys WRT54G), which I have port forward all port 80 requests to my Linux (Fedora) box.
I want to block a certain ip address that has been in my /etc/httpd/logs/access_log file with... (2 Replies)
Discussion started by: lawadm1
2 Replies
2. Shell Programming and Scripting
i want to stop a script from running after one minute, using the sleep command, and then kill the process. anyhelp with this. (2 Replies)
Discussion started by: AtomJ22
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Two things really:
1) can you input a code to pause a program until a key is pressed?
2) can you stop a command during a cycle? (7 Replies)
Discussion started by: chapmana
7 Replies
4. Shell Programming and Scripting
Hi
Is it possible to stop a command executing after certain time?
I have this command say prstat which keeps on giving the values etc of the processes after every 1 sec(refreshes the screen)
What I want is just stop the execution after first screen
Since I have written this command in shell... (3 Replies)
Discussion started by: superprg
3 Replies
5. AIX
Question is on setting of Physical and Virtual processors for LPARs to make proper use of virtualization capabilities.
Environment is a 8-way p570 with 4 LPARs.
lparVIO1 and lparVIO2:
AIX 5300-04-01
Mode/Type= Shared-SMT/Capped
Minimum Processors= 0.10
Desired Processors= 0.50
Maximum... (1 Reply)
Discussion started by: guttew
1 Replies
6. Shell Programming and Scripting
Hi
I want to stop a process using a shell script. how do i do that?
ie, to simulate ps -ef|grep Process name
get the process id and kill -9 process id
plz help... (4 Replies)
Discussion started by: gopsman
4 Replies
7. AIX
Guys...
Hows it going???
I have been going through the hardware spec of IBM system p systems.. and here i am confused
for IBM Power 520 Express it says
Processor cores:
One, two or four 64-bit 4.2 GHz POWER6 with AltiVec™ SIMD and Hardware Decimal Floating-Point acceleration
... (1 Reply)
Discussion started by: balaji_prk
1 Replies
8. Red Hat
Hi,
on server Red Hat Enterprise Linux AS release 3, I am getting the mail "you have mail" can any body suggest how to stop this? mail are getting generated in below path.
/var/spool/postfix/maildrop, due to which heavy file are getting generated.
though sendmail service is stopped.
... (0 Replies)
Discussion started by: manoj.solaris
0 Replies
9. Windows & DOS: Issues & Discussions
As I know you are all aware Windows 10 poses some serious security concerns. My question is three fold.
1. Is there a way to stop Windows 10 clients from accessing a web server?
2. What would be the MS counter punch to that? ie: how would they circumvent. (mask browser credentials?)
3. Is... (4 Replies)
Discussion started by: ScottyPC
4 Replies
LEARN ABOUT OSF1
assign_cpu_to_pset
assign_cpu_to_pset(3) Library Functions Manual assign_cpu_to_pset(3)
NAME
assign_cpu_to_pset - Assigns a processor to a processor set
LIBRARY
Pset Library (libpset.a)
Mach Library (libmach.a)
SYNOPSIS
#include <sys/types.h> #include <sys/processor.h>
int assign_cpu_to_pset(
unsigned long cpu,
long pset_id ,
long option );
PARAMETERS
Processor or processors to assign to the specified processor set. Processor set identifier, which is returned by the create_pset function.
Specifies a bit mask. Currently, only the ANY_CPU bit is supported. If this bit is set, the value specified by the cpu variable is the
number of processors to be assigned to the specified processor set from the default processor set. If the ANY_CPU bit is not set, the
value specified by the cpu variable is the mask of processors to be assigned to the processor set.
DESCRIPTION
The assign_cpu_to_pset function removes processors from their current processor set and assigns them to the processor set specified by the
pset_id variable. This function requires root privileges.
If the ANY_CPU option is specified, the number of processors specified by the cpu variable are assigned from the default processor set to
the processor set that is specified with the pset_id variable. If the specified number of processors are not available in the default pro-
cessor set, an error is returned and no processors are assigned.
If the ANY_CPU option is not set, the value specified by the cpu variable is a mask of processors to be assigned to the specified processor
set. For example, if you specify a cpu value of 6, then processors 2 and 3 are assigned to the processor set.
Note that processors are not required to start in slot 0 on some platforms. For example, you may see a three-processor system with proces-
sors in slots 6, 7, and 8. The console assigns the master processor at power up, which is usually the processor in slot 0 if it is occu-
pied. However, there is no requirement that slot 0 must be populated or that the master is the first processor on the bus. In the example
of the three-processor (slots 6, 7, and 8) system, the master processor will be the one in slot 6.
Processor assignments are logged in the /var/adm/wtmp file.
RETURN VALUES
If the processor assignment is successful, the assign_cpu_to_pset function returns zero (0). If the assignment is unsuccessful, the func-
tion returns a negative number. Use the print_pset_error function to print a message that describes the error.
FILES
/var/adm/wtmp
RELATED INFORMATION
bind_to_cpu(3), create_pset(3), destroy_pset(3), assign_pid_to_pset(3), print_pset_error(3), processor_sets(4), pset_create(1) delim off
assign_cpu_to_pset(3)