I read this article this morning and I think it is interesting. http://www-128.ibm.com/developerworks/linux/library/l-hisock.html?ca=dgr-lnxw01BoostSocket
The author points out 4 tips which can improve socket performace. 1)Minimize packet transmit latency. (Disabling the Nagle algorithm, just like mina suggest) 2)Minimize system call overhead. (Reducing read and write) Question: How mina manage this? IoSession.write() causes system write for instance? 3)Adjust TCP windows for the Bandwidth Delay Product. (Define socket send and receive buffer sizes.) Question: How do I know which value to set? 4)Dynamically tune the GNU/Linux TCP/IP stack. Linux OS related.