Executable file flag


Executables on Linux require a special "Executable flag".

If you have installed RR via Windows, it might be the case that this flag was not set on your fileserver.

In this case use the RR setup application and start it on any Linux machine. 

Browse to the RR folder and use the button "Apply executable rights only".



Which Linux version?


RR applications require GLIBCXX 3.4.15. 

(e.g. CentOS 7+, Ubuntu 16+).


GLIBCXX can be checked with one of these commandlines 

if you want to check the library versions supported by your distribution:
strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX



See Dependencies for required libraries.

Which Linux Distribution?


Recommended distributions are all the "redhat-style" linux distros (same as most other 3D and comp software manufactures recommend).
Like CentOS (discontinued, but version 8 is still used)  or Rocky or Alma Linux.


Note Linux Mint: We had a report that dependency libxcb-xinput was not available. It is required for UI applications only.




You should read your render applications documentation for supported Linux distributions.

E.g. the Foundry recommended CentOS.


Maya 2020 had some limitations on Ubuntu, but they can be solved.

From the readme file for /usr/autodesk/maya2020/support/python/2.7.11:

To work around this, one can exchange the RHEL 6.x build of _hashlib.so with a version built on Ubuntu 14.04.4

Copy your unbuntu _hashlib.so and _ssl.so into /usr/autodesk/mayaxxxx/support/python/2.7.11/ and replace the Redhat/CentOS file.




Memory management


There are two linux features regarding memory usage:


OOM Killer (Out Of Memory Killer)


The Out Of Memory Killer is enabled by default now.
If the system detects that an application might want to is about to use more memory that the system has, the application is killed by the OOM Killer.
BUT instead of kiling just the render application (e.g. Maya) which tries to use 300GB of RAM, it kills Maya and all parent processes.
Which means the rrClient and the rrAutostartservice is killed as well.

The rrClient has a function build in to detect if the available memory is getting low (less than 400MB) and aborts the render application only.
But the OOM killer is often faster than the rrClient.

You may disable the OOM killer:


systemctl disable --now systemd-oomd

Verify that it is offline:
systemctl is-enabled systemd-oomd

Note that it might be restarted by other apps.
For that case you can mask the daemon:
systemctl mask systemd-oomd




Memory Overcommit



There is a Linux "feature" (bad feature in my eyes...).

Example:
An application uses right now 5 GB and asks the OS to get for example 60GB of memory and you have 30GB left, then the OS still grants this memory.
And once the app tries to use it, the OOM killer jumps in before the app uses all memory or it is kill once it tries to use the memory.

The kernel heuristically determines if the application really requires this ammount of memory.
("It has used 5GB, so I do not think that it will really use these 60GB in the future"...)


This feature was implemented because many older Linux applications have been so badly programmed that they request an ammount of memory they might perhaps use in the future if the app is used at fully capacity.

It is called the "Linux Memory Overcommit" (e.g. http://www.etalabs.net/overcommit.html )



Therefore you should configure this feature right.

  • Edit the file  /etc/sysctl.conf and add/change the lines
    vm.overcommit_memory=2
    vm.overcommit_ratio = 97
    "overcommit_memory=2" means that decide how much RAM will be allowed for applications.
    "97" means that all applications may use the total SWAP and up to 97% of your RAM.
    Which means the kernel and other system apps gets at least 3% of your RAM (3% of 32GB are about 1 GB).
    Of course this setting depends on the ammount of RAM you have and the memory usage of your kernel.
    (Using for example a setting of 150 would allow 50% overcommit again)


    Side-Note SWAP:
    It is desired to have a small SWAP like 8GB or 16GB for rendering.
    You want to have unused OS processes in SWAP, but not the main data of your render application

  • At last, run the command 
    sysctl -p




rrWorkstationInstaller Note: 
The rrWorkstationInstaller has an option to change the /etc/sysctl.conf  file for you.

A reboot or running "sysctl -p" is required afterwards.

Bash/CSH environment

You can change the shell interpretor that the rrClient should use in rrConfig, menu clients, per client.

By default it is set to BASH, older RR version had the default set to CSH.



If you want to dublicate your BASH environment for CSH, please add these commands to your \render_apps\_setenv\lx\_global.sh


bash$ env > /tmp/bash.env

csh$ env /tmp/bash.env



Error:  qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.


If you get this error message, then the libxcb packages are probably not installed.
(E.g. on Ubuntu 20)

You can verify that the libs are missing by executing the commandline
ldd [RR]/bin/lx64/platforms/libqxcb.so 


It should state:

libxcb-xinerama.so.0 => not found

libxcb-xinput.so.0 => not found




Daemon terminal commands

Please use the default Linux commands to control the daemon/service if required:


systemctl is-enabled rrAutostartservice.service

systemctl status rrAutostartservice.service

systemctl start rrAutostartservice.service

systemctl restart rrAutostartservice.service

systemctl stop  rrAutostartservice.service

systemctl enable rrAutostartservice.service

systemctl disable rrAutostartservice.service



 Mount Fileserver shares


You have 2 options to mount your file shares:

1) You tell the rrClient to mount shares.

Please open rrConfig, tab "paths and drives" and add your fileserver share.


2) You let the system mount all shares via fstab.

Please see next section.




 Mount Samba Share


If your RR files are on a samba or windows fileserver, then you have to mount the fileserver share to a local directory.


  1. Create a mount point/directory, for example create the folder /mnt/RoyalRender.

  2. Test to mount the share via commandline


  3. Edit the file /etc/fstab, add a line:
    //192.168.0.15/RRShare /mnt/RoyalRender cifs username=myShareUser,password=myPassword,noperm,uid=myRRUser,gid=users,file_mode=0777,dir_mode=0777,vers=3.0 0 0
    You have to replace some variables to match your environment:

//192.168.0.15/RRShare

Set this to the fileserver IP and share name.

myShareUser,myPassword

Add a user that is able to access the fileserver.

You do not need to have this user on linux, the user+password is send to the server. 

myRRUser

The user you use for running RoyalRender.


Important: Do not forget an empty line at the end of the fstab file!!

  1. After you have edited the file, execute the command
    mount -a
    If there is any problem with the fstab, it will be printed.



XSAN:

One customer had to add more flags to connect to a XSAN server, his fstab setting was:

//10.0.100.200/media/ cifs credentials=/home/parallels /.smbcredentials,noperm,iocharset=utf8,uid=thankyou,thankyouall,file_mode=0777,dir_mode=0777,nounix,noserverinfo,sec=ntlmssp 0 0




Newer Windows fileserver:

You might need to add ntlmssp for Windows 10/11:

//192.168.0.15/RRShare /mnt/RRender cifs username=myShareUser,password=myPassword,noperm,uid=myRRUser,gid=users,file_mode=0777,dir_mode=0777,vers=3.0,sec=ntlmssp  0 0





Docker (rrAutostartService replacement)

First note that you should always try to use the rrAutostart deamon as it verifies the execution of the rrClient/rrServer.



If you really need to use Docker instead of a local deamon to run the RR applications, then you have to create a Docker config file for the RR image.

If you have to use Docker instead, create a Dockerfile with the commandline 

CMD ["RR/bin/lx64/rrStartLocal", "rrClientconsole ", "-service"]

(Replace "RR" with the path to your RR installatio )


Nothing else is required. RR runs on most Linux distributions without the requirement to install any additional library packages.

The above command does not require any files to be installed locally.

rrStartLocal caches the rrClient app locally in /tmp. This way you always use the latest RR version from your network share.




Folder access rights  (UMask, RR rrJobdata folders, frames, output folder )


On Linux, it is sometimes more complicated with the access rights of the output frames and folders if they are created by RR.

There is the UMask which can be set in the mount commandline (file_mode=0777,dir_mode=0777)  or  for a user/application in its environment (~/.bashrc).



You can override the UMask for the rrClient when you install the daemon via rrWorkstationInstaller.



There is a setting in rrConfig, tab "Other" to tell RR to set Read+Write+Browse (777) permissions on these folders:
[RR]/ rrJobData/   
[RR]/ sub/ stats/  

[RR]/ _debugInfo/




Job output folders and files


First, it depends on the application that creates the folder.

a) Submission

If they do not exist, then there is the rrSubmitter that creates the main and all AOV/framebuffer/channel output folders. (Only known AOV folders as shown in the job info )


In addition, the rrSubmitter supports two commandline flags and a config option

  • -NoOutFolderCreation:      Does not create folders at submission
  • -SetOutFolderUserRights:  Sets 777 on folders (read+write+browse)
  • rrConfig, tab Other:  Same option as commandline -SetOutFolderUserRight via a checkbox.


If you do not use any flag, then the output folder is created with this UMask:

  • if it was set: mount option on the artists machine
  • otherwise the artists environment setting



b) Job queue receive/job check

  • The rrServer creates the main output folder if it does not exist (any more).

Please see "c) Rendering" for more information about the UMask.



c) Rendering
It is possible that either the rrClient or the render application creates folders and files

With job option "Local Render Out" enabled:

  • The rrClient creates output files and additional AOV folders that do not exist (but not the main output folder).

Without job option "Local Render Out":

  • The render application creates output files and additional AOV folders that do not exist.




Now it depends on how you start the RR applications (which is inherited to the render application)


Application mode:

If you have started the rrServer or rrClient in application mode, then output files and folder are created with this UMask:

  • if it was set:  mount option on the machine
  • otherwise the current users environment setting


Service mode:

If you have started rrServer or rrClient in service mode (should be default for a permanent installation), then output files and folder are created with this UMask:

  • if it was set:  mount option on the machine
  • if it was set:  otherwise UMask override of the RR service/daemon (change via rrWorkstationInstaller) 
  • otherwise the system default