public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: epsi@gmx.de
To: Siarhei Siamashka <siarhei.siamashka@nokia.com>
Cc: premi@ti.com, linux-omap@vger.kernel.org, r-woodruff2@ti.com
Subject: Re: Memory performance / Cache problem
Date: Thu, 15 Oct 2009 12:20:29 +0200	[thread overview]
Message-ID: <20091015102029.77750@gmx.net> (raw)
In-Reply-To: <200910142037.15063.siarhei.siamashka@nokia.com>


> On Wednesday 14 October 2009 17:48:39 ext epsi@gmx.de wrote:
> > Mem clock is both times 166MHz. I don't know whether are differences in
> > cycle access and timing, but memclock is fine.
> >
> > Following Siarhei hints of initialize the buffers (around 1.2 MByte
> each)
> > I get different results in 22kernel for use of
> > malloc alone
> > memcpy =   473.764, loop4 =   448.430, loop1 =   102.770, rand =   
> 29.641
> > calloc alone
> > memcpy =   405.947, loop4 =   361.550, loop1 =    95.441, rand =   
> 21.853
> > malloc+memset:
> > memcpy =   239.294, loop4 =   188.617, loop1 =    80.871, rand =    
> 4.726
> >
> > In 31kernel all 3 measures are about the same (unfortunatly low) level
> of
> > malloc+memset in 22.
> >
> > First of all: What performance can be expected?
> > Does 22 make failures if it is so much faster?
> > Can the later kernels get a boost in memory handling?
> 
> What you see is just a (fake) performance boost because you have a single
> physical page shared between all the virtual pages in the source buffer.
> So
> you get no cache misses on read operations and everything seems fast.
> 
> This is unlikely to happen on real use, and it does not reflect real
> memory
> performance. So the benchmark is inadequate.

> 
> You can get some basic information here:
> http://en.wikipedia.org/wiki/Copy-on-write
> 
> Regarding the difference in behavior between .22 and recent kernels. It
> may be
> some regression in copy-on-write implementation, or just some change done
> on
> purpose. That is assuming that the userspace stuff was identical in both
> tests.
> 

Ok, understand the difference if the memory is uninitialised.
But why there is the difference in "malloc + memset" and "calloc"?
In both cases the memory will be cleared.


-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

  parent reply	other threads:[~2009-10-15 10:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12  8:38 Memory performance / Cache problem epsi
2009-10-12  9:07 ` Dasgupta, Romit
2009-10-12  9:51   ` Dasgupta, Romit
2009-10-12  9:12 ` Premi, Sanjeev
2009-10-13  8:16   ` epsi
2009-10-14 13:59     ` Woodruff, Richard
2009-10-14 14:48       ` epsi
2009-10-14 15:25         ` Woodruff, Richard
2009-10-14 17:23           ` epsi
2009-10-14 17:36             ` Woodruff, Richard
2009-10-14 17:37         ` Siarhei Siamashka
2009-10-14 17:46           ` Woodruff, Richard
2009-10-15 10:20           ` epsi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-10-12  7:54 epsi
2009-10-12  8:09 ` Dasgupta, Romit
2009-10-12  8:35 ` Siarhei Siamashka
2009-10-13  9:13   ` epsi

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=20091015102029.77750@gmx.net \
    --to=epsi@gmx.de \
    --cc=linux-omap@vger.kernel.org \
    --cc=premi@ti.com \
    --cc=r-woodruff2@ti.com \
    --cc=siarhei.siamashka@nokia.com \
    /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