Thanks, Henrik pal!
I think storeSwapOutAble is used to check whether an object
is able to swap out.
I think return number 0 means it is not able to swap out, and 1
means it can swap out. Am I correct?
You mentioned, "If other than 0 then the head of the object has
been purged from memory". When you mentioning "purge", are you referring
to "swap". I think if it means "swap", it probably means that a part of
object has been swapped out, and we can continue to swap out the other
part of the object. So, return 0 is not resonable. :-( It really puzzled
me.
I also find it strange that swapIoState is not a enum, it really puzzled
me. :-) Am I correct?
Best regards,
George Ma
----- Original Message -----
From: Henrik Nordstrom
To: maer727@sohu.com ;hno@squid-cache.org
Cc: squid-dev@squid-cache.org
Subject: Re:Re: Puzzled at storeSwapOutAble. :-(
Sent: Tue Apr 23 18:00:41 CST 2002
> sio is short for swapIoState, e->mem_obj->swapout.sio is the swapIoState for
> swapping out the object to disk.
>
> inmem_lo indicates the lowest offset of the object currently in memory. If
> other than 0 then the head of the object has been purged from memory.
>
> Regards
> Henrik
>
> maer727@sohu.com wrote:
> > Thanks, Henrik pal!
> >
> > What is the variable e->mem_obj->swapout.sio stands for? I think
> > it must be start of something. But the meaning and function of the
> > variable really puzzled me. Can you give me a simple explanation?
> >
> > Another question, I think e->mem_obj->inmem_lo indicates the start
> > buffer address of the object in memory. How can you infer when
> > e->mem_obj->inmem_lo>0 that the start of the object is always missing?
> > What you mean "missing" here? Cache missing?
> > Can you give me a simple explabation?
> >
> > Best regards,
> > George Ma
> >
> >
> > ----- Original Message -----
> > From: Henrik Nordstrom
> > To: maer727@sohu.com
> > Cc: squid-dev@squid-cache.org
> > Subject: Re: Puzzled at storeSwapOutAble. :-(
> > Sent: Tue Apr 23 16:10:00 CST 2002
> >
> > > maer727@sohu.com wrote:
> > > > if (e->mem_obj->swapout.sio != NULL)
> > > > return 1;
> > > > if (e->mem_obj->inmem_lo > 0)
> > > > return 0;
> > > >
> > > > I do not understand why should we check swapout.sio and
Received on Tue Apr 23 2002 - 21:20:13 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:19 MST