some question about mbuf reuse

jun lu junlu_nudt at yahoo.com.cn
Tue May 31 20:21:07 PDT 2005


   our project write a web server in freebsd kernel. we can receive and send data directly in kernel.Now i have some idea, i think  i can creat a mbuf with cluster buffer before i send some data,because the data i want to send are all in kernel,so i can  take thest data in cluster i create before,and transfer this mbuf to sosend(),then i make tcp/ip cann't release this mbuf after it received the ack.In this way, i can send data in kernel next time use the same mbuf with different cluster.i am not sure whether this way can enhance the performance.So,i hope some one can discuss with me

		
---------------------------------
DO YOU YAHOO!?
  »¶Ó­Ê¹ÓÃÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä 


More information about the freebsd-net mailing list