From owner-freebsd-hackers Tue Jul 17 10:35: 5 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from post.webmailer.de (natpost.webmailer.de [192.67.198.65]) by hub.freebsd.org (Postfix) with ESMTP id 496A137B403 for ; Tue, 17 Jul 2001 10:35:00 -0700 (PDT) (envelope-from freebsd-ml@econos.de) Received: from stefan-bt (p3E9B8E20.dip.t-dialin.net [62.155.142.32]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id TAA22338; Tue, 17 Jul 2001 19:34:54 +0200 (MET DST) From: Stefan Hoffmeister To: tlambert2@mindspring.com Cc: "Albert D. Cahalan" , freebsd-hackers@FreeBSD.ORG, Jim.Pirzyk@disney.com Subject: Re: math library difference between linux emulation and native freebsd (and native linux) Date: Tue, 17 Jul 2001 19:34:21 +0200 Organization: Econos Message-ID: References: <200107170615.f6H6FU5376195@saturn.cs.uml.edu> <3B546BA9.37E9F437@mindspring.com> In-Reply-To: <3B546BA9.37E9F437@mindspring.com> X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG : On Tue, 17 Jul 2001 09:45:29 -0700, Terry Lambert wrote: >One obvious reason that the Linux approach is wrong is >that it ends up requiring the save and restore of FP >registers on context switches, which is overhead they >ate anyway, by doing TSS based context switching. The >amount of state with SSE is up to something like an >additional 512 bytes -- that's ungodly overhead, since >most programs don't use this context at all. Except that - AFAIK - Linux won't do that. Linux install traps, causing the first FPU and SSE instruction to fault (might as well be only the SSE instructions). Upon the fault, the context structure size is switched. IOW, Linux does not blindly have an FPU context size of 512 bytes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message