[sheepdog] [PATCH v2 2/5] logger: use LWP for worker idx

MORITA Kazutaka morita.kazutaka at gmail.com
Thu Feb 28 13:03:15 CET 2013


At Thu, 28 Feb 2013 19:15:43 +0800,
Liu Yuan wrote:
> 
> On 02/28/2013 06:46 PM, MORITA Kazutaka wrote:
> > We cannot use a sequence number for the thread index any more.  This
> > patch uses LWP for it instead.
> 
> I am wondering if we should have seq number in mind even if we don't
> need it now. Seq number can be good for accounting like how many IOPS
> our sheep daemon can provide and other billing accounts.

Gathering information required for billing is one of the important
things we are missing.  But, with the thread pool model, the same
thread can be used many times.  To calculate the total number of IOPS,
we have to count it in another place (e.g. do_client_rx and
do_client_tx).

Thanks,

Kazutaka



More information about the sheepdog mailing list