From: Chuck Ebbert <76306.1226@compuserve.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Andi Kleen <ak@suse.de>, Nick Piggin <nickpiggin@yahoo.com.au>
Subject: Re: [patch 0/2] sLeAZY FPU feature
Date: Sat, 1 Jul 2006 20:57:13 -0400 [thread overview]
Message-ID: <200607012058_MC3-1-C3F3-F21@compuserve.com> (raw)
In-Reply-To: <1151782942.3195.56.camel@laptopd505.fenrus.org>
On Sat, 01 Jul 2006 21:42:22 +0200, Arjan van de Ven wrote:
> > What sort of test?
>
> the one I did was long running FPU app (calculating PI using FPU)
Mine was just running a program that loops doing getpid() in one window
and this in another:
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#define rdtscll(t) asm("rdtsc" : "=A" (t))
int main(int argc, char * const argv[])
{
long long tsc1, tsc2;
long double ld = 0.0;
int i, iters = 999999999;
rdtscll(tsc1);
for (i = 0; i < iters; i++)
ld += 1.0;
rdtscll(tsc2);
printf("count: %Lf, clocks: %llu\n", ld, tsc2 - tsc1);
return 0;
}
So the ~0.4% gain I saw (averaging 10 tests) was likely the minimum
and Arjan's 8.5% gain when switching tasks after every FPU operation
is the max.
--
Chuck
"You can't read a newspaper if you can't read." --George W. Bush
next reply other threads:[~2006-07-02 1:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-02 0:57 Chuck Ebbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-07-01 17:11 Arjan van de Ven
2006-07-01 17:40 ` Nick Piggin
2006-07-01 19:42 ` Arjan van de Ven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200607012058_MC3-1-C3F3-F21@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®