All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: Joel Soete <soete.joel@tiscali.be>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] clerar user page test
Date: Thu, 9 Dec 2004 00:42:08 -0700	[thread overview]
Message-ID: <20041209074208.GC5307@colo.lackof.org> (raw)
In-Reply-To: <418A81310000D172@mail-7-bnl.tiscali.it>

On Tue, Dec 07, 2004 at 03:12:37PM +0100, Joel Soete wrote:
> Hello all,
> 
> here are the results of some clup test:
> (run on b2k running  2.6.10-rc3-pa2 64bit)
> time ./clup0; time ./clup1 ; time ./clup2
> 
> real    0m0.498s
> user    0m0.440s
> sys     0m0.014s
> 
> real    0m0.277s
> user    0m0.229s
> sys     0m0.010s
>
> real    0m0.272s
> user    0m0.227s
> sys     0m0.013s

cool - these are good results for evaluating instruction pipeline.

Unless you are continuously clearing the new pages
I would expect your test is just pounding the cache
and not real memory.

I looked over the code and wasn't sure how big the "memory footprint"
your test had. But 40*PAGESIZE didn't seem like nearly enough.

It should walk through at least 32MB of RAM to be certain it's
not touching the same cachelines over again. For PA8800 it would
need to be 128MB or something like that.

> 
> (the corresponding src are attached.
> Compile with (for remind:):
> ggc -o clup0 clup0.c
> gcc -mach=2.0 -o clup1 clup1.c
> gcc -mach=2.0 -o clup2 clup2.c)
> 
> so real benefit to use double word insn on 64bit (clup0 verusu clup1)
> 
> but not reducing the number of loop (clup1 versus clup2)

Well, that's still 5/270 or almost 2%.
Doubling the loop is worth doing IMHO in this case.

Do you also have time to add prefetching to clup2?

Look at the kernel prefetchw() implementation in include/asm/processor.h.
You want to use something that ends up looking like
	__asm__("ldd L1_CACHE_BYTES*N(%0), %%r0" : : "r" (addr));

Vary the value "N" from 2 to 8 to see what's optimal.
Prefetching too much doesn't help either.

thanks,
grant
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

  reply	other threads:[~2004-12-09  7:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-07 14:12 [parisc-linux] clerar user page test Joel Soete
2004-12-09  7:42 ` Grant Grundler [this message]
2004-12-09 17:32 ` Grant Grundler
2004-12-09 18:31   ` Joel Soete

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=20041209074208.GC5307@colo.lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=parisc-linux@lists.parisc-linux.org \
    --cc=soete.joel@tiscali.be \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.