From owner-freebsd-net@FreeBSD.ORG Sat Jun 10 19:29:15 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 E2B3616A4AC for ; Sat, 10 Jun 2006 19:29:14 +0000 (UTC) (envelope-from vsemionov@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38CDD43D80 for ; Sat, 10 Jun 2006 19:29:14 +0000 (GMT) (envelope-from vsemionov@gmail.com) Received: by nf-out-0910.google.com with SMTP id q29so290553nfc for ; Sat, 10 Jun 2006 12:29:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=R3CgxEXsHIr4qtJhgb5ItFYAK47QaVU3D5xc94WPdcBqfEyagK7qQUdnGFC01n2pTpGHSHj9kWPDF6HIYygMcSKszVRlV3LTR6meGABZCrqGOIGXnQg9O+fYMx1i1wPY0kYRRz0KShECUcg494krwLXElCXOfqLXPfzl20foEuQ= Received: by 10.48.208.18 with SMTP id f18mr3469239nfg; Sat, 10 Jun 2006 12:29:12 -0700 (PDT) Received: by 10.49.42.13 with HTTP; Sat, 10 Jun 2006 12:29:12 -0700 (PDT) Message-ID: Date: Sat, 10 Jun 2006 22:29:12 +0300 From: "Victor Semionov" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ath driver transmits frames only after a low watermark is filled X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jun 2006 19:29:15 -0000 Hello list, I have a wireless card with an Atheros 5212 chipset and I'm experiencing the following behavior under FreeBSD 6.1: TCP connections that consist of small short bursts of one-way (transmission) traffic often stall until traffic is received over another TCP connection. For example, if I try to load a small web page, located on the FreeBSD box, over the wireless link, it doesn't load completely, unless I hit return in a concurrent terminal session, or until I request some other file hosted on the FreeBSD box, or until I wait 20 seconds or so. The signal is not low, the two wireless boxes are in the same room. Higher-bandwidth connections rarely stall. This makes me think there is some kind of low watermark functionality in the hardware/driver that doesn't send frames until a certain number of them have been queued for transmission, or until a frame has been received. Also, I guess this is the reason that the ath module caused the system to freeze at shutdown or when the module is unloaded, unless I do an "ifconfig ath0 down" before unloading - the unloading code is probably waiting for all queued frames to be transmitted, but that never happens. Sorry for the weak conclusion that is based on assumptions. I'm not familiar with the OS/driver internals and don't know how to investigate further. Is there a sysctl or other setting that controls this behavior, or some other workaround? Any help would be greatly appreciated. Best regards, Victor Semionov