Re: policy structures

From: Henrik Nordström <hno@dont-contact.us>
Date: Wed, 21 Aug 2002 10:45:46 +0200

Please keep Squid code questions on the squid-dev mailinglist.

The RTT has to be assigned somewhere in Squid where the RTT in question can be
calculated.

The policy implementation is not the correct place for this, as the policy is
also called on cache rebuilds, when the RTT calcualtions obviously will be
different. To operate correctly you probably will need to extend the
permanent segment of the StoreEntry (see Squid-2.5 or later)

suneetha@sfsu.edu wrote:
> Hi,
>
> >The request RTT is not available to removal policies by default to
> >conserve memory. You will need to extend the StoreEntry to keep this if
> >needed.
>
> If I extend StoreEntry structure with RTT member variable, where do I
> assign value to it?
>
> >The time of request is stored in the timestamp field, but only in seçonds
> >granularity (a time_t variable).
>
> If I have request timestamp, then can I calculate RTT as bellow in
> store_heap_replacement.c file to generate heap_key?
>
> RTT = squid_curtime - timestamp
>
> Can I assign this value to RTT variable in StoreEntry?
>
> Thank you.
> Suneetha.
Received on Wed Aug 21 2002 - 05:02:21 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:06 MST