Home | Previous Page | Next Page   Disk, Memory, and Process Management > Managing Virtual Processors > Starting and Stopping Virtual Processors >

Dropping CPU and User-Defined Virtual Processors

While the database server is in online mode, you can use the -p option of the onmode utility to drop, or terminate, virtual processors of the CPU and user-defined classes.

To drop CPU virtual processors

Following the onmode command, specify a negative number that is the number of virtual processors that you want to drop, and then specify the CPU class in lowercase letters. For example, the following command drops two CPU virtual processors:

% onmode -p -2 cpu

If you attempt to drop a CPU virtual processor that is running a poll thread, you receive the following message:

onmode: failed when trying to change the number of cpu virtual processor by -number.

For more information, refer to Running Poll Threads on CPU or Network Virtual Processors.

To drop user-defined virtual processors

Following the onmode command, specify a negative number that is the number of virtual processors that you want to drop, and then specify the user-defined class in lowercase letters. For example, the following command drops two virtual processors of the class usr:

onmode -p -2 usr
Windows Only

In Windows, you can have only one user-defined virtual processor class at a time. Omit the number parameter in the onmode -p vpclass command.

End of Windows Only

For information on how to create a user-defined class of virtual processors and assign user-defined routines to it, refer to User-Defined Classes of Virtual Processors.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]