All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Zhoupeng <zhoupeng1982@qq.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] Rtnet e1000e 82583: slow writel(tx_ring->tail), takes above 1us?
Date: Thu, 16 Apr 2015 16:46:38 +0200	[thread overview]
Message-ID: <20150416144638.GE1589@hermes.click-hack.org> (raw)
In-Reply-To: <tencent_2DCE8D1A1206C27E7BBEB0F4@qq.com>

On Thu, Apr 16, 2015 at 10:39:59PM +0800, Zhoupeng wrote:
> &gt;&gt; This is just MMIO write to 82583, of course MMIO is uncache.
> &gt;&gt; And PCIE ASPM is disabled, so L0s is not the problem.
> &gt;&gt; 
> &gt;&gt; I think PCIE Memory Write TLPs is fast enough, but why spend so much time?
> 
> &gt;There is an interesting article that may be relevant to this issue
> &gt;
> &gt;"PCI Express as a Killer of Software-based Real-Time Ethernet"
> 
> I have read the article carefully.
> The author don't mention PCIE ASPM, Latency will be better by disable it.
> 
> Every rt_dev_sendmsg will trigger one writel(tx_ring-&gt;tail) in Rtnet.
> As the "writel" is time expensive, improvement may be done to Rtnet:
> using rtskb to buffer multiple packets, and using one IOCTL to trigger "writel".

Patches welcome.

-- 
					    Gilles.


  reply	other threads:[~2015-04-16 14:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-16 12:26 [Xenomai] Rtnet e1000e 82583: slow writel(tx_ring->tail), takes above 1us? Mariusz Janiak
2015-04-16 14:39 ` Zhoupeng
2015-04-16 14:46   ` Gilles Chanteperdrix [this message]
2015-04-16 19:15   ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2015-04-16 11:30 Zhoupeng

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=20150416144638.GE1589@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    --cc=zhoupeng1982@qq.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 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.