Define a user-defined VP
You define a new virtual-processor class in the onconfig file with the VPCLASS configuration parameter.
The num option specifies the number of virtual processors in a user-defined VP class that the database server starts during its initialization. The class name is not case sensitive, but it must have fewer than 128 characters. If your DataBlade uses a prefix, such as USR, begin the names of any user-defined VPs with this prefix.
Type of user-defined VP class | VPCLASS option |
---|---|
Yielding user-defined VP | None (default type of user-defined VP class) |
Nonyielding user-defined VP | noyield |
Single-instance user-defined VP (yielding or nonyielding) | num=1 |
After you add or modify the VPCLASS configuration parameter, restart the database server with the oninit utility (or its equivalent). For more information about how to restart the database server, see your HCL Informix Administrator's Guide. You can add or drop user-defined virtual processors while the database server is online. For more information, see Add and drop VPs.
- In the VPCLASS parameter in the onconfig file, which defines the VP class
- In the CLASS routine modifier of the CREATE FUNCTION or CREATE PROCEDURE statement, which registers the C UDR in the database
For more information, see Assign a C UDR to a user-defined VP class.