From owner-freebsd-smp@FreeBSD.ORG Wed Nov 26 09:32:45 2008 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A595C1065676 for ; Wed, 26 Nov 2008 09:32:45 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 7257D8FC20 for ; Wed, 26 Nov 2008 09:32:45 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by wa-out-1112.google.com with SMTP id m34so187913wag.27 for ; Wed, 26 Nov 2008 01:32:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=L6o8jpKrHwsIenYEjlY2tQopcHJ7o7rSwk0EHHUjtiA=; b=AwTstYI7APeTMdgjUZbpbZLUJNLwdUgLydYBDhEv7HTnHZOy3D1C426IewB07/Qj/p cN2+DadZ0D4hCbwFQUbfzkVKK4V632IYkAIq5vtBdtNOadO9JybkfmX/6k7TdGg1ZTba NX/ztHzGr2BJYB5mzksUdX+opr/rk8l9QCbGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=LkOz6fiZPpmidV0LzQ9Sdc1C2cvxw4TLaTZIUXcRpu0ZvBdUlQCgzKEjWKJrbiJLT3 AOkYIMt+bWU/nX3GyVQGxVqmMlg9bKZuF9aavXS85el+/ST6AtubNFre1OxKdy5AXiL8 X9nlYF2+ovk5zWJflVb9sxnhHguStpREfznVo= Received: by 10.114.169.2 with SMTP id r2mr3223857wae.161.1227691964491; Wed, 26 Nov 2008 01:32:44 -0800 (PST) Received: by 10.115.78.8 with HTTP; Wed, 26 Nov 2008 01:32:44 -0800 (PST) Message-ID: <42e3d810811260132l53027184s102e8a5e3b70dfb2@mail.gmail.com> Date: Wed, 26 Nov 2008 17:32:44 +0800 From: "Archimedes Gaviola" To: ivoras@freebsd.org, "John Baldwin" In-Reply-To: <200811171609.54527.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <42e3d810811100033w172e90dbl209ecbab640cc24f@mail.gmail.com> <42e3d810811170311uddc77daj176bc285722a0c8@mail.gmail.com> <42e3d810811170336rf0a0357sf32035e8bd1489e9@mail.gmail.com> <200811171609.54527.jhb@freebsd.org> Cc: freebsd-smp@freebsd.org Subject: Re: CPU affinity with ULE scheduler X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 09:32:45 -0000 > In both cases the code path a packet must go through is very similar: it > has to be received, then processed through firewalls and network stack > code, then delivered to application(s), so it's a serial process. There > are things that could be better parallelized in the stack and people are > working on them, but they will not be finished any time soon. Ah okay so the project is moving towards network stack parallelism. What is the benefit of parallelized network stack in comparison to the current serialized network stack? Is there any known issues with serialized network stack dealing with multiple CPUs? If it has, in what aspect, components or subsystem of the operating system? With network stack parallelism, what are the necessary changes of the operating system? How should be the network processing be optimized with parallelized network stack? I have gone through a technical paper in the Internet about evaluation on network stack parallelism strategies for modern operating system http://www.cs.rice.edu/CS/Architecture/docs/willmann-usenix06.pdf which described about approaches in implementing parallelized network stack in which also described FreeBSD were used as the prototype of the different approaches, from here I want to know what approach does FreeBSD is implementing, is it message-based parallelism or connection-based parallelism? Thanks, Archimedes