Re: svn commit: r243594 - head/sys/netinet

2012-12-07 Thread Alfred Perlstein
Andre, I wrote a test program that hoists the hash logic outside of the kernel. There may be bugs in it, it was written quickly this AM before coffee. What the program does is allocate a number "fake sockets" set them all up to run against port 80, then inlines the netinet hash function. It

Re: svn commit: r243594 - head/sys/netinet

2012-12-07 Thread Andre Oppermann
On 07.12.2012 18:31, Alfred Perlstein wrote: It's good to put the power or two thing in its own function. That said, about the comment changes, hash size changes and auto tuning changes respectively Comments: Dude... It's not like removing the helpful comments is going to speed up either

Re: svn commit: r243594 - head/sys/netinet

2012-12-07 Thread Alfred Perlstein
It's good to put the power or two thing in its own function. That said, about the comment changes, hash size changes and auto tuning changes respectively Comments: Dude... It's not like removing the helpful comments is going to speed up either compiling this code or how fast it can proces

Re: svn commit: r243594 - head/sys/netinet

2012-12-07 Thread Andre Oppermann
On 28.11.2012 04:04, Alfred Perlstein wrote: On 11/27/12 2:12 PM, Andre Oppermann wrote: On 27.11.2012 04:04, Alfred Perlstein wrote: Author: alfred Date: Tue Nov 27 03:04:24 2012 New Revision: 243594 URL: http://svnweb.freebsd.org/changeset/base/243594 Log: Auto size the tcbhashsize struct

Re: svn commit: r243594 - head/sys/netinet

2012-11-27 Thread Alfred Perlstein
On 11/27/12 2:12 PM, Andre Oppermann wrote: On 27.11.2012 04:04, Alfred Perlstein wrote: Author: alfred Date: Tue Nov 27 03:04:24 2012 New Revision: 243594 URL: http://svnweb.freebsd.org/changeset/base/243594 Log: Auto size the tcbhashsize structure based on max sockets. While here, also

Re: svn commit: r243594 - head/sys/netinet

2012-11-27 Thread Andre Oppermann
On 27.11.2012 04:04, Alfred Perlstein wrote: Author: alfred Date: Tue Nov 27 03:04:24 2012 New Revision: 243594 URL: http://svnweb.freebsd.org/changeset/base/243594 Log: Auto size the tcbhashsize structure based on max sockets. While here, also make the code that enforces power-of-two mor

svn commit: r243594 - head/sys/netinet

2012-11-26 Thread Alfred Perlstein
Author: alfred Date: Tue Nov 27 03:04:24 2012 New Revision: 243594 URL: http://svnweb.freebsd.org/changeset/base/243594 Log: Auto size the tcbhashsize structure based on max sockets. While here, also make the code that enforces power-of-two more forgiving, instead of just resetting to 512