On 2013/1/12 0:59, Alexey Perevalov wrote: > Hello > > I'm sorry for previous email with attachments. > > I would like to represent next version of patch I sent before > cgroup: "net_cls: traffic counter based on classification control cgroup" > > The main idea is the same as was. It keeping counter in control groups, but now uses atomic instead resource_counters. > > I have a performance measurement for this patch. It was done by lmbench on physical machine. > Results are not so representative for 20 tests and some numbers are real weird. > > Daniel Wagner wrote what he is doing something similar, but using namespaces. > > Proposed by me approach is used in upcoming Tizen release, but little bit different version. > > > Signed-off-by: Alexey Perevalov <a.perevalov@xxxxxxxxxxx> > --- > include/net/cls_cgroup.h | 200 ++++++++++++++++++++++++++++++++++---- > include/net/cls_counter_holder.h | 26 +++++ > init/Kconfig | 25 +++++ > kernel/cgroup.c | 2 + > kernel/res_counter.c | 4 + > net/core/dev.c | 6 ++ > net/ipv4/tcp.c | 29 +++++- > net/ipv4/udp.c | 6 ++ > net/sched/Kconfig | 11 --- > net/sched/Makefile | 1 + > net/sched/cls_cgroup.c | 193 +++++++++++++++++++++++++++++++++++- > net/sched/cls_counter_holder.c | 144 +++++++++++++++++++++++++++ > 12 files changed, 612 insertions(+), 35 deletions(-) > create mode 100644 include/net/cls_counter_holder.h > create mode 100644 net/sched/cls_counter_holder.c You should cc netdev mailing list. -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html