From: Jesper Dangaard Brouer <hawk@kernel.org>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: "Toke Høiland-Jørgensen" <toke@redhat.com>,
bpf@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH RFC net-next 1/2] net: Reference bpf_redirect_info via task_struct on PREEMPT_RT.
Date: Thu, 22 Feb 2024 11:10:44 +0100 [thread overview]
Message-ID: <f782b460-38fc-4c2b-b886-870760a96ece@kernel.org> (raw)
In-Reply-To: <20240222092228.4ACXUrvU@linutronix.de>
On 22/02/2024 10.22, Sebastian Andrzej Siewior wrote:
> On 2024-02-20 16:32:08 [+0100], To Jesper Dangaard Brouer wrote:
>>>
>>> Ethtool(i40e2) stat: 15028585 ( 15,028,585) <= tx-0.packets /sec
>>> Ethtool(i40e2) stat: 15028589 ( 15,028,589) <= tx_packets /sec
>>
>> -t1 in ixgbe
>> Show adapter(s) (eth1) statistics (ONLY that changed!)
>> Ethtool(eth1 ) stat: 107857263 ( 107,857,263) <= tx_bytes /sec
>> Ethtool(eth1 ) stat: 115047684 ( 115,047,684) <= tx_bytes_nic /sec
>> Ethtool(eth1 ) stat: 1797621 ( 1,797,621) <= tx_packets /sec
>> Ethtool(eth1 ) stat: 1797636 ( 1,797,636) <= tx_pkts_nic /sec
>> Ethtool(eth1 ) stat: 107857263 ( 107,857,263) <= tx_queue_0_bytes /sec
>> Ethtool(eth1 ) stat: 1797621 ( 1,797,621) <= tx_queue_0_packets /sec
> …
>> while sending with ixgbe while running perf top on the box:
>> | Samples: 621K of event 'cycles', 4000 Hz, Event count (approx.): 49979376685 lost: 0/0 drop: 0/0
>> | Overhead CPU Command Shared Object Symbol
>> | 31.98% 000 kpktgend_0 [kernel] [k] xas_find
>> | 6.72% 000 kpktgend_0 [kernel] [k] pfn_to_dma_pte
>> | 5.63% 000 kpktgend_0 [kernel] [k] ixgbe_xmit_frame_ring
>> | 4.78% 000 kpktgend_0 [kernel] [k] dma_pte_clear_level
>> | 3.16% 000 kpktgend_0 [kernel] [k] __iommu_dma_unmap
>
> I disabled the iommu and I get to
Yes, clearly IOMMU code that cause the performance issue for you.
This driver doesn't use page_pool, so I want to point out (for people
finding this post in the future) that page_pool keeps DMA mappings for
recycled frame, which should address the IOMMU overhead issue here.
>
> Ethtool(eth1 ) stat: 14158562 ( 14,158,562) <= tx_packets /sec
> Ethtool(eth1 ) stat: 14158685 ( 14,158,685) <= tx_pkts_nic /sec
>
> looks like a small improvement… It is not your 15 but close. -t2 does
> improve the situation.
You cannot reach 15Mpps on 10Gbit/s as wirespeed for 10G is 14.88Mpps.
Congratulations, I think this 14.15 Mpps is as close to wirespeed as it
possible on your hardware.
BTW what CPU are you using?
> There is a warning from DMA mapping code but ;)
It is a warning from IOMMU code?
It usually means there is a real DMA unmap bug (which we should fix).
--Jesper
next prev parent reply other threads:[~2024-02-22 10:10 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 14:58 [PATCH RFC net-next 0/2] Use per-task storage for XDP-redirects on PREEMPT_RT Sebastian Andrzej Siewior
2024-02-13 14:58 ` [PATCH RFC net-next 1/2] net: Reference bpf_redirect_info via task_struct " Sebastian Andrzej Siewior
2024-02-13 20:50 ` Jesper Dangaard Brouer
2024-02-14 12:19 ` Sebastian Andrzej Siewior
2024-02-14 13:23 ` Toke Høiland-Jørgensen
2024-02-14 14:28 ` Sebastian Andrzej Siewior
2024-02-14 16:08 ` Toke Høiland-Jørgensen
2024-02-14 16:36 ` Sebastian Andrzej Siewior
2024-02-15 20:23 ` Toke Høiland-Jørgensen
2024-02-16 16:57 ` Sebastian Andrzej Siewior
2024-02-19 19:01 ` Toke Høiland-Jørgensen
2024-02-20 9:17 ` Jesper Dangaard Brouer
2024-02-20 10:17 ` Sebastian Andrzej Siewior
2024-02-20 10:42 ` Jesper Dangaard Brouer
2024-02-20 12:08 ` Sebastian Andrzej Siewior
2024-02-20 12:57 ` Jesper Dangaard Brouer
2024-02-20 15:32 ` Sebastian Andrzej Siewior
2024-02-22 9:22 ` Sebastian Andrzej Siewior
2024-02-22 10:10 ` Jesper Dangaard Brouer [this message]
2024-02-22 10:58 ` Sebastian Andrzej Siewior
2024-02-20 12:10 ` Dave Taht
2024-02-14 16:13 ` Toke Høiland-Jørgensen
2024-02-15 9:04 ` Sebastian Andrzej Siewior
2024-02-15 12:11 ` Toke Høiland-Jørgensen
2024-02-13 14:58 ` [PATCH RFC net-next 2/2] net: Move per-CPU flush-lists to bpf_xdp_storage " Sebastian Andrzej Siewior
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=f782b460-38fc-4c2b-b886-870760a96ece@kernel.org \
--to=hawk@kernel.org \
--cc=bigeasy@linutronix.de \
--cc=bpf@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=toke@redhat.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
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;
as well as URLs for NNTP newsgroup(s).