All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Friesen <chris.friesen@windriver.com>
To: target-devel@vger.kernel.org
Subject: Bug?  CPU affinity of iSCSI target doesn't abide by kernel boot args
Date: Fri, 09 Mar 2018 21:08:01 +0000	[thread overview]
Message-ID: <5AA2F7B1.5050900@windriver.com> (raw)


I think I've found some suboptimal behaviour in the iSCSI target code, but I'd 
like another opinion.

Just as a caveat, this behaviour was first seen on a CentOS 7 kernel, but 
looking at the code I think it'll behave the same in master.

Basically, the issue is that the iSCSI target code creates a pair of kernel 
threads (one for tx, one for rx) for each connection.  Each pair gets affined to 
the same logical CPU.

The problem is that this affinity does not reflect kernel boot args such as 
"isolcpus", "rcu_nocbs", or "irqaffinity".  Instead, it seems to start at cpu0 
and increment by one for each pair of kernel threads.

This seems less than ideal.  If the sysadmin has tried to ensure certain CPUs 
are available for high-performance/low-latency work, it seems odd for the kernel 
to arbitrarily stick a pair of I/O threads on them.

Am I missing something?  Is there a way to set limits on where these threads are 
placed?

Thanks,
Chris

                 reply	other threads:[~2018-03-09 21:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5AA2F7B1.5050900@windriver.com \
    --to=chris.friesen@windriver.com \
    --cc=target-devel@vger.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 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.