The PSORT_NPROCS environment variable enables the database server to improve the performance of the parallel-process sorting package by allocating more threads for sorting.
PSORT_NPROCS does not necessarily improve sorting speed for Extended Parallel Server, because the database server sorts in parallel whether this environment variable is set or not.
Before the sorting package performs a parallel sort, make sure that the database server has enough memory for the sort.
>>-setenv--PSORT_NPROCS--threads-------------------------------><
The following command sets PSORT_NPROCS to 4:
setenv PSORT_NPROCS 4
To disable parallel sorting, enter the following command:
unsetenv PSORT_NPROCS
It is recommended that you initially set PSORT_NPROCS to 2 when your computer has multiple CPUs. If subsequent CPU activity is lower than I/O activity, you can increase the value of PSORT_NPROCS.
If the PSORT_NPROCS environment variable is set, the database server uses the specified number of sort threads as an upper limit for ordinary sorts. If PSORT_NPROCS is not set, parallel sorting does not take place. The database server uses one thread for the sort. If PSORT_NPROCS is set to 0, the database server uses three threads for the sort.
The default number of threads is different for attached indexes.
If the PSORT_NPROCS environment variable is set, you get the specified number of sort threads for each fragment of the index that is being built.
If PSORT_NPROCS is not set, or if it is set to 0, you get two sort threads for each fragment of the index unless you have a single-CPU virtual processor. If you have a single-CPU virtual processor, you get one sort thread for each fragment of the index.
For additional information about the PSORT_NPROCS environment variable, see your IBM Informix: Administrator's Guide and your IBM Informix: Performance Guide.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]