All of lore.kernel.org
 help / color / mirror / Atom feed
* decrease of performance on linux-2.6.25.9
@ 2008-07-01  4:24 Hideo Saito
  2008-07-01  5:25   ` Paul Mundt
  0 siblings, 1 reply; 9+ messages in thread
From: Hideo Saito @ 2008-07-01  4:24 UTC (permalink / raw)
  To: linux-sh

Hi all,

I have a question as to performance of kernel on linux-2.6.25.9, but this may be off-topic, because the problem is not related to the SH architecture directly.

When I tested Hackbench benchmark test on our platform(SH7780, 400MHz), the performance decreases as follows.

The result on linux-2.6.25.9:
#tcsh> ./hackbench 40 ; time ./hackbench 40 ; time ./hackbench 40
Time: 69.858
Time: 69.810
Time: 70.356

The result on linux-2.6.25.8:
#tcsh> ./hackbench 40 ; time ./hackbench 40 ; time ./hackbench 40
Time: 65.353
Time: 65.622
Time: 65.413

I confirmed that the cause is in the following changes. Isn't this decrease of performance avoided, though it seems that this code is changed in order to handle ZERO_PAGE?

--- a/mm/memory.c
+++ b/mm/memory.c
    pte = *ptep;
    if (!pte_present(pte))
-       goto unlock;
+       goto no_page;
    if ((flags & FOLL_WRITE) && !pte_write(pte))
        goto unlock;
    page = vm_normal_page(vma, address, pte);
    if (unlikely(!page))
-       goto unlock;
+       goto bad_page;

    if (flags & FOLL_GET)
        get_page(page);

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-07-03  7:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01  4:24 decrease of performance on linux-2.6.25.9 Hideo Saito
2008-07-01  5:25 ` follow_page() performance regressions Paul Mundt
2008-07-01  5:25   ` Paul Mundt
2008-07-01 15:43   ` Linus Torvalds
2008-07-01 15:43     ` Linus Torvalds
2008-07-01 16:35     ` Linus Torvalds
2008-07-01 16:35       ` Linus Torvalds
2008-07-03  1:57       ` Hideo Saito
2008-07-03  1:57         ` Hideo Saito

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.