General list for discussing Bufferbloat
 help / color / mirror / Atom feed
From: Michael Richardson <mcr@sandelman.ca>
To: Dave Taht <dave.taht@gmail.com>
Cc: bloat <bloat@lists.bufferbloat.net>
Subject: Re: [Bloat] emulating non-duplex media in linux qdiscs
Date: Mon, 09 Oct 2017 17:04:38 -0400	[thread overview]
Message-ID: <30527.1507583078@obiwan.sandelman.ca> (raw)
In-Reply-To: <CAA93jw6qwOgrnqxmPtBY2kOKY8gM24ZZg=86yZvMeMSUrVRbRA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1682 bytes --]


Dave Taht <dave.taht@gmail.com> wrote:
    > (Some people try to describe these as simplex (which is not true
    > because you can have multiple destinations), and they certainly are
    > not duplex, so I tend to say non-duplex and still hope some better
    > word emerges)

semi-multiplex?

    > So... one sticking point for me has been wanting to emulate the fact
    > that on shared media, that you cannot transmit and receive at the same
    > time; that these are "coupled" events, and what I'd like to be able to
    > express might be something like:

    > tc qdisc add dev eth0 root netem rate 100mbit coupled some_identifier
    > ... some tc mirred magic for ifb here ...
    > tc qdisc add dev ifb0 root netem rate 10mbit coupled the_same_identifier

    > "some_identifier" would be a mutex of some sort, and I confess to
    > not having much grip on the kernel outside of the net/sched directory.

    > What facility would be best to try and leverage? It would be created
    > (globally) on first use, ref-counted (thus destroyed when it goes to
    > zero), atomically updated... posix shared memory seems too heavyweight
    > to use....

I suspect (being equally ignorant of kernel stuff in the last decade) that
anytime you create a mutex that needs to be consistent across CPUs, that you
have to put it on a seperate page so that it can be flushed appropriately, so
I suspect that the overhead is already there.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        | network architect  [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  parent reply	other threads:[~2017-10-09 21:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-09  1:54 Dave Taht
2017-10-09  7:41 ` erik.taraldsen
2017-10-09 16:53   ` Dave Taht
2017-10-09 19:05     ` Andrew Shewmaker
2017-10-10  7:02     ` Mikael Abrahamsson
2017-10-10  8:38     ` erik.taraldsen
2017-10-10 13:21       ` Michael Richardson
2017-10-09 13:09 ` Y
2017-10-09 20:21 ` Stephen Hemminger
2017-10-09 21:04 ` Michael Richardson [this message]
2017-10-10  9:25 ` Luca Muscariello

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

  List information: https://lists.bufferbloat.net/postorius/lists/bloat.lists.bufferbloat.net/

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

  git send-email \
    --in-reply-to=30527.1507583078@obiwan.sandelman.ca \
    --to=mcr@sandelman.ca \
    --cc=bloat@lists.bufferbloat.net \
    --cc=dave.taht@gmail.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