Since running PPv2.x from the desktop I've noticed unusual swapping occurring even though there has been plenty of system memory available. I've been running 8GB of system memory with 2GB swap file so there should not be any swapping happening.
So I was surprised to see swapping going on with plenty of main memory available. Although I never experienced any noticeable problems with this I had purposely installed 8GB to prevent swapping especially since I run multiple applications while running PP.
For most people not using the desktop or just using the standard PP install this probably is not applicable, but it wouldn't hurt to check.
Anyway, I finally figured out the default "Locked Memory Limit" for PPv2.x is only set for 64 & by increasing this to 2048 I've eliminated my swapping concerns.
Note: You need to have enough main memory to do this.
First, check the current value in effect using the terminal command:
Then you can change this setting by creating the following file:$ operator@tormachpcnc:~$ ulimit -l
Note: The password should be "tormach"$ operator@tormachpcnc:~$ sudo gedit /etc/security/limits.d/linuxcnc.conf
Enter the following line:
and save the file.* - memlock 2048
After rebooting you should see the new value in effect and there should not be any swapping going on.
This is documented here: Increase the locked memory limit