Hi,
It's probably most efficient to maximize $maxcor and set $ricore to 0. $ricore is not that helpful for larger systems, anyway. So, you could try using $maxcor 2000 (or perhaps a bit smaller like 1900 to avoid swapping) and $ricore 0. Using both $ricore 2000 and $maxcor 2000 might result in swapping and decreased performance unless the system is smaller and the program does not allocate all available memory.
Best,
Antti