SORTMEM

Memory used by SORT

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX

 

The SORTMEM environment variable specifies the amount of memory the SORT statement can use.

Note

Since 10.3.3c, the sort process has been improved to automatically determine the optimal amount of memory to use. Because SORTMEM overrides this optimal memory sizing, it should no longer be set. SORTMEM is considered deprecated and should be replaced by SORTMEMMAX.

Value

The number of kilobytes of memory to be used by the sort. This value must be greater than 512. The default is determined by the sort to be the optimal amount of memory to avoid excessive intermediate I/O.

Discussion

SORTMEM is used by the SORT verb in the runtime, either locally or when both files specified to the SORT are remote. SORTMEM is used on the server when the sort is on the server. It is used by the runtime when the sort is local and not on a server.

Setting location

For a local file, in the environment or synergy.ini (Windows).

On a Windows server, in the Windows registry. Use the Synergy Configuration Program, or set SORTMEM as follows:

On a UNIX server, in the synrc file in the /etc directory (for all clients) or the .synrc file in the users $HOME directory (for specific users).

Used by

Runtime, xfServer.

Examples

On UNIX,

SORTMEM=8192   ;export SORTMEM