public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
From: Gal Ofri <gal.ofri@storing.io>
To: Guoqing Jiang <jgq516@gmail.com>
Cc: linux-raid@vger.kernel.org, Song Liu <song@kernel.org>,
	Neil Brown <neilb@suse.de>
Subject: Re: [PATCH] md/raid5: reduce lock contention in read_one_chunk()
Date: Fri, 4 Jun 2021 11:53:52 +0300	[thread overview]
Message-ID: <20210604115352.0393aa28@gofri-dell> (raw)
In-Reply-To: <2a5d0251-bfa5-4ea5-084d-23bbe52104ac@gmail.com>

On Fri, 4 Jun 2021 15:43:48 +0800
Guoqing Jiang <jgq516@gmail.com> wrote:

> Just curious '8'  is chose for  group_thread_cnt. IIUC, group means one 
> numa node, and better to
> set it  to match the number of cores in one numa node in case better 
> performance is expected.
Since the worker threads has really low impact on 100%-read workloads,
group_thread_cnt has no effect here.  It performs just as good with
group_thread_cnt set to 0, 8 or 96.  Thinking about it, I should probably
omit that comment from the patch.

btw, in write workloads, the worker threads are actually contended by
device_lock, so choosing any number >8 often results in degraded
performance in my tests.  I have a p.o.c. branch that reduces the
contention by replacing device_lock with hash locks to remove that
contention, but it's a big-risky patch so I'd need to break it down first. 

Thanks, Gal

      reply	other threads:[~2021-06-04  8:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-03 13:54 [PATCH] md/raid5: reduce lock contention in read_one_chunk() gal.ofri
2021-06-03 23:31 ` NeilBrown
2021-06-04  8:42   ` Gal Ofri
2021-06-04  9:19     ` Gal Ofri
2021-06-05  0:30       ` NeilBrown
2021-06-06 15:10         ` Gal Ofri
2021-06-04  7:43 ` Guoqing Jiang
2021-06-04  8:53   ` Gal Ofri [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210604115352.0393aa28@gofri-dell \
    --to=gal.ofri@storing.io \
    --cc=jgq516@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    --cc=song@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox