I have a design protocol implemented in PyRosetta that has a very large memory footprint ~ 4Gb. I ran a python memory profiler on the design script and discovered that the sharp memory consumption increase occurs upon the initialization of PackRotamerMover (I presume this is where the rotamer library is instantiated). I have taken the following measures to reduce the memory consumption with no success:
1. Importing just the needed rosetta modules (as opposed to "from rosetta import *)
2. Removing -ex1 -ex2 , etc from the command line args on the init func
3. using the -linmem_ig 10 / 20 flag
4. Removing unnecessary patches from the database
Does anyone have an idea what do in order to reduce the memory consumption?