All of lore.kernel.org
 help / color / mirror / Atom feed
* why ShardedWQ in osd using smart pointer for PG?
@ 2015-11-10 15:19 池信泽
  2015-11-10 18:28 ` Gregory Farnum
  0 siblings, 1 reply; 4+ messages in thread
From: 池信泽 @ 2015-11-10 15:19 UTC (permalink / raw)
  To: ceph-devel

hi, all:

     op_wq is declared as ShardedThreadPool::ShardedWQ < pair <PGRef,
OpRequestRef> > &op_wq. I do not know why we should use PGRef in this?

     Because the overhead of the smart pointer is not small. Maybe the
raw point PG* is also OK?

     If op_wq is changed to ShardedThreadPool::ShardedWQ < pair <PG*,
OpRequestRef> > &op_wq (using raw point)

     the latency for PrioritizedQueue:;enqueue decrease from 3.38us -> 1.89us

     the latency for PrioritizedQueue:;dequeue decrease from 3.44us -> 1.65us

     Is this make sense to you?

-- 
Regards,
xinze

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-11-11  0:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-10 15:19 why ShardedWQ in osd using smart pointer for PG? 池信泽
2015-11-10 18:28 ` Gregory Farnum
2015-11-11  0:20   ` 池信泽
2015-11-11  0:22     ` Gregory Farnum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.