Manage virtual processors
To manage virtual processors, you need to initialize VP classes, add and drop VPs, and monitor VPs.
Initialize a VP class
Check your Informix® Administrator's Guide and the Informix® Administrator's Reference for information about VP-class initialization.
Add and drop VPs
You can add or drop virtual processors in a user-defined VP class or in the CPU VP class while the database server is online. Use onmode -p to add a VP to a class or to drop a VP from a class.
onmode -p +1 newvp
To remove a virtual processor, specify a negative value in the -p option. For more information about the onmode utility, see the Informix® Administrator's Reference.
Monitor virtual processors
- onstat -g glo to generate information about global multithreading such as CPU use of virtual processors and total number of sessions.
- onstat -g rea to generate information about the number of threads in the ready queue of the VP class.
- onstat -g sch to generate information about the number of semaphore operations, spins, and busy waits for each virtual processor.
A user-defined VP class appears in the onstat -g glo output as a new process. You can use the -g glo option to find the virtual process in which your DataBlade® API module is loaded. The following list shows the last section of the output of this onstat command.
In The onstat -g glo command output, the onstat utility displays CPU usage for the CPU VP as the first line of output. It displays the processor and CPU usage for the user-defined VP newvp.
For more information about the onstat utility, see the Informix® Administrator's Reference.
In addition, you can select information from the sysvpprof SMI table about the virtual processors that are currently running. The sysvpprof SMI table exists only in the sysmaster database.