1. 24 11月, 2011 3 次提交
  2. 23 11月, 2011 1 次提交
  3. 19 11月, 2011 2 次提交
  4. 17 11月, 2011 1 次提交
  5. 14 11月, 2011 1 次提交
  6. 13 11月, 2011 1 次提交
  7. 10 11月, 2011 3 次提交
  8. 09 11月, 2011 2 次提交
  9. 04 11月, 2011 1 次提交
  10. 02 11月, 2011 2 次提交
  11. 01 11月, 2011 3 次提交
  12. 27 10月, 2011 1 次提交
  13. 25 10月, 2011 2 次提交
  14. 24 10月, 2011 5 次提交
  15. 22 10月, 2011 1 次提交
  16. 21 10月, 2011 5 次提交
  17. 20 10月, 2011 2 次提交
  18. 19 10月, 2011 3 次提交
  19. 14 10月, 2011 1 次提交
    • E
      net: more accurate skb truesize · 87fb4b7b
      Eric Dumazet 提交于
      skb truesize currently accounts for sk_buff struct and part of skb head.
      kmalloc() roundings are also ignored.
      
      Considering that skb_shared_info is larger than sk_buff, its time to
      take it into account for better memory accounting.
      
      This patch introduces SKB_TRUESIZE(X) macro to centralize various
      assumptions into a single place.
      
      At skb alloc phase, we put skb_shared_info struct at the exact end of
      skb head, to allow a better use of memory (lowering number of
      reallocations), since kmalloc() gives us power-of-two memory blocks.
      
      Unless SLUB/SLUB debug is active, both skb->head and skb_shared_info are
      aligned to cache lines, as before.
      
      Note: This patch might trigger performance regressions because of
      misconfigured protocol stacks, hitting per socket or global memory
      limits that were previously not reached. But its a necessary step for a
      more accurate memory accounting.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      CC: Andi Kleen <ak@linux.intel.com>
      CC: Ben Hutchings <bhutchings@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      87fb4b7b