lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <VI1PR0501MB214328EE73036EEB5729013CABEA0@VI1PR0501MB2143.eurprd05.prod.outlook.com>
Date:   Tue, 16 Jan 2018 01:44:04 +0000
From:   Chris Mi <chrism@...lanox.com>
To:     David Ahern <dsahern@...il.com>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC:     "gerlitz.or@...il.com" <gerlitz.or@...il.com>,
        "stephen@...workplumber.org" <stephen@...workplumber.org>,
        "marcelo.leitner@...il.com" <marcelo.leitner@...il.com>,
        "phil@....cc" <phil@....cc>
Subject: RE: [patch iproute2 v10 0/2] tc: Add batchsize feature to batch mode

> -----Original Message-----
> From: David Ahern [mailto:dsahern@...il.com]
> Sent: Tuesday, January 16, 2018 12:41 AM
> To: Chris Mi <chrism@...lanox.com>; netdev@...r.kernel.org
> Cc: gerlitz.or@...il.com; stephen@...workplumber.org;
> marcelo.leitner@...il.com; phil@....cc
> Subject: Re: [patch iproute2 v10 0/2] tc: Add batchsize feature to batch mode
> 
> On 1/11/18 10:13 PM, Chris Mi wrote:
> > Currently in tc batch mode, only one command is read from the batch
> > file and sent to kernel to process. With this patchset, at most 128
> > commands can be accumulated before sending to kernel.
> >
> > We introduced a new function in patch 1 to support for sending
> > multiple messages. In patch 2, we add this support for filter
> > add/delete/change/replace and actions add/change/replace commands.
> >
> > But please note that kernel still processes the requests one by one.
> > To process the requests in parallel in kernel is another effort.
> > The time we're saving in this patchset is the user mode and kernel
> > mode context switch. So this patchset works on top of the current kernel.
> >
> > Using the following script in kernel, we can generate 1,000,000 rules.
> > 	tools/testing/selftests/tc-testing/tdc_batch.py
> >
> > Without this patchset, 'tc -b $file' exection time is:
> >
> > real    0m15.555s
> > user    0m7.211s
> > sys     0m8.284s
> >
> > With this patchset, 'tc -b $file' exection time is:
> >
> > real    0m12.360s
> > user    0m6.082s
> > sys     0m6.213s
> >
> > The insertion rate is improved more than 10%.
> 
> LGTM. Applied to iproute2-next.
Thank you, David.  And thanks for your careful review that improves the code quality and
design very much.

-Chris

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ