SYN_ULIMIT
|
USupported on Unix
|
|
|
The SYN_ULIMIT environment variable defines ulimit (maximum file limit) for the Synergy runtime and xfServer.
Value
To raise the current maximum file limit, one of the following:
- A resource limit specified as the number of 512-byte blocks (the standard notation used by ulimit)
- A resource limit specified as the number of kilobytes, megabytes, or gigabytes, in the format numberKb, numberMb, or numberGb, respectively
- -1, to set ulimit to unlimited
To lower the current maximum file limit,
- A resource limit specified as the number of kilobytes followed by the letter “R” (numberR)
Discussion
In order for the Synergy runtime or xfServer to raise the ulimit value, dbr or rsynd must be owned by root and have the setuid bit set. (But you do not need to set setuid to lower the file limit.) By default, rsynd is owned by root and the setuid bit is set; this is not the case for the runtime(s).
For example, to make root own dbr and rsynd and set the setuid bit, enter the following at the command line:
chown root dbr rsynd chmod u+s dbr rsynd
If the setuid bit is not set, files created by the Synergy runtime or xfServer are limited to the system ulimit.
By default, when SYN_ULIMIT is activated, files created with the Synergy runtime or xfServer are limited to 204800 blocks (104 MB) or the system ulimit if it is higher.
Do not use SYN_ULIMIT if you use Connectivity Series. Instead, use your operating-system equivalent. |
Setting location
The environment.
Used by
Runtime, compiler, linker, librarian, fcompare, fconvert, isutl
Examples
In the example below, files are limited to 204800 512-byte blocks (which is 104,857,600 bytes, or 104 MB) or the system ulimit, if it is higher.
SYN_ULIMIT=204800 ;export SYN_ULIMIT
In the following example, files are limited to 104 MB, which is equivalent to the first example.
SYN_ULIMIT=104Mb ;export SYN_ULIMIT
The example below sets an unlimited file limit.
SYN_ULIMIT=-1 ;export SYN_ULIMIT
The example below reduces the file limit to 50,000K.
SYN_ULIMIT=50000R ;export SYN_ULIMIT