On Sat, May 30, 2009 at 7:21 AM, Kiran Kedlaya <ksk...@gmail.com> wrote:
>
>
>
> On May 29, 1:50 pm, William Stein <wst...@gmail.com> wrote:
>> 2009/5/29 Kiran Kedlaya <ksk...@gmail.com>:
>>
>>
>>
>>
>>
>> > On Apr 14, 3:47 pm, William Stein <wst...@gmail.com> wrote:
>> >> On Tue, Apr 14, 2009 at 12:30 PM, Kiran Kedlaya <ksk...@gmail.com> wrote:
>>
>> >> > I see 100% CPU usage when the notebook is processing a cell. I don't
>> >> > remember whether I still have it when a worksheet is open but idle.
>>
>> >> > Kiran
>>
>> >> For the record, I definitely don't see that (I just checked now) and
>> >> in fact I've never seen that on any OS/hardware combination ever.
>>
>> >> Could you make the above statement *precise*:
>> >>   - what OS/hardware?
>> >>   - what process(es) are 100% utilizing the CPU, exactly?  (obviously
>> >> at least one should be!)
>>
>> >> etc.
>>
>> >>  -- William
>>
>> > I'm seeing this on a 64-bit Opteron box running Fedora 10. When I run
>> > top, I see a "python" process at 100% CPU.
>>
>> What is "this" precisely?  Is it "I see 100% CPU usage when the
>> notebook is processing a cell."?  Since you *should* see 100% when
>> Sage is doing a calculation.
>>
>>
> I just tried a test with 3.4.1, and I was seeing 100% CPU usage (and
> impressive memory usage) even when the notebook was idle. This is a
> Fedora 64 system, so I also tried using a patched 4.0.rc1 that
> upgraded python to 2.5.4 (since that fixed other memory issues); that
> way, I don't see any CPU usage on idle, but when I try to evaluate 2+2
> I get 90+% CPU usage for 10+ seconds

Does that happen *every* time, or just the first time?
.
>
> It also takes much longer to start and stop the notebook on this
> system than, say, on sage.math (20+ seconds versus maybe 2 seconds),
> out of proportion to the CPU speeds of the machines.

Maybe your filesystem is slow?  Are you using nfs?

William



>
> In case it helps, I tried prun on the notebook and got this back:
>
>   ncalls  tottime  percall  cumtime  percall filename:lineno
> (function)
>        1  153.810  153.810  153.810  153.810 {posix.system}
>        1   25.122   25.122   25.128   25.128 {cPickle.dumps}
>        1    1.977    1.977    1.980    1.980 notebook.py:2278
> (load_notebook)
>        1    0.468    0.468   26.302   26.302 notebook.py:1643(save)
>        3    0.418    0.139    0.418    0.139 {method 'close' of
> 'file' objects}
>        1    0.156    0.156  182.257  182.257 run_notebook.py:49
> (notebook_twisted)
>     1853    0.124    0.000    0.124    0.000 {method 'write' of
> 'file' objects}
>     1852    0.083    0.000    0.083    0.000 {method 'read' of 'file'
> objects}
>        4    0.030    0.007    0.030    0.007 {open}
>        1    0.023    0.023    0.187    0.187 shutil.py:23
> (copyfileobj)
>        1    0.016    0.016    0.016    0.016 {posix.chmod}
>        2    0.014    0.007    0.014    0.007 {posix.rename}
>       72    0.003    0.000    0.006    0.000 worksheet.py:1932
> (__getstate__)
>       72    0.003    0.000    0.003    0.000 worksheet.py:1990
> (__setstate__)
>
> (et cetera)
>
> Kiran
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to