Turning the page now to another networking and C++ question.
I was reading here
http://www.gamedev.net/topic/668188-udp-sockets-size-and-speed-question/
"the 'bandwidth delay product' is an important quantity; most simple
socket programs do not set a big enough send or receive buffer for
optimal throughput on modern networks for example."
And this page
http://www.psc.edu/index.php/networking/641-tcp-tune -- says
"In the future, we hope to see all TCP implementations support
autotuning with appropriate defaults for other options, making
this website largely obsolete."
I kind of have sinking feeling after having dealt with a few
other things over the years that at least one of FreeBSD, Linux
or Windows will not have support for autotuning and that that
page is far from obsolete.
Then I was thinking about the setpriority function in relation to
this sort of thing. It would be nice if setpriority went beyond
cpu and extended to memory use. But I didn't find much about
that while doing some searching. To me the general case would
be that you want to give a process priority over others and that
would include both cpu and memory. So a call to setpriority would
be all that's needed -- or at least reduce the likelihood that
you also need to set the size of send and receive socket buffers.
Can I get a witness?
Brian
Ebenezer Enterprises - "Unless the L-rd builds the house,
they labor in vain that build it." Psalms 127:1
http://webEbenezer.net