Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?

Liste des GroupesRevenir à c arch 
Sujet : Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?
De : cr88192 (at) *nospam* gmail.com (BGB)
Groupes : comp.arch
Date : 23. May 2025, 17:29:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <100q848$5fc7$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Mozilla Thunderbird
On 5/23/2025 7:36 AM, MitchAlsup1 wrote:
On Fri, 23 May 2025 6:09:37 +0000, BGB wrote:
 
On 5/23/2025 12:35 AM, Lawrence D'Oliveiro wrote:
On Fri, 23 May 2025 00:18:53 -0000 (UTC), Waldek Hebisch wrote:
>
It is pretty clear that due to drive mechanics track cache/buffer is
useful.
>
Only if you don’t take the statistics of real-world cache behaviour into
account.
>
However, the real question is about size: how big should it be.
>
It can never be big enough to make a difference.
>
Sometimes, it is not the size of the cache that matters.
>
>
Say, for example, a typical cache configuration in my core:
   L1 D$: 32K, direct mapped
   L1 I$: 16K, direct mapped
   L2: 256K, direct mapped.
>
OK, so say I stick a 4K cache between the L1 and L2 caches.
Seems kinda useless just based on sizes.
 It is called a "victim buffer"
 
I had usually understood it that a "victim buffer" was typically glued directly to the L1 cache. This was outside the L1 cache, and after the main TLB.
So, the L1 ring consisted of:
   Join/VC -> L1D$ -> L1I$ -> TLB -> Join/VC
The Join/VC stage was either a joiner between the L1 ring and L2 ring, or the 4K victim cache (optional, but does help).
The L2 ring generally had the L2 cache, ROMs, a bridge to the MMIO bus, and the display and rasterizer modules (which had native interfaces on the ringbus).

Except: This small cache is 4-way set associative and so can absorb a
bunch of conflict misses, and notably reducing the number of cache
misses in the L2 cache. It can bring a performance benefit, despite
being small.
 And generally fully associative
 
On the FPGA, the cost difference between a 4-way 4K cache and 4-entry (full assoc) cache was small, but the using LUTRAMs gave a better hit-rate.
The cost difference between 4-way and 8-way was a lot more steep (and seemingly doesn't improve hit rate enough to compensate for the fairly significant cost increase).
I suspect it might be different tradeoffs on an ASIC though.

Why?
 Because it helps.
Yes.

Date Sujet#  Auteur
10 May 25 * Is Parallel Programming Hard, And, If So, What Can You Do About It?102Thomas Koenig
11 May 25 +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?71MitchAlsup1
11 May 25 i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?70Al Kossow
12 May 25 i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?69Lawrence D'Oliveiro
12 May 25 i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?68MitchAlsup1
12 May 25 i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?67Lawrence D'Oliveiro
12 May 25 i    +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2MitchAlsup1
12 May 25 i    i`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
12 May 25 i    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?64Terje Mathisen
12 May 25 i     +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Anton Ertl
12 May 25 i     i+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
13 May 25 i     i`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
12 May 25 i     `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?60Lawrence D'Oliveiro
13 May 25 i      +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Stefan Monnier
13 May 25 i      i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Lawrence D'Oliveiro
13 May 25 i      i +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stefan Monnier
13 May 25 i      i `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
13 May 25 i      +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?54Anton Ertl
13 May 25 i      i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?53Lawrence D'Oliveiro
13 May 25 i      i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?52Stephen Fuld
14 May 25 i      i  +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?43Lawrence D'Oliveiro
14 May 25 i      i  i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?40Stephen Fuld
18 May02:35 i      i  ii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?39Lawrence D'Oliveiro
19 May01:10 i      i  ii +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?6Lynn Wheeler
19 May21:46 i      i  ii i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?5Vir Campestris
19 May22:58 i      i  ii i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Stephen Fuld
20 May11:22 i      i  ii i  +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Vir Campestris
21 May03:38 i      i  ii i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Lynn Wheeler
21 May04:49 i      i  ii i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
19 May01:18 i      i  ii `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?32MitchAlsup1
20 May00:33 i      i  ii  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?31MitchAlsup1
20 May01:36 i      i  ii   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?30Lawrence D'Oliveiro
20 May06:16 i      i  ii    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?29BGB
20 May15:49 i      i  ii     +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?27Stefan Monnier
20 May18:42 i      i  ii     i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2BGB
20 May19:35 i      i  ii     ii`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
21 May01:29 i      i  ii     i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?24Lawrence D'Oliveiro
21 May02:08 i      i  ii     i +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?19BGB
21 May04:46 i      i  ii     i i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?18Lawrence D'Oliveiro
21 May04:58 i      i  ii     i i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?17Stephen Fuld
21 May18:19 i      i  ii     i i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?16Anton Ertl
22 May03:19 i      i  ii     i i   +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?14George Neuner
22 May07:51 i      i  ii     i i   i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?13BGB
22 May13:12 i      i  ii     i i   i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?12Torbjorn Lindgren
22 May18:39 i      i  ii     i i   i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?11BGB
22 May23:41 i      i  ii     i i   i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?10Lawrence D'Oliveiro
23 May00:36 i      i  ii     i i   i    `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?9BGB
23 May15:21 i      i  ii     i i   i     +* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?6John Levine
23 May16:17 i      i  ii     i i   i     i+* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?3MitchAlsup1
23 May17:57 i      i  ii     i i   i     ii`* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?2Stephen Fuld
23 May18:43 i      i  ii     i i   i     ii `- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1MitchAlsup1
23 May16:53 i      i  ii     i i   i     i`* Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?2BGB
23 May18:34 i      i  ii     i i   i     i `- Re: the power of junk, Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
23 May17:34 i      i  ii     i i   i     `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2jseigh
23 May17:39 i      i  ii     i i   i      `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
22 May12:32 i      i  ii     i i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Dan Cross
21 May04:54 i      i  ii     i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Stephen Fuld
21 May06:39 i      i  ii     i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Lawrence D'Oliveiro
21 May07:42 i      i  ii     i   +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stephen Fuld
21 May08:08 i      i  ii     i   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
21 May01:57 i      i  ii     `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
14 May 25 i      i  i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2John Levine
14 May 25 i      i  i `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Thomas Koenig
23 May01:18 i      i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?8Waldek Hebisch
23 May06:35 i      i   +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Lawrence D'Oliveiro
23 May07:09 i      i   i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3BGB
23 May13:36 i      i   i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2MitchAlsup1
23 May17:29 i      i   i  `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1BGB
23 May16:28 i      i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Stephen Fuld
23 May22:03 i      i    +- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Stefan Monnier
23 May23:19 i      i    `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
18 May00:57 i      `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
19 May22:33 +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?29quadibloc
20 May01:43 i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?28Lawrence D'Oliveiro
20 May19:19 i `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?27BGB
20 May21:06 i  +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?23Stefan Monnier
20 May23:11 i  i+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?20MitchAlsup1
21 May01:34 i  ii+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
21 May02:00 i  ii+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
21 May02:30 i  ii+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?8George Neuner
21 May02:39 i  iii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?7Chris M. Thomasson
21 May04:41 i  iii +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?4Lawrence D'Oliveiro
21 May17:09 i  iii i+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1George Neuner
21 May20:30 i  iii i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Stefan Monnier
22 May03:45 i  iii i `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
21 May18:06 i  iii `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Lynn Wheeler
21 May22:32 i  iii  `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1jseigh
21 May08:05 i  ii+* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Anton Ertl
22 May03:48 i  iii`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
21 May13:23 i  ii`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?7Stefan Monnier
21 May15:08 i  ii `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?6MitchAlsup1
22 May03:49 i  ii  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?5Lawrence D'Oliveiro
22 May18:34 i  ii   +* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3MitchAlsup1
22 May23:42 i  ii   i+- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Lawrence D'Oliveiro
23 May02:54 i  ii   i`- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1MitchAlsup1
23 May04:47 i  ii   `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1George Neuner
21 May01:32 i  i`* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Lawrence D'Oliveiro
21 May02:29 i  i `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Chris M. Thomasson
21 May02:04 i  `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?3Chris M. Thomasson
23 May00:49 i   `* Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?2Chris M. Thomasson
23 May02:04 i    `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Chris M. Thomasson
21 May02:31 `- Re: Is Parallel Programming Hard, And, If So, What Can You Do About It?1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal