Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage is too big! #1293

Closed
zimmermann6 opened this issue Nov 27, 2007 · 9 comments
Closed

sage is too big! #1293

zimmermann6 opened this issue Nov 27, 2007 · 9 comments

Comments

@zimmermann6
Copy link

I was told that SAGE did use less memory than Maple or Mathematica. I did check on sage.math.washington.edu:

zimmerma@sage:~$ du -s /usr/local/maple10
388908  /usr/local/maple10

zimmerma@sage:~$ du -s /usr/local/mathematica-5.2
641016  /usr/local/mathematica-5.2

sage:/tmp/zimmerma/sage-2.8.14> make install DESTDIR=/tmp/zimmerma/sage-2.8.14-\
install
sage:/tmp/zimmerma/sage-2.8.14> du -s /tmp/zimmerma/sage-2.8.14-install
1237280 /tmp/zimmerma/sage-2.8.14-install

I can understand that the SAGE developers need all the source and binaries installed, but I wish a minimal
version for the simple user that would use at most the same amount of memory than Maple or Mathematica,
not 2 times or 3 times more!

Component: distribution

Issue created by migration from https://trac.sagemath.org/ticket/1293

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Nov 27, 2007

comment:1

Well, your numbers are slighly inflated because "make install" is still experimental and copies fata not needed:

mabshoff@sage:/tmp/Work-mabshoff/size$ du -sch sage-2.8.13-use_this_on_sage_dot_math-x86_64-Linux
802M    sage-2.8.13-use_this_on_sage_dot_math-x86_64-Linux

The current 2.8.13 binary expands to 802 MB which is still too large, but somewhat smaller than the 1.2GB you had.

But it would be a good thing to slim down the installed Sage if it is possible.

Cheers,

Michael

@malb
Copy link
Member

malb commented Dec 6, 2007

comment:2

Some numbers:

  • a fresh 2.8.13 is 804M (binary release, i.e. spkg is basically empty)
  • after striping all executable files + *.so we are down to 655M
  • if we - as an experiment only, this shouldn't be done in real lift because it breaks updates etc. - also remove *.a we are down to 536M
  • of this 149M are in devel and 344M are in local

@zimmermann6
Copy link
Author

comment:3

Here are the brand new figures for sage-2.9 on a 64-bit computer (Opteron under Fedora7):

achille% du -s /usr/local/sage-2.9
1517144 /usr/local/sage-2.9

If the figures are comparable on sage.math (which I assume) this is 2.4 times larger than Mathematica and 3.9 times
larger than Maple.

@malb
Copy link
Member

malb commented Sep 28, 2008

comment:4

Some new datapoints:

  • 3.1.3.alpha1 is 1.7GB after compilation (64-bit Linux),
  • it is safe to delete all spkgs in $SAGE_ROOT/spkgs/standard,
  • it is safe to strip executables,
  • it is safe to strip shared libraries with -g -R .comment -R .note,
  • one may delete all of $SAGE_ROOT/devel/sage/build except for the sage subdirectory.

The result is 1.1GB which is still massive. I'm building with -Os now to see how much of a difference that makes.

@malb
Copy link
Member

malb commented Sep 28, 2008

comment:5

I think this should also be safe in $SAGE_ROOT/devel/sage/sage/

for f in `find -name "*.pyx"`; do echo $f | sed "s/\.pyx/\.c/" | xargs rm; done
for f in `find -name "*.pyx"`; do echo $f | sed "s/\.pyx/\.cpp/" | xargs rm; done

to delete all autogenerated .c and .cpp files.

This seems to free ~ 80MB

@malb
Copy link
Member

malb commented Sep 28, 2008

comment:6

Actually, the result is smaller than 1.1GB as I forgot to strip the Sage extensions. The result including the add-on above is 978M but still fully functional, I believe.

@zimmermann6
Copy link
Author

comment:7

I guess this issue won't be fixed, thus I close this ticket.

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Feb 5, 2010

comment:8

Make sure you understand the procedure for closing tickets. See this section of the Developer's Guide for more information.

@sagetrac-mvngu sagetrac-mvngu mannequin added r: worksforme and removed r: wontfix labels Feb 5, 2010
@zimmermann6
Copy link
Author

comment:9

Sorry I didn't know I wasn't allowed to close tickets!
It would be better to remove the "closed" button for "normal" users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants