public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* per-cpu stats in block device: overkill?
@ 2008-12-22  0:19 Rusty Russell
  2008-12-22  1:55 ` Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Rusty Russell @ 2008-12-22  0:19 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Tejun Heo, Jerome Marchand, linux-kernel, Christoph Lameter

Hi Jens, Tejun, Jerome,

  I've been auditing alloc_per_cpu users, and got to genhd.  The code is fairly complex, but I can't help wondering if per-cpu counters are overkill.  After all, we have a single queue lock.

  The reason I care is that I'm changing alloc_per_cpu to use the static per-cpu area: at 40/80 bytes (32/64 bit) per stat, we'd be restricted to a few hundred disks unless the percpu area is enlarged (in current patches, a cmdline param).  Or, I can change genhd to use big_percpu_alloc which will use the current inefficient dynamic per-cpu system until we get dynamic per-cpu regions (if ever).

Cheers,
Rusty.

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

end of thread, other threads:[~2008-12-22  3:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-22  0:19 per-cpu stats in block device: overkill? Rusty Russell
2008-12-22  1:55 ` Tejun Heo
2008-12-22  3:56   ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox