Hi, On 21 Okt., 22:54, "Justin C. Walker" <[EMAIL PROTECTED]> wrote: > On Oct 21, 2008, at 13:26 , Georg S. Weber wrote: > > > > > > > Hi, > > > On 21 Okt., 20:59, Emmanuel Thomé <[EMAIL PROTECTED]> wrote: > >> Hmm, it turns out that it's not just any code that triggers this > >> behaviour. However, with the following test case I can reproduce the > >> problem quite deterministically: > > >> (term1): strace -p `pidof sage.bin` -e trace='stat' > > >> (term2): > >> sage: for i in range(100): float(1)/2 > > > thanks for reporting this issue! > > > It's a very nice mind teaser to ponder about. > > > Since I have currently only Mac boxes in my reach, and on Mac OS X, > > there does not seem to be neither "strace" nor "pidof", I only can try > > to put pure thought on this one. > > FWIW, Mac OS X does have a variety of tools to help with this kind of > thing. See, among others, sc_usage (system calls), fs_usage (file- > system-specific calls), latency, Shark, and sample/Sample (the > capitalized ones are in the Xcode suite - whereever you installed - in > various directories under Applications/). >
I didn't do development on Apple Mac OS X yet, but I found the "Sampler" tool under Developer/Applications, thanks for the tip! It'll take some time to get acquainted to it, but it already showed me that while executing the following line: sage: for i in range(100): float(1)/2 the sage.bin process calls quite often "posix_stat", "posix_do_stat", and "stat", which mustn't be the case (Emmanuel is absolutely right there). It does not show me the arguments of "stat" (yet), I have to experiment around. On the other hand, potential fixes might be tested this way already: these many "stat" calls should just vanish. Cheers, gsw > Justin > > -- > Justin C. Walker, Curmudgeon at Large > Institute for the Absorption of Federal Funds > ----------- > I'm beginning to like the cut of his jibberish. > ----------- --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---