From owner-freebsd-net Mon Sep 23 16:24:10 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80E6037B401 for ; Mon, 23 Sep 2002 16:24:09 -0700 (PDT) Received: from swordfish.cs.caltech.edu (swordfish.cs.caltech.edu [131.215.44.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32D3243E6E for ; Mon, 23 Sep 2002 16:24:09 -0700 (PDT) (envelope-from chengjin@cs.caltech.edu) Received: from fast2.cs.caltech.edu (fast2.cs.caltech.edu [131.215.45.55]) by swordfish.cs.caltech.edu (Postfix) with ESMTP id 1BD88DF273 for ; Mon, 23 Sep 2002 16:23:46 -0700 (PDT) Received: from localhost (chengjin@localhost) by fast2.cs.caltech.edu (8.11.6/8.9.3) with ESMTP id g8NNNC620551 for ; Mon, 23 Sep 2002 16:23:12 -0700 X-Authentication-Warning: fast2.cs.caltech.edu: chengjin owned process doing -bs Date: Mon, 23 Sep 2002 16:22:42 -0700 (PDT) From: Cheng Jin To: Subject: TCP receiving buffer Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi all, I am having a hard time setting TCP receiving buffer space to be large than 512K using setsockopt under FreeBSD 4.6.2-RELEASE #0. I have tried playing with various sysctl variables, but I can't seem to break the 512K barrier. I looked at my kernel config file and didn't really find any hard limit either. here are the systcl vars that I have tried. nmbclusters is small, but I should still be able to get about 12 MB of clusters. Any idea on what sockbuf_waste_factor is?? It was 8 by default. Do I have to reduce the number of sockets for this to work? kern.ipc.maxsockbuf: 4094305 kern.ipc.sockbuf_waste_factor: 4 kern.ipc.somaxconn: 512 kern.ipc.nmbclusters: 6656 kern.ipc.nmbufs: 26624 kern.ipc.maxsockets: 12328 net.inet.tcp.sendspace: 32768 net.inet.tcp.recvspace: 4094305 Please cc me a copy when you reply. Thank you very much, Cheng To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message