1. 29 1月, 2008 2 次提交
  2. 19 10月, 2007 1 次提交
  3. 11 10月, 2007 1 次提交
  4. 04 6月, 2007 1 次提交
  5. 11 2月, 2007 1 次提交
  6. 03 12月, 2006 1 次提交
    • E
      [NET]: Size listen hash tables using backlog hint · 72a3effa
      Eric Dumazet 提交于
      We currently allocate a fixed size (TCP_SYNQ_HSIZE=512) slots hash table for
      each LISTEN socket, regardless of various parameters (listen backlog for
      example)
      
      On x86_64, this means order-1 allocations (might fail), even for 'small'
      sockets, expecting few connections. On the contrary, a huge server wanting a
      backlog of 50000 is slowed down a bit because of this fixed limit.
      
      This patch makes the sizing of listen hash table a dynamic parameter,
      depending of :
      - net.core.somaxconn tunable (default is 128)
      - net.ipv4.tcp_max_syn_backlog tunable (default : 256, 1024 or 128)
      - backlog value given by user application  (2nd parameter of listen())
      
      For large allocations (bigger than PAGE_SIZE), we use vmalloc() instead of
      kmalloc().
      
      We still limit memory allocation with the two existing tunables (somaxconn &
      tcp_max_syn_backlog). So for standard setups, this patch actually reduce RAM
      usage.
      Signed-off-by: NEric Dumazet <dada1@cosmosbay.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      72a3effa
  7. 29 9月, 2006 3 次提交
  8. 23 9月, 2006 2 次提交
  9. 01 7月, 2006 1 次提交
  10. 21 3月, 2006 3 次提交
  11. 04 1月, 2006 3 次提交
  12. 06 11月, 2005 1 次提交
  13. 09 10月, 2005 1 次提交
  14. 30 8月, 2005 4 次提交