From: Thomas Graf <tgraf@suug.ch>
To: Ranjit Manomohan <ranjitm@google.com>
Cc: netdev@vger.kernel.org, Paul Menage <menage@google.com>
Subject: Re: [RFC] Control Group Classifier
Date: Tue, 9 Sep 2008 02:06:27 +0200 [thread overview]
Message-ID: <20080909000627.GF20815@postel.suug.ch> (raw)
In-Reply-To: <166fe7950809081428k2e1ba24crd54e66aa027f9998@mail.gmail.com>
* Ranjit Manomohan <ranjitm@google.com> 2008-09-08 14:28
> Wouldn't this cause a lot of packets (like acks) to be incorrectly
> classifed to the current tasks cgroup although it may not have
> anything to do with them? That is the reason I chose to put the
> classid into the socket at creation time.
In its current form, it does not work if the packet is rescheduled
or not sent in the context of a process. Such packets simply end
up not being classified at all. In the most common case, the packet
is not queued before it hits the qdisc so this takes away a lot of
complexity and is very fast but should still be sufficient.
Alternatively I also thought about doing a socket lookup in the
classifier (if !skb->sk) and store the classid in the socket. This
would add more flexibility and work for ingress traffic whitout
adding pollution to the sk_buff. It adds a heavy operation to the
classification process though as it would probably require a lock.
next prev parent reply other threads:[~2008-09-09 0:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 11:51 [RFC] Control Group Classifier Thomas Graf
2008-09-08 21:28 ` Ranjit Manomohan
2008-09-09 0:06 ` Thomas Graf [this message]
2008-09-09 8:58 ` Thomas Graf
2008-09-10 17:58 ` Ranjit Manomohan
2008-10-08 7:02 ` Chei-yol Kim
2008-10-08 14:05 ` Thomas Graf
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=20080909000627.GF20815@postel.suug.ch \
--to=tgraf@suug.ch \
--cc=menage@google.com \
--cc=netdev@vger.kernel.org \
--cc=ranjitm@google.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).