Doubts About Cache Manager Routines

Thomas Doerfler (nt) Thomas.Doerfler at imd-systems.de
Wed Apr 6 06:21:43 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Naufal,

Am 05.04.2011 21:35, schrieb Mohamed Naufal:
> On 6 April 2011 00:49, Thomas Doerfler (nt)
> <Thomas.Doerfler at imd-systems.de> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Naufal,
>>
>> maybe using a local (stack) variable as a test target is not really a
>> good idea, because you will _always_ hit stuff in the neighbourhood.
>> Your analysis is totally to the point regarding the effects you have.
>>
>> A proper way may include:
>> - - allocate a cache-aligned chunk of memory (e.g. from the heap, using
>> malloc() ).
>> - - use this location as your test area.
>>
> 
> But wouldn't the same problem arise when I use
> invalidate_entire_data()? This is particularly relevant since i386
> doesn't support selective invalidation.

ups, yes you are right. I am not so familiar with the i386 cache
architecture. If an invalidate ist only possible for the complete data
cache, testing this will become tricky :-(

wkr,
Thomas.
> 
> Thanks
> Naufal


- -- 
- --------------------------------------------
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler           Herbststrasse 8
D-82178 Puchheim          Germany
email:    Thomas.Doerfler at imd-systems.de
PGP public key available at:
     http://www.imd-systems.de/pgpkey_en.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2cBnYACgkQwHyg4bDtfjRyFACglU6QN5Xej/Edf9FpsMkhCQgy
J6EAoIQ6r6BCCVme5YG+Xdr0b2goJp0B
=qY7I
-----END PGP SIGNATURE-----



More information about the users mailing list