From owner-freebsd-net@FreeBSD.ORG Wed Oct 30 21:53:24 2013 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B686E212; Wed, 30 Oct 2013 21:53:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 530B026B2; Wed, 30 Oct 2013 21:53:24 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id j15so4105948qaq.12 for ; Wed, 30 Oct 2013 14:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=YbkY7Urr5B8bLFKIzNB0U8SrzTyjLAS2IhuUCMcPyuw=; b=fh3YpF9i/4PgegyNcJ/PjigtGunCGuGNKErshEhm3k6JQQdWbrqvZVPZsHgBdax97q Dc/4C6CENlZgyZOhx12ETqBKcemGVQZAdQNKC+f4GoAp7JCuvCD8bwFBeKRbLJSY/eiR Ii/hZtnzfJtfz2CGQmAwLiHwLNZLMi9aCKkA0LwQ2ojmCUxM8tmbBb3Ork+xPgcWAte4 UGVGlKRtvj8yJcEfsvmMp6zcQo/uSkvLD7bBHA0KEihjmgZ3ItlhCYXFr8SRu41F+KX5 CzwX5PBd4pCirRfeRlRgOABBjHIc4obm12qCSUE4kDhOBa5sd2FTm1EymhFGDFLcaKEk TG8g== MIME-Version: 1.0 X-Received: by 10.224.113.199 with SMTP id b7mr980525qaq.4.1383170003477; Wed, 30 Oct 2013 14:53:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Wed, 30 Oct 2013 14:53:23 -0700 (PDT) In-Reply-To: <52717A62.7040600@freebsd.org> References: <40948D79-E890-4360-A3F2-BEC34A389C7E@lakerest.net> <526FFED9.1070704@freebsd.org> <52701D8B.8050907@freebsd.org> <527022AC.4030502@FreeBSD.org> <527027CE.5040806@freebsd.org> <5270309E.5090403@FreeBSD.org> <5270462B.8050305@freebsd.org> <20131030050056.GA84368@onelab2.iet.unipi.it> <52717A62.7040600@freebsd.org> Date: Wed, 30 Oct 2013 14:53:23 -0700 X-Google-Sender-Auth: E1dx_NzsQWZ0OYjPA511t5MA6GI Message-ID: Subject: Re: [long] Network stack -> NIC flow (was Re: MQ Patch.) From: Adrian Chadd To: Andre Oppermann Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-net@freebsd.org" , Luigi Rizzo , Navdeep Parhar , Randall Stewart X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 21:53:24 -0000 On 30 October 2013 14:30, Andre Oppermann wrote: > As default setup and when running a server no QoS will be active > or inserted. No or only very small software queues exist to handle > concurrency (except for ieee80211 to do sophisticated frame management > inside *if_txframe). Whenever the DMA ring is full there is no point > in queuing up more packets. Instead the socket buffers act as buffers > and also ensure flow control and backpressure up to userspace to limit > kernel memory usage from double and triple buffering. .. and what about for LAN<->WAN traffic, where there's no socket buffers? -adrian