/sys$common/syshlp/helplib.hlb SET, PROCESS, Examples *Conan The Librarian (sorry for the slow response - running on an old VAX) |
1.$ SET PROCESS/PRIVILEGE=EXQUOTA The SET PROCESS command in this example assigns the current process the privilege of exceeding quotas. 2.$ SET PROCESS/NORESOURCE_WAIT The SET PROCESS command in this example disables resource wait mode for the current process. 3.$ RUN/PROCESS_NAME=TESTER CALC %RUN-S-PROC_ID, identification of created process is 0005002F $ SET PROCESS/PRIORITY=10 TESTER The RUN command in this example creates a subprocess and gives it the name TESTER. Subsequently, the SET PROCESS/PRIORITY command assigns the subprocess a priority of 10. 4.$ SHOW PROCESS/SUBPROCESS 19-APR-2001 15:17:28.41 User: DAVIS Process ID: 31900218 Node: OCALA Process name: "DAVIS" Processes in this tree: DAVIS * DAVIS_1 DAVIS_2 $ SET PROCESS/SUSPEND DAVIS_1 $ The SET PROCESS/SUSPEND command in this example suspends the process DAVIS_1 such that ASTs can be delivered to it. Because no keyword was specified, the /SUSPEND=SUPERVISOR version is assumed. 5.$ SHOW PROCESS/SUBPROCESS OCALA::TESTA 19-APR-2001 12:17:24.45 User: TESTA Process ID: 31400208 Node: OCALA Process name: "TESTA" Processes in this tree: TESTA * TESTA_1 TESTA_2 $ SET PROCESS OCALA::TESTA_2 /SUSPEND=KERNEL $ The SET PROCESS/SUSPEND=KERNEL command in this example suspends the process TESTA_2 on node OCALA such that no ASTs can be delivered to it. 6.$ SET PROCESS CPUSCHED/AFFINITY/SET=1/PERMANENT $ SET PROCESS CPUSCHED/CAPABILITY/SET=8/PERMANENT $ SHOW CPU/FULL COBRA7, a DEC 4000 Model 620 Multiprocessing is ENABLED. Streamlined synchronization image loaded. Minimum multiprocessing revision levels: CPU = 1 System Page Size = 8192 System Revision Code = System Serial Number = Default CPU Capabilities: System: QUORUM RUN Default Process Capabilities: System: QUORUM RUN PRIMARY CPU = 00 CPU 00 is in RUN state Current Process: *** None *** Serial Number: AY24870417 Revision: A200 VAX floating point operations supported. IEEE floating point operations and data types supported. Processor is Primary Eligible. PALCODE: Revision Code = 5.48 PALcode Compatibility = 0 Maximum Shared Processors = 2 Memory Space: Physical address = 00000000 00000000 Length = 0 Scratch Space: Physical address = 00000000 00000000 Length = 0 Capabilities of this CPU: System: PRIMARY QUORUM RUN User bitmask: 00000040 Processes which can only execute on this CPU: NETACP PID = 0000008E Reason: PRIMARY Capability CPU 01 is in RUN state Current Process: CPUSCHED PID = 00000095 Serial Number: AY24870406 Revision: A200 VAX floating point operations supported. IEEE floating point operations and data types supported. PALCODE: Revision Code = 5.48 PALcode Compatibility = 0 Maximum Shared Processors = 2 Memory Space: Physical address = 00000000 00000000 Length = 0 Scratch Space: Physical address = 00000000 00000000 Length = 0 Capabilities of this CPU: System: QUORUM RUN User bitmask: 00000080 Processes which can only execute on this CPU: CPUSCHED PID = 00000095 Reason: Affinitized to this CPU Reason: User capabilities - 00000080) $ SET PROCESS/NOAFFINITY/PERMANENT $ SET PROCESS/NOCAPABILITY/PERMANENT $ SHOW CPU/FULL COBRA7, a DEC 4000 Model 620 Multiprocessing is ENABLED. Streamlined synchronization image loaded. Minimum multiprocessing revision levels: CPU = 1 System Page Size = 8192 System Revision Code = System Serial Number = Default CPU Capabilities: System: QUORUM RUN Default Process Capabilities: System: QUORUM RUN CPU 00 is in RUN state Current Process: *** None *** Serial Number: AY24870417 Revision: A200 VAX floating point operations supported. IEEE floating point operations and data types supported. Processor is Primary Eligible. PALCODE: Revision Code = 5.48 PALcode Compatibility = 0 Maximum Shared Processors = 2 Memory Space: Physical address = 00000000 00000000 Length = 0 Scratch Space: Physical address = 00000000 00000000 Length = 0 Capabilities of this CPU: System: PRIMARY QUORUM RUN User bitmask: 00000040 Processes which can only execute on this CPU: NETACP PID = 0000008E Reason: PRIMARY Capability CPU 01 is in RUN state Current Process: CPUSCHED PID = 00000095 Serial Number: AY24870406 Revision: A200 VAX floating point operations supported. IEEE floating point operations and data types supported. PALCODE: Revision Code = 5.48 PALcode Compatibility = 0 Maximum Shared Processors = 2 Memory Space: Physical address = 00000000 00000000 Length = 0 Scratch Space: Physical address = 00000000 00000000 Length = 0 Capabilities of this CPU: System: QUORUM RUN User bitmask: 00000080 Processes which can only execute on this CPU: *** None *** In this example, CPU 1 has user capability 8 enabled (user mask of process CPUSCHED, and CPU affinity is set to 1. Either of these settings forces the initial kernel thread to run only on CPU 1, as shown by the SHOW PROCESS command. Then, the SET PROCESS/NOAFFINITY/NOCAPABILITY command clears all CPU affinities and user capability requirements for the initial kernel thread of process (CPUSCHED), and the binding to CPU 1 disappears.
|