Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1355305

Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk

From Sunil Kovvuri <sunil.kovvuri@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk
Date 2016-03-10 19:30 +0100
Message-ID <rbdvr-2p8-9@gated-at.bofh.it> (permalink)
References <ra6Po-5Ig-15@gated-at.bofh.it> <ra78K-5Qh-11@gated-at.bofh.it> <rb6kh-5OL-13@gated-at.bofh.it> <rbcSK-1Wa-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>
> So calculate the modulus on the page split count and optimize the
> increment ahead of time when possible, and for the sub page split
> pieces do it one at a time.
>
Patch does almost the same with a negligible overhead of a counter
for page->_count increment at a later time but still before HW starts
using buffers.
Difference between NIU driver and this patch is there it's
calculate split count, increment page count and then divide page into
buffers. Here it's divide page into buffers, have a counter which increments
at every split and then at the end do a atomic increment of page->_count.

Any issue with this approach ?

Thanks,
Sunil.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] net: thunderx: Performance enhancement changes sunil.kovvuri@gmail.com - 2016-03-07 08:40 +0100
  [PATCH 2/2] net: thunderx: Adjust nicvf structure to reduce cache misses sunil.kovvuri@gmail.com - 2016-03-07 08:40 +0100
  [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk sunil.kovvuri@gmail.com - 2016-03-07 08:40 +0100
    Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count  in bulk David Miller <davem@davemloft.net> - 2016-03-07 17:20 +0100
      Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk Sunil Kovvuri <sunil.kovvuri@gmail.com> - 2016-03-07 18:00 +0100
        Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count  in bulk David Miller <davem@davemloft.net> - 2016-03-07 18:10 +0100
          Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk Sunil Kovvuri <sunil.kovvuri@gmail.com> - 2016-03-07 18:30 +0100
            Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk Sunil Kovvuri <sunil.kovvuri@gmail.com> - 2016-03-10 11:50 +0100
              Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count  in bulk David Miller <davem@davemloft.net> - 2016-03-10 18:50 +0100
                Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk Sunil Kovvuri <sunil.kovvuri@gmail.com> - 2016-03-10 19:30 +0100
                Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count  in bulk David Miller <davem@davemloft.net> - 2016-03-10 20:50 +0100
                Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count in bulk Sunil Kovvuri <sunil.kovvuri@gmail.com> - 2016-03-11 18:10 +0100
                Re: [PATCH 1/2] net: thunderx: Set recevie buffer page usage count  in bulk David Miller <davem@davemloft.net> - 2016-03-11 18:30 +0100

csiph-web