From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 5 20:14:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D79937B401 for ; Thu, 5 Jun 2003 20:14:41 -0700 (PDT) Received: from h24-68-151-112.ed.shawcable.net (h24-68-151-112.ed.shawcable.net [24.68.151.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1825043FBF for ; Thu, 5 Jun 2003 20:14:40 -0700 (PDT) (envelope-from soralx@cydem.org.ua) Received: from localhost (localhost [127.0.0.1])h5638cJ6007203; Thu, 5 Jun 2003 21:08:40 -0600 (MDT) (envelope-from soralx@cydem.org.ua) From: To: peterjeremy@optushome.com.au, zec@tel.fer.hr Date: Thu, 5 Jun 2003 21:08:38 -0600 User-Agent: KMail/1.5 References: <0HFZ00KBVWQTKQ@l-daemon> In-Reply-To: <0HFZ00KBVWQTKQ@l-daemon> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306052108.38256.soralx@cydem.org.ua> cc: hackers@freebsd.org Subject: Re: Network stack cloning / virtualization patches X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 03:14:41 -0000 > A third issue on the x86 is a lack of registers: There are only 6 > "general purpose" registers (and each of them actually has a specific > purpose). Eating one of these registers to maintain a pointer to > a struct vimage will be a noticable performance hit. Why not to store it in memory? If the pointer needs to be read often, there is a high chance that it will be in CPU's data cache. Nowadays with these huge FSB frequencies reading dword from RAM won't be _much_ slower that reading it from a register anyway. IMO, experiment is req'd to see if you will win some performance be freeing a register. Or am I wrong? 03.06.2003; 21:30:43 [SorAlx] http://cydem.org.ua/