WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: Janne Johansson <icepic.dz@gmail.com>
To: Roman Mamedov <rm@romanrm.net>
Cc: Christopher Bachner <hello@chrisbox.org>,
	WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Speed on Raspberry Pi 4
Date: Thu, 18 Jul 2019 10:01:31 +0200
Message-ID: <CAA6-MF_yzAj5-+D6K_H9GaQRaZLLW0D2a88FQnMmwO66+=O67g@mail.gmail.com> (raw)
In-Reply-To: <20190718115614.60b7927a@natsu>

[-- Attachment #1.1: Type: text/plain, Size: 765 bytes --]

Den tors 18 juli 2019 kl 08:56 skrev Roman Mamedov <rm@romanrm.net>:

> On Thu, 18 Jul 2019 08:38:54 +0200
> Janne Johansson <icepic.dz@gmail.com> wrote:
>
> > With taskset you should be able to:
> > https://www.howtoforge.com/linux-taskset-command/
>
> It appears "taskset" only works on regular programs, not kernel threads:
>
> # taskset -p -c 1 2128
> pid 2128's current affinity list: 0
> taskset: failed to set pid 2128's affinity: Invalid argument
>
> # taskset -p -c 1 2129
> pid 2129's current affinity list: 1
> taskset: failed to set pid 2129's affinity: Invalid argument
>
> As the above shows, WG threads are already bound to a particular CPU and
> this
> can't be changed.
>

Right, my bad.

-- 
May the most significant bit of your life be positive.

[-- Attachment #1.2: Type: text/html, Size: 1406 bytes --]

<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tors 18 juli 2019 kl 08:56 skrev Roman Mamedov &lt;<a href="mailto:rm@romanrm.net">rm@romanrm.net</a>&gt;:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, 18 Jul 2019 08:38:54 +0200<br>
Janne Johansson &lt;<a href="mailto:icepic.dz@gmail.com" target="_blank">icepic.dz@gmail.com</a>&gt; wrote:<br>
<br>
&gt; With taskset you should be able to:<br>
&gt; <a href="https://www.howtoforge.com/linux-taskset-command/" rel="noreferrer" target="_blank">https://www.howtoforge.com/linux-taskset-command/</a><br>
<br>
It appears &quot;taskset&quot; only works on regular programs, not kernel threads:<br>
<br>
# taskset -p -c 1 2128<br>
pid 2128&#39;s current affinity list: 0<br>
taskset: failed to set pid 2128&#39;s affinity: Invalid argument<br>
<br>
# taskset -p -c 1 2129<br>
pid 2129&#39;s current affinity list: 1<br>
taskset: failed to set pid 2129&#39;s affinity: Invalid argument<br>
<br>
As the above shows, WG threads are already bound to a particular CPU and this<br>
can&#39;t be changed.<br></blockquote><div><br></div><div>Right, my bad. </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">May the most significant bit of your life be positive.<br></div></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

  reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-29 10:38 Christopher Bachner
2019-07-17 20:50 ` Roman Mamedov
2019-07-18  6:38   ` Janne Johansson
2019-07-18  6:56     ` Roman Mamedov
2019-07-18  8:01       ` Janne Johansson [this message]
2019-07-18  8:15         ` Matthias Urlichs

Reply instructions:

You may reply publically 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='CAA6-MF_yzAj5-+D6K_H9GaQRaZLLW0D2a88FQnMmwO66+=O67g@mail.gmail.com' \
    --to=icepic.dz@gmail.com \
    --cc=hello@chrisbox.org \
    --cc=rm@romanrm.net \
    --cc=wireguard@lists.zx2c4.com \
    /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

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/ public-inbox