Date: Sun, 14 Nov 1999 22:00:24 -0500 (EST) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Luigi Rizzo <luigi@info.iet.unipi.it> Cc: freebsd-net@FreeBSD.ORG Subject: Re: FreeBSD networking problems Message-ID: <199911150300.WAA03998@khavrinen.lcs.mit.edu> In-Reply-To: <199911121435.PAA05210@info.iet.unipi.it> References: <199911102211.QAA12891@cs.rice.edu> <199911121435.PAA05210@info.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Fri, 12 Nov 1999 15:35:00 +0100 (CET), Luigi Rizzo <luigi@info.iet.unipi.it> said: > related issue -- kern.ipc.maxsockbuf can also be a source of problem. > It bounds the gross amount of buffer space used by a socket -- this > means if you allocate a 2KB cluster and only use it to hold a small > packet (e.g. 512 bytes) your gross amount of buffer space is charged > the full 2KB and the kern.ipc.maxsockbuf limit might hit before > net.inet.tcp.sendspace (or however you override it with the > setsockopt() calls) Not quite. It's charged against the maximum mbuf size (sb_maxmb), which is sockbuf_waste_factor * sb_hiwat. This is an intentional trade-off between speed and memory wastage. (That doesn't mean it's not time to revisit this tradeoff; it just means that the original reasons still need to be considered.) -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911150300.WAA03998>