netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH v3 0/3] net: reserve ports for applications using fixed port numbers
@ 2010-02-11  2:09 Octavian Purdila
  2010-02-11  2:09 ` [net-next PATCH v3 1/3] sysctl: refactor integer handling proc code Octavian Purdila
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Octavian Purdila @ 2010-02-11  2:09 UTC (permalink / raw)
  To: David Miller
  Cc: Octavian Purdila, netdev, linux-kernel, WANG Cong, Neil Horman,
	Eric Dumazet


This patch series is based on Amerigo's v2 but it now uses a bitmap
for port reservation.

I've ran a while (1) { bind(0) } test (with ip_local_port_range
1024 65000) to see if there is any performance difference between the
two approaches (ranges vs bitmap). I could not detect any significant
difference, both cases scored in 2.76s +/- 0.01 on my setup.

I've based this patch series on current net-next, but it contains a
significant non networking part. Please let me know if I should handle
this differently.

Octavian Purdila (3):
  sysctl: refactor integer handling proc code
  sysctl: add proc_dobitmap
  net: reserve ports for applications using fixed port numbers

 Documentation/networking/ip-sysctl.txt |   12 +
 drivers/infiniband/core/cma.c          |    7 +-
 include/linux/sysctl.h                 |    2 +
 include/net/ip.h                       |    6 +
 kernel/sysctl.c                        |  374 +++++++++++++++++++-------------
 net/ipv4/inet_connection_sock.c        |    5 +
 net/ipv4/inet_hashtables.c             |    2 +
 net/ipv4/sysctl_net_ipv4.c             |    7 +
 net/ipv4/udp.c                         |    3 +-
 net/sctp/socket.c                      |    2 +
 10 files changed, 264 insertions(+), 156 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [net-next PATCH v3 0/3] net: reserve ports for applications using fixed port numbers
@ 2010-02-11  2:55 Octavian Purdila
  0 siblings, 0 replies; 9+ messages in thread
From: Octavian Purdila @ 2010-02-11  2:55 UTC (permalink / raw)
  To: netdev


(Resending to netdev since I've misspelled the email address. Apologies if you receive multiple copies)

This patch series is based on Amerigo's v2 but it now uses a bitmap
for port reservation.

I've ran a while (1) { bind(0) } test (with ip_local_port_range
1024 65000) to see if there is any performance difference between the
two approaches (ranges vs bitmap). I could not detect any significant
difference, both cases scored in 2.76s +/- 0.01 on my setup.

I've based this patch series on current net-next, but it contains a
significant non networking part. Please let me know if I should handle
this differently.

Octavian Purdila (3):
  sysctl: refactor integer handling proc code
  sysctl: add proc_dobitmap
  net: reserve ports for applications using fixed port numbers

 Documentation/networking/ip-sysctl.txt |   12 +
 drivers/infiniband/core/cma.c          |    7 +-
 include/linux/sysctl.h                 |    2 +
 include/net/ip.h                       |    6 +
 kernel/sysctl.c                        |  374 +++++++++++++++++++-------------
 net/ipv4/inet_connection_sock.c        |    5 +
 net/ipv4/inet_hashtables.c             |    2 +
 net/ipv4/sysctl_net_ipv4.c             |    7 +
 net/ipv4/udp.c                         |    3 +-
 net/sctp/socket.c                      |    2 +
 10 files changed, 264 insertions(+), 156 deletions(-)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-02-15 12:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-11  2:09 [net-next PATCH v3 0/3] net: reserve ports for applications using fixed port numbers Octavian Purdila
2010-02-11  2:09 ` [net-next PATCH v3 1/3] sysctl: refactor integer handling proc code Octavian Purdila
2010-02-11  2:09 ` [net-next PATCH v3 2/3] sysctl: add proc_dobitmap Octavian Purdila
2010-02-11  2:09 ` [net-next PATCH v3 3/3] net: reserve ports for applications using fixed port numbers Octavian Purdila
2010-02-15 12:36 ` [net-next PATCH v3 0/3] " Cong Wang
2010-02-15 12:39 ` Cong Wang
2010-02-15 12:37   ` Octavian Purdila
2010-02-15 12:48     ` Cong Wang
  -- strict thread matches above, loose matches on Subject: below --
2010-02-11  2:55 Octavian Purdila

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).