POV-Ray : Newsgroups : povray.macintosh : Allocating further than 128 to POV : Re: cache hit rate Server Time
3 Jul 2024 05:15:12 EDT (-0400)
  Re: cache hit rate  
From: Thorsten Froehlich
Date: 10 Aug 1999 12:56:49
Message: <37b059d1@news.povray.org>
In article <37B042CA.8624B5C6@ma.usb.ve> , Alberto <ame### [at] mausbve>  
wrote:
> BTW. I have set the memory cache to largest, and of course, negative values
> also appear on completely rendered images.

Hmm, yes. I use a very simple way to calcualte the cache hit rate and for
more than 21.45 million memory allocations this will cause an integer value
overflow calculating the hit rate (which causes the value to be negative).
This is not harmful, but of course it gives incorrect values.
Here is how to calculate the correct hit rate (in percent):

Cache hit rate = (Cache hits * 100) / (Total calls to malloc)

Thus, also stated otherwise, you have a nearly 100% hit rate for your scene!
Just ignore the cache hit rate notice.

I am sorry for this bug. Thank you for pointing it out!
As it is not serious, it won't get fixed until POV-Ray Mac 3.5.


    Thorsten


____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.