Sage starts slowly

62 views
Skip to first unread message

Tom

unread,
Dec 9, 2019, 6:37:39 PM12/9/19
to sage-support
 I’ve installed SageMath-8.9.app.dmg on my MAC (OS X 10.14.6).  There was no link installed on the desktop. I tried to start Sage by double clicking on “SageMath-8.9” in the Applications folder.   After about 3 hours this "file:///Applications/SageMath-8.9.app/Contents/Resources/loading-page.html” turned up in Safari. After about a half-hour more, this "http://localhost:8888/tree” opened up in a new Safari window, from which I appear to be able to open notebooks. 

      1.  How do I set it up so I can start Sage from the desktop (or applications folder or dock), more quickly?
      2.  How do I run sage from a command line window?

            Thanks,

                     Tom

Dima Pasechnik

unread,
Dec 9, 2019, 6:49:00 PM12/9/19
to sage-support
On Mon, Dec 9, 2019 at 11:37 PM Tom <tcmcm...@gmail.com> wrote:
>
> I’ve installed SageMath-8.9.app.dmg on my MAC (OS X 10.14.6). There was no link installed on the desktop. I tried to start Sage by double clicking on “SageMath-8.9” in the Applications folder. After about 3 hours this "file:///Applications/SageMath-8.9.app/Contents/Resources/loading-page.html” turned up in Safari. After about a half-hour more, this "http://localhost:8888/tree” opened up in a new Safari window, from which I appear to be able to open notebooks.
>
> 1. How do I set it up so I can start Sage from the desktop (or applications folder or dock), more quickly?

I have no idea why this is happening (our MacOS expert is AWOL for a
number of years, and the app thing might be
broken). After the installation, the startup times are few seconds.
You can certainly just install the terminal version
sage-8.9-OSX_10.14.6-x86_64.tar.bz2
and run it in terminal; to open notebooks one can start it as

sage -n

HTH


> 2. How do I run sage from a command line window?
>
> Thanks,
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/1c28c5b7-5cf2-48f8-93cb-20c4b2990c72%40googlegroups.com.

slelievre

unread,
Dec 9, 2019, 9:28:10 PM12/9/19
to sage-support

Richard W Bump

unread,
Dec 10, 2019, 12:41:57 PM12/10/19
to sage-support
On my late 2012 Mac-mini with a 2.6GHZ quad core I7 processor it takes about 3 minutes to load from the desktop ICON.  I loaded 8.9 under the previous (10.13.?) version and it did take several minutes, probably at least 15 minutes, to organize and start.  The last few versions of SageMath have been slow to start.  When I have a problem as you describe, I just delete and reload, but with Catalina, I'm not sure how it will load.  My machine is old and overloaded with at least two other servers running, so I expect slower results, some I start and stop like Sage unless I or my wife needs it, but two are usually constantly going.  You might try deleting what you have, try another download site . . . I like Washington or MIT, that has been an issue once,  reload, and step away from the machine until it prompts you. I have been impatient more than once and experienced problems.   

Richard W Bump

unread,
Dec 10, 2019, 12:45:57 PM12/10/19
to sage-support
Forgot to add I am currently running 10.15.1

Thomas McMillan

unread,
Dec 10, 2019, 1:56:53 PM12/10/19
to sage-s...@googlegroups.com
Thanks, Richard. I’m currently running Sage from a terminal with the option of opening a notebook. It works reasonably well. The app version kept taking too long to get started. 

--
Tom McMillan (iPad)

On Dec 10, 2019, at 11:42 AM, Richard W Bump <richard...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.

dim...@gmail.com

unread,
Dec 10, 2019, 2:18:06 PM12/10/19
to sage-s...@googlegroups.com
On Tue, Dec 10, 2019 at 12:56:45PM -0600, Thomas McMillan wrote:
> Thanks, Richard. I’m currently running Sage from a terminal with the option of opening a notebook. It works reasonably well. The app version kept taking too long to get started.

One reason for slowness might be one of these
quarantine/antivirus/malware/etc settings on MacOS that might make all
the app files being "verified" on statup.

"proper apps", from MacOS point of view, must be signed/come
from App Store, while the rest are subjected to these checks.

So one might try to play with these settings.

HTH
Dima
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/2E8EE312-DD16-4F5A-8BE1-C4C6C6A129A9%40gmail.com.
signature.asc

Dima Pasechnik

unread,
Dec 10, 2019, 2:27:56 PM12/10/19
to sage-support
right, it was discussed here
https://groups.google.com/d/msg/sage-devel/nlXP6cv4LAY/MKkqEDu8BwAJ
at length (Ivan works with Apple products in his day job I believe),
so it's quarantine feature that kills App startup
time.

I think we should just pull binaries for the MacOS App, until this is fixed.

Richard W Bump

unread,
Dec 10, 2019, 3:10:44 PM12/10/19
to sage-support
FYI, I saw your recent email comments about pulling the app, I guess from the development site.  Yes, v8.9, the app.dmg,  is slow on Catalina, but no slower than it was on Mohave. Again, I can't account for all the factors on my 2012 MAC-mini since it is truly overworked. Nevertheless, I am relatively sure I installed it on 10.13 and perhaps again on 10.14 after I messed it up playing with the Jupiter server.  I know I loaded it twice.  I have loaded up to version 8.7 as an HTPPS server on my 2011 MACBookPro, running OS 10.13.?,High Sierra, before my wife absconded with it.  I installed that from scratch using the tz or gz file and it was speedy and had all the bells and whistles working, but 8.7 the app version on my 2012 Mac mini was slow to start, and was a bit sluggish in comparison to the older 2011 MACBook PRO, but again MS Office runs significantly faster on the 2011 MACBook Pro in comparison to the 2012 MAC-mini.  I can count to ten on the latter.  Realize this isn't much of a benchmark, but hope that helps.  I guess I could try a reload on the MAC-mini, but I hate trying to fix something "that ain't broke."  8.7 was also speedy under Fedora Linux v29 and that was using even a slower processor.  


On Tuesday, December 10, 2019 at 1:18:06 PM UTC-6, dim...@gmail.com wrote:
On Tue, Dec 10, 2019 at 12:56:45PM -0600, Thomas McMillan wrote:
> Thanks, Richard. I’m currently running Sage from a terminal with the option of opening a notebook. It works reasonably well. The app version kept taking too long to get started.

One reason for slowness might be one of these
quarantine/antivirus/malware/etc settings on MacOS that might make all
the app files being "verified" on statup.

"proper apps", from MacOS point of view, must be signed/come
from App Store, while the rest are subjected to these checks.

So one might try to play with these settings.

HTH
Dima

>
> --
> Tom McMillan (iPad)
>
> > On Dec 10, 2019, at 11:42 AM, Richard W Bump <richar...@gmail.com> wrote:
> >
> > 
> > On my late 2012 Mac-mini with a 2.6GHZ quad core I7 processor it takes about 3 minutes to load from the desktop ICON.  I loaded 8.9 under the previous (10.13.?) version and it did take several minutes, probably at least 15 minutes, to organize and start.  The last few versions of SageMath have been slow to start.  When I have a problem as you describe, I just delete and reload, but with Catalina, I'm not sure how it will load.  My machine is old and overloaded with at least two other servers running, so I expect slower results, some I start and stop like Sage unless I or my wife needs it, but two are usually constantly going.  You might try deleting what you have, try another download site . . . I like Washington or MIT, that has been an issue once,  reload, and step away from the machine until it prompts you. I have been impatient more than once and experienced problems.  
> >
> >> On Monday, December 9, 2019 at 5:37:39 PM UTC-6, Tom wrote:
> >>  I’ve installed SageMath-8.9.app.dmg on my MAC (OS X 10.14.6).  There was no link installed on the desktop. I tried to start Sage by double clicking on “SageMath-8.9” in the Applications folder.   After about 3 hours this "file:///Applications/SageMath-8.9.app/Contents/Resources/loading-page.html” turned up in Safari. After about a half-hour more, this "http://localhost:8888/tree” opened up in a new Safari window, from which I appear to be able to open notebooks.
> >>
> >>       1.  How do I set it up so I can start Sage from the desktop (or applications folder or dock), more quickly?
> >>       2.  How do I run sage from a command line window?
> >>
> >>             Thanks,
> >>
> >>                      Tom
> >
> > --
> > You received this message because you are subscribed to the Google Groups "sage-support" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/c032a19f-4da2-49ed-ac00-fadef69687c4%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.

Dima Pasechnik

unread,
Dec 10, 2019, 4:15:15 PM12/10/19
to sage-s...@googlegroups.com
On Tue, 10 Dec 2019 at 20:10, Richard W Bump <richard...@gmail.com> wrote:
FYI, I saw your recent email comments about pulling the app, I guess from the development site.  Yes, v8.9, the app.dmg,  is slow on Catalina, but no slower than it was on Mohave.

yes, it got slow on Mojave already, as noticed in the post linked in my previous email.


Again, I can't account for all the factors on my 2012 MAC-mini since it is truly overworked. Nevertheless, I am relatively sure I installed it on 10.13 and perhaps again on 10.14 after I messed it up playing with the Jupiter server.  I know I loaded it twice.  I have loaded up to version 8.7 as an HTPPS server on my 2011 MACBookPro, running OS 10.13.?,High Sierra, before my wife absconded with it.  I installed that from scratch using the tz or gz file and it was speedy and had all the bells and whistles working, but 8.7 the app version on my 2012 Mac mini was slow to start, and was a bit sluggish in comparison to the older 2011 MACBook PRO, but again MS Office runs significantly faster on the 2011 MACBook Pro in comparison to the 2012 MAC-mini.  I can count to ten on the latter.  Realize this isn't much of a benchmark, but hope that helps.  I guess I could try a reload on the MAC-mini, but I hate trying to fix something "that ain't broke."  8.7 was also speedy under Fedora Linux v29 and that was using even a slower processor.  

the problem in question is MacOS-specific.

To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/098777d4-b2f6-423a-8dca-b40b0872be63%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages