I am not have the best luck with Ubuntu.
I got the best overall performance by doing the procedure that Juan recommend back in 2011
ll preview stored states stay in RAM. To store a preview's current volatile state, use the Preview > Store command. In this way you can accumulate a series of processes on a preview, just as you work with a main view. Naturally, since everything is kept in RAM, you'll exhaust it quickly if your images are large.
On UNIX and Linux we have tmpfs (temporary filesystem). /dev/tmpfs can be mounted on any directory to generate a dynamic RAM disk. It is very easy and of course it is absolutely stable. For example, the following commands:
cd ~
mkdir MySwapDir
su -c 'mount -t tmpfs -o size=4G /dev/tmpfs MySwapDir'
This got 11k total with 10k CPU using the created MySwapDir. However, change was not permanent. It reverted to swaps around 4000.
I deleted the ramdisk and recreated it. The swap went back up 10x to 40000. However, the process speed was again impared.
CPU score went down to 7500( 10,000 is typical in Windows.)
I think I will try Fedora. I don't like Ubuntu.
Max
Max