Mail Archives: djgpp/1998/02/14/03:01:42
Thomas Demmer wrote:
>Thomas Demmer wrote:
>> Paul Byrne wrote:
>[...]
>>
>> > The report from gprof only accounts for about 10 seconds of computation.
>> > I ran it again and let it go for an hour or so, stopped the program
>> > and gprof accounts for 30 seconds. (Without profiling the program
>> > exits normally in about 5 minutes.) It does seem to be consuming CPU
>> > time, it's just not doing anything.
>> With profiling on, the run time is about 2-3 times normal speed,
>> so this is normal.
>>
>[...]
>Seems to be one of my not that good days...
>Rereading and this time understanding your mail...
>A factor of 120 _is_ strange. Do you run this in a
>Windows DOS box or under plain DOS? The only idea
>I have right now that running under W95 screws up the timer,
>if you run under DOS, it should behave quite normal.
>
>What exactly does you program do? Is there a lot of
>swapping? Any networking stuff included?
>Please post how much memory you have available,
>and how much your program approximately consumes.
I did some more tests and got a factor of over 200 both
in a win95 dos box and in dos mode. Just a brute
force computation: no swapping or networking and only
a meg or two in use. The results were correct, it's
just very slow.
The good news is that after getting the patched libc
this dropped to a much more reasonable factor of 3.
Something in those patches seems to have done the trick!
Thanks for your help!
-paul
- Raw text -