You are here

free up space after building rosetta

3 posts / 0 new
Last post
free up space after building rosetta
#1

Hi eveyone,

I built Rosetta on a linux machine and it takes up 24G of space. However, I'd like to remove extra parts (like demos or pilot apps) or in any other way, reduce this space.

Is there any solution for this? Is it possible to keep the shared libraries and .so files and remove all the codes?

Thanks a lot in advance,

Hamed

Category: 
Post Situation: 
Wed, 2018-06-20 06:11
hamedkhakzad

First - disk space is cheap.  You are better off getting more disk space than fiddling with slimming down your build - you will waste time later recompiling / redownloading files when you discover you need something else.  I can give you advice on what can be deleted in some circumstances, but since I don't know your circumstances exactly you should be prepared to spend a lot of time recompiling or redownloading after something you did need got deleted.

Your question about pilot apps suggests you are a developer - this is probably a better question for Rosetta slack or rosetta-beginners if so.

Assuming you have built the code, you can delete the code itself, leaving only the stuff in bin and build, and the database.  You can also delete .git if it exists.

24 GB suggests you've done multiple compiles.  You probably only need one mode (release), so you can delete anything in build/src/debug and build/test.

At the extreme end - you can delete everything currently in build/ and rebuild ONLY the one executable that you need.  scons.py mode=release extras=static name_of_executable will build the statically linked copy of that executable.  Once you have a statically linked executable the only thing you still need is the database, all the code and other binaries can be deleted.

Wed, 2018-06-20 06:58
smlewis

Thanks a lot, that's all I need. Actually, I want to run one of my pilot app as part of a bigger workflow and I don't need other protocols. So I guess by removing the extra parts I can make some space free up for other apps.

Thu, 2018-06-21 02:30
hamedkhakzad