VMS Help  —  SET  PROCESS  Examples
    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 ***
      $ SET PROCESS/NOAFFINITY/PERMANENT
      $ SET PROCESS/NOCAPABILITY/PERMANENT
      $ SHOW CPU/FULL

      System: EUROS, VSI rx2600  (900MHz/1.5MB)

        SMP execlet   = 3 : Enabled : Streamlined.
        Config tree   = Version 6
        Primary CPU   = 0
        HWRPB CPUs    = 2
        Page Size     = 8192
        Revision Code =
        Serial Number = US30464615
        Default CPU Capabilities:
              System: QUORUM RUN
        Default Process Capabilities:
              System: QUORUM RUN

      CPU 0    State: RUN            CPUDB: 8901C000   Handle: 00005D70
               Owner: 000004C8       Current: 000004C8  Partition 0 (EUROS)
              ChgCnt:        1      State: Present, Primary, Reassignable
             Process: * None *
        Capabilities:
              System: PRIMARY QUORUM RUN RAD0
                User: Usr2
        Slot Context: 901EB000
           CPU     -  State..........: RC, PA, PP, CV, PV, PMV, PL
                      Type...........: Itanium Major = 31,  Minor = 0
                      Speed..........: 900 Mhz
                      LID............: 00000000
                      Variation......: IEEE FP, Primary Eligible
                      Serial Number..: 0001a968930a1a25
                      Revision.......:
                      Halt Request...: 0
                      Software Comp..: 7.0
           PALCODE -  Revision Code..: 1.1
                      Compatibility..: 0
                      Max Shared CPUs: 0
        Bindings:     * None *
        Fastpath:
              FGB0
              PKA0
              PEA0
              EIA0
        Features:
           Autostart - Enabled.
           Fastpath  - Selection enabled as Preferred CPU.

      CPU 1    State: RUN            CPUDB: 89163480   Handle: 00005E80
               Owner: 000004C8       Current: 000004C8  Partition 0 (EUROS)
              ChgCnt:        1       State: Present, Reassignable
             Process: TEST11            PID: 20201192
        Capabilities:
              System: QUORUM RUN RAD0
        Slot Context: 901EC000
           CPU     -  State..........: RC, PA, PP, CV, PV, PMV, PL
                      Type...........: Itanium Major = 31,  Minor = 0
                      Speed..........: 900 Mhz
                      LID............: 01000000
                      Variation......: IEEE FP
                      Serial Number..: 000363b4b0c5c862
                      Revision.......:
                      Halt Request...: 0
                      Software Comp..: 7.0
           PALCODE -  Revision Code..: 1.1
                      Compatibility..: 0
                      Max Shared CPUs: 0
        Bindings:
           TEST11        PID = 20201192  Reason: Affinitized to this CPU
        Fastpath:
              FGA0
              EWA0
              PKB0
              BG0
        Features:
           Autostart - Enabled.
           Fastpath  - Selection enabled as Preferred CPU.
       $

      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.

    7.$ SET PROCESS/SSLOG=(STATE=ON,COUNT=4)

      This command turns on system service logging with four P2 space
      buffers, each having a size of FE00(16) bytes. If the process
      has SETPRV, CMKRNL, or CMEXEC privilege, argument values are
      logged.

    8.$ SET PROCESS/SSLOG=(STATE=UNLOAD)

      This command stops logging and closes the log file.
Close Help