cvs commit: src/sys/netinet raw_ip.c

Alexander Motin mav at FreeBSD.org
Mon Aug 25 21:46:55 UTC 2008


mav         2008-08-25 21:46:45 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/netinet          raw_ip.c 
  Log:
  SVN rev 182177 on 2008-08-25 21:46:45Z by mav
  
  MFC r180828
  
  Add hash table lookup for a fully connected raw sockets.
  
  This gives significant performance improvements when many raw sockets used.
  Benchmarks of mpd handeling 1000 simultaneous PPTP connections show up to 50%
  performance boost. With higher number of connections benefit becomes even
  bigger. PopTop snd others should also get some benefits.
  
  MFC r180833, r180874
  
  According to in_pcb.h protocol binding information has double locking.
  It allows access it while list travercing holding only global pcbinfo lock.
  This relaxed locking noticably increses receive socket lookup performance.
  
  Revision   Changes    Path
  1.180.2.6  +93 -18    src/sys/netinet/raw_ip.c


More information about the cvs-src mailing list