Re: gettimeofday calls

2003-01-24 Thread Greg Ames
MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote: I don't know if this has been discussed already, but I was thinking of the following alternatives : 1. how about the listener thread in each of the child process keeps updating a global time variable that each of the threads can refer to ?. 2. set t

Re: gettimeofday calls

2003-01-24 Thread Sander Temme
>> Is this against the spec or something ?. > > Which spec? If you are referring to either the SPECWeb99 run rules or to > RFC2616, neither of them dictate which syscalls you use. IIRC, the SPECWeb99 run rules just say that you have to treat ad expiration correctly. S. -- Covalent Technologie

Re: gettimeofday calls

2003-01-24 Thread Greg Ames
MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote: I tried that, and I got back error from specweb99 stating that the responses were not conforming. (or something like that).. OK, if you used r->request_time to replace the time() calls in mod_specweb99, you might have convert the units if the result

RE: gettimeofday calls

2003-01-24 Thread MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)
> -Original Message- > From: Greg Ames [mailto:[EMAIL PROTECTED] >I'm a little confused. The gettimeofday()/apr_time_now() happens in the httpd >core AFAIK. Brian Pane said that it's cheaper than time() on some platforms, I >believe. If we want to discuss alternatives to that, the di

Re: gettimeofday calls

2003-01-24 Thread Bill Stoddard
Infact, I tried this out yesterday (having the one global_time variable), it gives me around 3-4% improvement. But, occasionally I do get some un-conforming results, and I'm trying to figure out if it's because of the time stamp. You probably need to mutex updates to your global variable, which wi

RE: gettimeofday calls

2003-01-24 Thread MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)
>-Original Message- >From: Bill Stoddard [mailto:[EMAIL PROTECTED] [snip] >You probably need to mutex updates to your global variable, which will >probably suck out most of your performance gains. That is correct.. The assumption I had is : timestamp is done once per request, and since th

Re: gettimeofday calls

2003-01-24 Thread Greg Ames
MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote: I was referring to the time(), and thinking of alternative ways of replacing the time() call. I did that (without using the macros) - but didn't see much difference though.. I think I was banging my head against the wall yesterday - by tring to rem

Re: gettimeofday calls

2003-01-24 Thread Greg Ames
Bill Stoddard wrote: 1. Why we need to do the apr_stat() for static files each time the request comes in - can it be done during the module_init() phase, and the values put in a array of some sort. ?. Files change. Why not use mod_file_cache? It will (or should if it does not have a bug) elimin

Re: gettimeofday calls

2003-01-24 Thread Greg Ames
Bill Stoddard wrote: Infact, I tried this out yesterday (having the one global_time variable), it gives me around 3-4% improvement. But, occasionally I do get some un-conforming results, and I'm trying to figure out if it's because of the time stamp. You probably need to mutex updates to your g