On Tue, Sep 24, 2002 at 04:15:56PM -0700, Prafulla Deuskar wrote: > Sorry for the cross-posting. > ---------------------------- > > All, > > Is there a pre-set limit on maximum number of fragments in a > mbuf chain ? > > I see 64 fragments with jumboframes (mtu 9000) using nttcp.
aha... (this is related to the problem with the em driver and jumbo frames, right ?) o limit that i know of. And now i clearly see how the long chain might arise -- sosend puts each write in one ro more mbufs, then down in the call chain, sbappend() is called which in turn calls sbcompress(). The problem is, for short writes on a TCP socket (say 128 bytes at a time) the data goes into regular mbufs, not clusters, so sbcompress does not have a chance to compress the chain because of lack of space in the mbufs. A possible workaround would be to modify sbcompress to allocate clusters replacing existing mbufs when such a situation exists. cheers luigi To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message