Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

: is not an identifier


devel / comp.lang.c++ / Re: Sieve of Erastosthenes optimized to the max

SubjectAuthor
* Sieve of Erastosthenes optimized to the maxBonita Montero
+* Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|`* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
| `* Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|  +* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|  |`* Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|  | +* Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|  | |`- Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|  | `* Re: Sieve of Erastosthenes optimized to the maxred floyd
|  |  `* Re: Sieve of Erastosthenes optimized to the maxTim Rentsch
|  |   `* Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|  |    `* Re: Sieve of Erastosthenes optimized to the maxTim Rentsch
|  |     `* Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|  |      `- Re: Sieve of Erastosthenes optimized to the maxTim Rentsch
|  `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|   `* Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|    +- Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|    +- Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|    `* Re: Sieve of Erastosthenes optimized to the maxTim Rentsch
|     `* Re: Sieve of Erastosthenes optimized to the maxVir Campestris
|      `- Re: Sieve of Erastosthenes optimized to the maxTim Rentsch
+* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|`* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
| `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|  `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|   `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|    `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|     `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|      `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|       `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|        `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|         `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          +* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |`* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          | `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |  `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |   `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |    `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |     `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |      `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       +* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |`* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | +* Re: Sieve of Erastosthenes optimized to the maxDavid Brown
|          |       | |`* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | | `* Re: Sieve of Erastosthenes optimized to the maxDavid Brown
|          |       | |  +- Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  `* Re: Sieve of Erastosthenes optimized to the maxScott Lurndal
|          |       | |   `- Re: Sieve of Erastosthenes optimized to the maxDavid Brown
|          |       | +* Re: Sieve of Erastosthenes optimized to the maxScott Lurndal
|          |       | |+* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | ||`- Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       | |`* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       | | `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       | |  +* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  |+- Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       | |  |`* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       | |  | `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  |  +* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       | |  |  |`* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  |  | `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       | |  |  |  `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  |  |   `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       | |  |  |    `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  |  |     `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       | |  |  |      `- Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  |  `* Re: Sieve of Erastosthenes optimized to the maxScott Lurndal
|          |       | |  |   `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  |    `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       | |  |     `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       | |  |      `- Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       | |  `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       | |   `- Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       | `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       |  `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |   `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |    +* Re: Sieve of Erastosthenes optimized to the maxred floyd
|          |       |    |`- Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |    `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     +* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |`* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     | `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |  `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |   `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |    `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |     `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |      `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |       `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |        `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |         `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |          `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |           `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       |     |            `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |             `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |              +* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |              |`- Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |              `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |               `* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |                `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |                 +* Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |                 |`* Re: Sieve of Erastosthenes optimized to the maxred floyd
|          |       |     |                 | +- Re: Sieve of Erastosthenes optimized to the maxBonita Montero
|          |       |     |                 | `- Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       |     |                 `* Re: Sieve of Erastosthenes optimized to the maxKaz Kylheku
|          |       |     `- Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          |       `- Re: Sieve of Erastosthenes optimized to the maxChris M. Thomasson
|          `* Re: Sieve of Erastosthenes optimized to the maxBonita Montero
`* Re: Sieve of Erastosthenes optimized to the maxwij

Pages:123456
Re: Sieve of Erastosthenes optimized to the max

<umti4s$22ljd$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3013&group=comp.lang.c%2B%2B#3013

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 06:21:34 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <umti4s$22ljd$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<20231226152712.582@kylheku.com> <umfo3c$3l1oh$1@dont-email.me>
<umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<L3CjN.109558$p%Mb.3353@fx15.iad> <umng1u$ve1t$4@dont-email.me>
<umng8b$ve1t$5@dont-email.me>
<umo74a$165i5$1@raubtier-asyl.eternal-september.org>
<20231229205321.72@kylheku.com>
<umo8n3$16bpf$1@raubtier-asyl.eternal-september.org>
<20231229214914.605@kylheku.com>
<umon3l$17r5j$1@raubtier-asyl.eternal-september.org>
<20231230123312.311@kylheku.com>
<umqvn3$1l04c$1@raubtier-asyl.eternal-september.org>
<20231230224218.778@kylheku.com>
<umrfa0$1mnj7$1@raubtier-asyl.eternal-september.org>
<20231231092719.784@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 05:21:32 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="78f346dbb1b88346497a35522221f418";
logging-data="2184813"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+teVI9mzrR/D8UP1lTedMKBu1/xdVMqV4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:F0gF+jZZuTUeKzSkyvDr5y+5sHM=
Content-Language: de-DE
In-Reply-To: <20231231092719.784@kylheku.com>
 by: Bonita Montero - Mon, 1 Jan 2024 05:21 UTC

Am 31.12.2023 um 18:30 schrieb Kaz Kylheku:

> When I describe a scenario in which five items are being frequently
> accessed and collide to the same cache line, which is associative with
> a set size of four, there is necessarily a conflict, because five is
> greater than four.

However, this scenario is unlikely to occur so often that
it makes sense to not let the stacks run synchronously.

Re: Sieve of Erastosthenes optimized to the max

<umti6f$22ljd$2@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3014&group=comp.lang.c%2B%2B#3014

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 06:22:25 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <umti6f$22ljd$2@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<L3CjN.109558$p%Mb.3353@fx15.iad> <umng1u$ve1t$4@dont-email.me>
<umng8b$ve1t$5@dont-email.me>
<umo74a$165i5$1@raubtier-asyl.eternal-september.org>
<20231229205321.72@kylheku.com>
<umo8n3$16bpf$1@raubtier-asyl.eternal-september.org>
<GEikN.127080$83n7.18826@fx18.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 05:22:23 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="78f346dbb1b88346497a35522221f418";
logging-data="2184813"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IX7TNOUNLR6rTLHRsYjC5+ZRgDSbAG9k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:w+ah5Gl53SBXXaZMdk1ndM4ASkU=
In-Reply-To: <GEikN.127080$83n7.18826@fx18.iad>
Content-Language: de-DE
 by: Bonita Montero - Mon, 1 Jan 2024 05:22 UTC

Am 31.12.2023 um 19:44 schrieb Scott Lurndal:

> Why? ...

Because there must be set-conflicts on the same line index.
That's rather unlikely with four-way associativeness.

Re: Sieve of Erastosthenes optimized to the max

<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3015&group=comp.lang.c%2B%2B#3015

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 07:28:36 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<um4f1l$1l1c2$1@raubtier-asyl.eternal-september.org>
<um7haa$274oh$3@dont-email.me>
<um8vlp$2h8oc$1@raubtier-asyl.eternal-september.org>
<uma7i4$2nagg$1@dont-email.me>
<umdmkf$3clht$1@raubtier-asyl.eternal-september.org>
<umdovb$3cmi3$2@dont-email.me>
<ume6ap$3ecjk$1@raubtier-asyl.eternal-september.org>
<umfcqi$3jktj$2@dont-email.me> <20231226152712.582@kylheku.com>
<umfo3c$3l1oh$1@dont-email.me> <umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 06:28:35 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="78f346dbb1b88346497a35522221f418";
logging-data="2195743"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18z5lXMxPQ+qrfyMbbotGACqjifo+2Xz0s="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1FjrIhvyHSNxlwrn1mz8NWsYFD0=
Content-Language: de-DE
In-Reply-To: <umsfrt$1qvlo$1@dont-email.me>
 by: Bonita Montero - Mon, 1 Jan 2024 06:28 UTC

Am 31.12.2023 um 20:36 schrieb Chris M. Thomasson:

>> I'm pretty sure they never ran the numbers on that.

> I am pretty sure you are trolling, Bonita?

If you allocate memory the memory usually comes from a pool
where theset indices of the memory block are rather randomized.
It's rather unlikey that you'd get set conflicts with the both
thread to an extent that this really hurts performance.

Re: Sieve of Erastosthenes optimized to the max

<umtnhl$234ro$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3016&group=comp.lang.c%2B%2B#3016

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sun, 31 Dec 2023 22:53:40 -0800
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <umtnhl$234ro$1@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<um7haa$274oh$3@dont-email.me>
<um8vlp$2h8oc$1@raubtier-asyl.eternal-september.org>
<uma7i4$2nagg$1@dont-email.me>
<umdmkf$3clht$1@raubtier-asyl.eternal-september.org>
<umdovb$3cmi3$2@dont-email.me>
<ume6ap$3ecjk$1@raubtier-asyl.eternal-september.org>
<umfcqi$3jktj$2@dont-email.me> <20231226152712.582@kylheku.com>
<umfo3c$3l1oh$1@dont-email.me> <umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 1 Jan 2024 06:53:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3e21f699babce0eb2f3b38bbab43087f";
logging-data="2200440"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uU3xIcxA8p2pAmLBhi8yS7a5WHJP37Qo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:HPJ/Oo9NYCn2nixoDAbOnPMjCFQ=
In-Reply-To: <umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 1 Jan 2024 06:53 UTC

On 12/31/2023 10:28 PM, Bonita Montero wrote:
> Am 31.12.2023 um 20:36 schrieb Chris M. Thomasson:
>
>>> I'm pretty sure they never ran the numbers on that.
>
>> I am pretty sure you are trolling, Bonita?
>
> If you allocate memory the memory usually comes from a pool
> where theset indices of the memory block are rather randomized.
> It's rather  unlikey that you'd get set conflicts with the both
> thread to an extent that this really hurts performance.
>

Oh my. You really did not read the paper I linked to up thread!

Re: Sieve of Erastosthenes optimized to the max

<20240101002507.23@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3017&group=comp.lang.c%2B%2B#3017

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 08:28:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20240101002507.23@kylheku.com>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<L3CjN.109558$p%Mb.3353@fx15.iad> <umng1u$ve1t$4@dont-email.me>
<umng8b$ve1t$5@dont-email.me>
<umo74a$165i5$1@raubtier-asyl.eternal-september.org>
<20231229205321.72@kylheku.com>
<umo8n3$16bpf$1@raubtier-asyl.eternal-september.org>
<GEikN.127080$83n7.18826@fx18.iad>
<umti6f$22ljd$2@raubtier-asyl.eternal-september.org>
Injection-Date: Mon, 1 Jan 2024 08:28:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="767daa61edebaca5eb1528102f25e053";
logging-data="2218648"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5hfo232fvexBdoWSXMG1r4SAliGh/N40="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:cJXTdpyOJpkV9yw2sNxc6fd3pI4=
 by: Kaz Kylheku - Mon, 1 Jan 2024 08:28 UTC

On 2024-01-01, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 31.12.2023 um 19:44 schrieb Scott Lurndal:
>
>> Why? ...
>
> Because there must be set-conflicts on the same line index.
> That's rather unlikely with four-way associativeness.

It's rather likely. Suppose you have a large number of threads,
with stacks that end on a multiple of 64 kB.

Only two of these threads are runnable concurrently on the
two hyperthreads. However, your application may be rapidly
switching between them.

If their stacks evacuate each other from the L1 cache,
that could be bad.

For compute-bound tasks with long quanta, it might not
matter so much; the same threads will occupy the hyperthreads
for tens of milliseconds at a time or whatever.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Sieve of Erastosthenes optimized to the max

<umu8n0$26q3n$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3018&group=comp.lang.c%2B%2B#3018

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 12:46:39 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <umu8n0$26q3n$1@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<ummfmm$r4ol$1@dont-email.me>
<ummqmc$slfn$1@raubtier-asyl.eternal-september.org>
<umpnei$1c0qj$1@dont-email.me> <SIikN.127081$83n7.67410@fx18.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 11:46:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bb12dad409a29f34e8917d8a68d204ef";
logging-data="2320503"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HWS8k/5Wy+TJ8VG7rrtofGqfz7Al+QpA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:MhTQsliealvvz4BT85yNhb0D46Q=
Content-Language: en-GB
In-Reply-To: <SIikN.127081$83n7.67410@fx18.iad>
 by: David Brown - Mon, 1 Jan 2024 11:46 UTC

On 31/12/2023 19:49, Scott Lurndal wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 29/12/2023 17:04, Bonita Montero wrote:
>
>>>
>>> You've got strange ideas. alloca() has been completely removed from the
>>> Linux kernel.
>>
>> Citation? You are usually wrong in your claims, or at least mixed-up,
>> so I won't trust you without evidence. (That does not mean you are
>> wrong here - I don't know either way.)
>
> Kernel threads generally run with a small, fixed stack. Stack-based
> dynamic allocation is generally avoided. I don't know of any
> hard restrictions, but I suspect that Linus would look askance
> at it.
>

Oh, I have no doubts that it would be frowned upon in the kernel itself.
And I know that VLAs have been actively removed from the kernel. But
Bonita's claim implies that "alloca()" was used in the kernel earlier,
and has since been removed, presumably due to a specific decision.

>>
>> Of course, avoiding alloca() within the kernel is, again, utterly
>> irrelevant to the point under discussion.
>
> Very true

Re: Sieve of Erastosthenes optimized to the max

<umudl4$27da9$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3019&group=comp.lang.c%2B%2B#3019

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 14:11:02 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <umudl4$27da9$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<L3CjN.109558$p%Mb.3353@fx15.iad> <umng1u$ve1t$4@dont-email.me>
<umng8b$ve1t$5@dont-email.me>
<umo74a$165i5$1@raubtier-asyl.eternal-september.org>
<20231229205321.72@kylheku.com>
<umo8n3$16bpf$1@raubtier-asyl.eternal-september.org>
<GEikN.127080$83n7.18826@fx18.iad>
<umti6f$22ljd$2@raubtier-asyl.eternal-september.org>
<20240101002507.23@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 13:11:00 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="78f346dbb1b88346497a35522221f418";
logging-data="2340169"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wtntM9T06kqWiDP4OGWyTBbhAijqe/mM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rcvKxz0uHy6OmLn6uPQv+/xglUQ=
In-Reply-To: <20240101002507.23@kylheku.com>
Content-Language: de-DE
 by: Bonita Montero - Mon, 1 Jan 2024 13:11 UTC

Am 01.01.2024 um 09:28 schrieb Kaz Kylheku:

> It's rather likely. ...

Absolutely not.

> Suppose you have a large number of threads,
> with stacks that end on a multiple of 64 kB.

The set size isn't 64kB.

> Only two of these threads are runnable concurrently on the
> two hyperthreads. However, your application may be rapidly
> switching between them.

If you have two threads synchronous in terms of stack allocation
you need conflicting data that touches cacklines with the same
set indices. That's unlikely.
The suggestion Intel made here is just a Nerd-suggestion.

Re: Sieve of Erastosthenes optimized to the max

<umudmb$27da9$2@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3020&group=comp.lang.c%2B%2B#3020

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 14:11:42 +0100
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <umudmb$27da9$2@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<um8vlp$2h8oc$1@raubtier-asyl.eternal-september.org>
<uma7i4$2nagg$1@dont-email.me>
<umdmkf$3clht$1@raubtier-asyl.eternal-september.org>
<umdovb$3cmi3$2@dont-email.me>
<ume6ap$3ecjk$1@raubtier-asyl.eternal-september.org>
<umfcqi$3jktj$2@dont-email.me> <20231226152712.582@kylheku.com>
<umfo3c$3l1oh$1@dont-email.me> <umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 13:11:39 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="78f346dbb1b88346497a35522221f418";
logging-data="2340169"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/p7SO/NMVNYiJQdxLniemEwDe/CIPgNqM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:R6rExCJKsY/1Bcr7vx1UwJV8NzQ=
Content-Language: de-DE
In-Reply-To: <umtnhl$234ro$1@dont-email.me>
 by: Bonita Montero - Mon, 1 Jan 2024 13:11 UTC

Am 01.01.2024 um 07:53 schrieb Chris M. Thomasson:

> Oh my. You really did not read the paper I linked to up thread!

The suggestion Intel made here is just a Nerd-suggestion and
you're a nerd as well.

Re: Sieve of Erastosthenes optimized to the max

<umvi6u$2c9ue$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3021&group=comp.lang.c%2B%2B#3021

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 15:34:53 -0800
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <umvi6u$2c9ue$1@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<uma7i4$2nagg$1@dont-email.me>
<umdmkf$3clht$1@raubtier-asyl.eternal-september.org>
<umdovb$3cmi3$2@dont-email.me>
<ume6ap$3ecjk$1@raubtier-asyl.eternal-september.org>
<umfcqi$3jktj$2@dont-email.me> <20231226152712.582@kylheku.com>
<umfo3c$3l1oh$1@dont-email.me> <umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 23:34:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="11211dc3698776fd1d6710c89d96e3ba";
logging-data="2500558"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Yge7Axju50Uk1HY+2sEEhp2VtGITS0+c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:oOmgkGnu2jsqScqDL+VSS65tCiU=
Content-Language: en-US
In-Reply-To: <umudmb$27da9$2@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Mon, 1 Jan 2024 23:34 UTC

On 1/1/2024 5:11 AM, Bonita Montero wrote:
> Am 01.01.2024 um 07:53 schrieb Chris M. Thomasson:
>
>> Oh my. You really did not read the paper I linked to up thread!
>
> The suggestion Intel made here is just a Nerd-suggestion and
> you're a nerd as well.
>

LOL! Wow, you are the king of interesting responses!

:^) Happy New Year!

Re: Sieve of Erastosthenes optimized to the max

<umvia0$2c9ue$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3022&group=comp.lang.c%2B%2B#3022

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 1 Jan 2024 15:36:31 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <umvia0$2c9ue$2@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<L3CjN.109558$p%Mb.3353@fx15.iad> <umng1u$ve1t$4@dont-email.me>
<umng8b$ve1t$5@dont-email.me>
<umo74a$165i5$1@raubtier-asyl.eternal-september.org>
<20231229205321.72@kylheku.com>
<umo8n3$16bpf$1@raubtier-asyl.eternal-september.org>
<GEikN.127080$83n7.18826@fx18.iad>
<umti6f$22ljd$2@raubtier-asyl.eternal-september.org>
<20240101002507.23@kylheku.com>
<umudl4$27da9$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 1 Jan 2024 23:36:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="11211dc3698776fd1d6710c89d96e3ba";
logging-data="2500558"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18q6/dJIYWaub2UEMqyE4cUYVsLauH51Xs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Pf+13X2CTsD4dTKjxXIyhiJHpdU=
Content-Language: en-US
In-Reply-To: <umudl4$27da9$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Mon, 1 Jan 2024 23:36 UTC

On 1/1/2024 5:11 AM, Bonita Montero wrote:
> Am 01.01.2024 um 09:28 schrieb Kaz Kylheku:
>
>> It's rather likely. ...
>
> Absolutely not.
>
>> Suppose you have a large number of threads,
>> with stacks that end on a multiple of 64 kB.
>
> The set size isn't 64kB.
>
>> Only two of these threads are runnable concurrently on the
>> two hyperthreads. However, your application may be rapidly
>> switching between them.
>
> If you have two threads synchronous in terms of stack allocation
> you need conflicting data that touches cacklines with the same
> set indices. That's unlikely.
> The suggestion Intel made here is just a Nerd-suggestion.
>

Are you are a full blown moron, or just a little?

Re: Sieve of Erastosthenes optimized to the max

<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3023&group=comp.lang.c%2B%2B#3023

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Tue, 2 Jan 2024 11:55:54 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umdmkf$3clht$1@raubtier-asyl.eternal-september.org>
<umdovb$3cmi3$2@dont-email.me>
<ume6ap$3ecjk$1@raubtier-asyl.eternal-september.org>
<umfcqi$3jktj$2@dont-email.me> <20231226152712.582@kylheku.com>
<umfo3c$3l1oh$1@dont-email.me> <umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 2 Jan 2024 10:55:51 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="c6a257378574b0ec2d9ea0df3b2e70bb";
logging-data="2781386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+OCJv7LQJPMnPpgh1PhEaIHQrP/yEGH6U="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dMhX9iZIGgMrnBy4crEOPKukfVU=
In-Reply-To: <umvi6u$2c9ue$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Tue, 2 Jan 2024 10:55 UTC

Am 02.01.2024 um 00:34 schrieb Chris M. Thomasson:
> On 1/1/2024 5:11 AM, Bonita Montero wrote:
>> Am 01.01.2024 um 07:53 schrieb Chris M. Thomasson:
>>
>>> Oh my. You really did not read the paper I linked to up thread!
>>
>> The suggestion Intel made here is just a Nerd-suggestion and
>> you're a nerd as well.
>>
>
> LOL! Wow, you are the king of interesting responses!

You consider this suggestion to be important because it makes
you feel important.

Re: Sieve of Erastosthenes optimized to the max

<un1l6g$2q1iv$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3024&group=comp.lang.c%2B%2B#3024

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Tue, 2 Jan 2024 10:38:07 -0800
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <un1l6g$2q1iv$1@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umdovb$3cmi3$2@dont-email.me>
<ume6ap$3ecjk$1@raubtier-asyl.eternal-september.org>
<umfcqi$3jktj$2@dont-email.me> <20231226152712.582@kylheku.com>
<umfo3c$3l1oh$1@dont-email.me> <umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 2 Jan 2024 18:38:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="11211dc3698776fd1d6710c89d96e3ba";
logging-data="2950751"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IqhHo+0oSEZ3ut+UGnYoBWbOovYrlV1I="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6cWjH43M8PaJTVnMo85qvC2K4+k=
In-Reply-To: <un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
Content-Language: en-US
 by: Chris M. Thomasson - Tue, 2 Jan 2024 18:38 UTC

On 1/2/2024 2:55 AM, Bonita Montero wrote:
> Am 02.01.2024 um 00:34 schrieb Chris M. Thomasson:
>> On 1/1/2024 5:11 AM, Bonita Montero wrote:
>>> Am 01.01.2024 um 07:53 schrieb Chris M. Thomasson:
>>>
>>>> Oh my. You really did not read the paper I linked to up thread!
>>>
>>> The suggestion Intel made here is just a Nerd-suggestion and
>>> you're a nerd as well.
>>>
>>
>> LOL! Wow, you are the king of interesting responses!
>
> You consider this suggestion to be important because it makes
> you feel important.
>

Not true. Don't project on me, oh holy one.

Now, I was reading all of the Intel optimization guides and using VTune
at the time, early 2000's. I happened to remember this one (64k aliasing
problem), and even found my own C code on the wayback machine that used
it. Just because you have not read them does not make me feel
"important". You silly rabbit! Tricks are for kids. :^)

Re: Sieve of Erastosthenes optimized to the max

<un2sel$33tna$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3025&group=comp.lang.c%2B%2B#3025

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Wed, 3 Jan 2024 06:48:08 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <un2sel$33tna$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<ume6ap$3ecjk$1@raubtier-asyl.eternal-september.org>
<umfcqi$3jktj$2@dont-email.me> <20231226152712.582@kylheku.com>
<umfo3c$3l1oh$1@dont-email.me> <umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 3 Jan 2024 05:48:05 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="f4a1b8f902e07bba05eb0e4ea4a23918";
logging-data="3274474"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+V1Jq+1bzTvBWY6BsoEY/heUmTWnWfY/M="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:E+fKnTFeH4mNLaZI+lhMoSn/sNE=
In-Reply-To: <un1l6g$2q1iv$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Wed, 3 Jan 2024 05:48 UTC

Am 02.01.2024 um 19:38 schrieb Chris M. Thomasson:
> On 1/2/2024 2:55 AM, Bonita Montero wrote:
>> Am 02.01.2024 um 00:34 schrieb Chris M. Thomasson:
>>> On 1/1/2024 5:11 AM, Bonita Montero wrote:
>>>> Am 01.01.2024 um 07:53 schrieb Chris M. Thomasson:
>>>>
>>>>> Oh my. You really did not read the paper I linked to up thread!
>>>>
>>>> The suggestion Intel made here is just a Nerd-suggestion and
>>>> you're a nerd as well.
>>>>
>>>
>>> LOL! Wow, you are the king of interesting responses!
>>
>> You consider this suggestion to be important because it makes
>> you feel important.
>>
>
> Not true. Don't project on me, oh holy one.

I know you in this point - very good.

> Now, I was reading all of the Intel optimization guides and using VTune
> at the time, early 2000's. I happened to remember this one (64k aliasing
> problem), ...

There is no 64kB aliasing problem with the L1-cache since the cache
is smaller.

Re: Sieve of Erastosthenes optimized to the max

<un4jos$3ba8u$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3026&group=comp.lang.c%2B%2B#3026

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Wed, 3 Jan 2024 13:32:12 -0800
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <un4jos$3ba8u$1@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umfcqi$3jktj$2@dont-email.me> <20231226152712.582@kylheku.com>
<umfo3c$3l1oh$1@dont-email.me> <umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 3 Jan 2024 21:32:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="32395bc600b0d1f086fcad7ee7d8040a";
logging-data="3516702"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19izkk31hruF37CjRXRrAIsARrFSzQXWYA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:x+LBmV0UC5rr3tyuY2DZIU1guDk=
Content-Language: en-US
In-Reply-To: <un2sel$33tna$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Wed, 3 Jan 2024 21:32 UTC

On 1/2/2024 9:48 PM, Bonita Montero wrote:
> Am 02.01.2024 um 19:38 schrieb Chris M. Thomasson:
>> On 1/2/2024 2:55 AM, Bonita Montero wrote:
>>> Am 02.01.2024 um 00:34 schrieb Chris M. Thomasson:
>>>> On 1/1/2024 5:11 AM, Bonita Montero wrote:
>>>>> Am 01.01.2024 um 07:53 schrieb Chris M. Thomasson:
>>>>>
>>>>>> Oh my. You really did not read the paper I linked to up thread!
>>>>>
>>>>> The suggestion Intel made here is just a Nerd-suggestion and
>>>>> you're a nerd as well.
>>>>>
>>>>
>>>> LOL! Wow, you are the king of interesting responses!
>>>
>>> You consider this suggestion to be important because it makes
>>> you feel important.
>>>
>>
>> Not true. Don't project on me, oh holy one.
>
> I know you in this point - very good.
>
>> Now, I was reading all of the Intel optimization guides and using
>> VTune at the time, early 2000's. I happened to remember this one (64k
>> aliasing problem), ...
>
> There is no 64kB aliasing problem with the L1-cache since the cache
> is smaller.
>

Oh god. Have you not read the paper yet? If you have read it all, then
you do not seem to understand it at all. That's on you, Bonita. Like I
said you need to write Intel a letter telling them how that paper never
needed to be written. Lol! You make me laugh!

:^)

Re: Sieve of Erastosthenes optimized to the max

<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3028&group=comp.lang.c%2B%2B#3028

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Thu, 4 Jan 2024 04:37:04 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<20231226152712.582@kylheku.com> <umfo3c$3l1oh$1@dont-email.me>
<umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 4 Jan 2024 03:37:01 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="a4f7c2fd354132ce913a8441daefd38c";
logging-data="3726520"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/eEhWKujUe+i4Xn1gNFHxz5xj125jq1pA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3oiQd2iihTz5+1XCknp28dJWJAk=
In-Reply-To: <un4jos$3ba8u$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Thu, 4 Jan 2024 03:37 UTC

Am 03.01.2024 um 22:32 schrieb Chris M. Thomasson:

> On 1/2/2024 9:48 PM, Bonita Montero wrote:

>> There is no 64kB aliasing problem with the L1-cache since the cache
>> is smaller.

> Oh god. Have you not read the paper yet? ...

The Pentium 4's L1 data cache is between 16 and 32kB, so there
can't be a 64kB aliasing. And aliasing can be only on a set basis
and the sets are 4kB or 8kB large.

Re: Sieve of Erastosthenes optimized to the max

<unagvf$ft9g$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3030&group=comp.lang.c%2B%2B#3030

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Fri, 5 Jan 2024 19:21:18 -0800
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <unagvf$ft9g$1@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umgego$3r29p$1@dont-email.me>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Jan 2024 03:21:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8366f723bde8d40b87f56c15a24480e2";
logging-data="521520"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181yUirvwt48i+J2kY1iTGQt0tMGDP3/aY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fD3jyq62Jv3/9sOT3hohzIsYNz8=
Content-Language: en-US
In-Reply-To: <un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Sat, 6 Jan 2024 03:21 UTC

On 1/3/2024 7:37 PM, Bonita Montero wrote:
> Am 03.01.2024 um 22:32 schrieb Chris M. Thomasson:
>
>> On 1/2/2024 9:48 PM, Bonita Montero wrote:
>
>>> There is no 64kB aliasing problem with the L1-cache since the cache
>>> is smaller.
>
>> Oh god. Have you not read the paper yet? ...
>
>
> The Pentium 4's L1 data cache is between 16 and 32kB, so there
> can't be a 64kB aliasing. And aliasing can be only on a set basis
> and the sets are 4kB or 8kB large.
>

Are you trying to tell me that the aliasing problem on those older Intel
hyperthreaded processors and the workaround (from Intel) was a myth?
lol. ;^)

Re: Sieve of Erastosthenes optimized to the max

<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3031&group=comp.lang.c%2B%2B#3031

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sat, 6 Jan 2024 08:18:35 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umgqe5$3sc4h$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Jan 2024 07:18:30 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="d6a0122b924bd5c34bb0e856a2fa94b0";
logging-data="566944"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Px5uJb3JIFLVw4X6GB6tjQ98jR1WuRQM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:0LKiAJePWznCZf748lxBJvuo9yY=
Content-Language: de-DE
In-Reply-To: <unagvf$ft9g$1@dont-email.me>
 by: Bonita Montero - Sat, 6 Jan 2024 07:18 UTC

Am 06.01.2024 um 04:21 schrieb Chris M. Thomasson:

> Are you trying to tell me that the aliasing problem on those older Intel
> hyperthreaded processors and the workaround (from Intel) was a myth?
> lol. ;^)

Intel just made a nerd-suggestion. With four-way associativity
there's no frequent aliasing problem in the L1 data dache of
Pentium 4.

Re: Sieve of Erastosthenes optimized to the max

<20240106000249.177@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3032&group=comp.lang.c%2B%2B#3032

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sat, 6 Jan 2024 08:31:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <20240106000249.177@kylheku.com>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<20231227124453.126@kylheku.com>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
Injection-Date: Sat, 6 Jan 2024 08:31:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c0914881c3ccbe218a7f6bf0ac7da9dd";
logging-data="581356"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3r7aw/0ln8AI8FRouyejCEzt441tNd8E="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:Y5JfsVqv2kIBikFkjl1ck4KDtR0=
 by: Kaz Kylheku - Sat, 6 Jan 2024 08:31 UTC

On 2024-01-06, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 06.01.2024 um 04:21 schrieb Chris M. Thomasson:
>
>> Are you trying to tell me that the aliasing problem on those older Intel
>> hyperthreaded processors and the workaround (from Intel) was a myth?
>> lol. ;^)
>
> Intel just made a nerd-suggestion. With four-way associativity
> there's no frequent aliasing problem in the L1 data dache of
> Pentium 4.

I think the L1 cache was 8K on that thing, and the blocks are 32 bytes.

I think how it works on the P4 is that the address is structured is like
this:

31 11 10 5 4 0
| | | | | |
[ 21 bit tag ] [ 6 bit cache set ] [ 5 bit offset into 32 bit block ]

Thus say we have an area of the stack with the address
range nnnnFF80 to nnnnFFFF (128 bytes, 4 x 32 byte cache blocks).

These four blocks all map to the same set: they have the same six
bits in the "cache set" part of the address.

So if a thread is accessing something in all four blocks, it will
completely use that cache set, all by itself.

If any other thread has a similar block in its stack, with the same
cache set ID, it will cause evictions against this thread.

Sure, if each of these threads confines itself to working with just one
cacheline-sized aperture of the stack, it looks better.

You're forgetting that the sets are very small and that groups of
adjacent four 32 byte blocks map to the same set. Touch four adjacent
cache blocks that are aligned on a 128 byte boundary, and you have
hit full occupancy in the cache set corresponding to that block!

(I suspect the references to 64K should not be kilobytes but sets.
The 8K cache has 64 sets.)

In memory, 128 byte blocks that is aligned maps to, and precisely covers
a cache set. If two such blocks addresses that are equal modulo 8K, they
collide to the same cache set. If one of those blocks is fully present
in the cache, the other must be fully evicted.

It's really easy to see how things can go south under hyperthreading.
If two hyperthreads are working with clashing 128 byte areas that each
want to hog the same cache set, and the core is switching between them
on a fine-grained basis, ... you get the picture.

It's very easy for the memory mapping allocations used for thread
stacks to produce addresses such tha the delta between them is a
multiple of 8K.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
NOTE: If you use Google Groups, I don't see you, unless you're whitelisted.

Re: Sieve of Erastosthenes optimized to the max

<unb6jc$i4of$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3033&group=comp.lang.c%2B%2B#3033

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sat, 6 Jan 2024 10:30:25 +0100
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <unb6jc$i4of$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umjkg8$bqmr$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
<20240106000249.177@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Jan 2024 09:30:20 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="d6a0122b924bd5c34bb0e856a2fa94b0";
logging-data="594703"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2UWo+MG5WCJzanm1Y/TtY61TYVVVgGNU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Cldz/yGrlTXKzgXm1TBHB1VcGYo=
Content-Language: de-DE
In-Reply-To: <20240106000249.177@kylheku.com>
 by: Bonita Montero - Sat, 6 Jan 2024 09:30 UTC

Am 06.01.2024 um 09:31 schrieb Kaz Kylheku:
> On 2024-01-06, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 06.01.2024 um 04:21 schrieb Chris M. Thomasson:
>>
>>> Are you trying to tell me that the aliasing problem on those older Intel
>>> hyperthreaded processors and the workaround (from Intel) was a myth?
>>> lol. ;^)
>>
>> Intel just made a nerd-suggestion. With four-way associativity
>> there's no frequent aliasing problem in the L1 data dache of
>> Pentium 4.
>
> I think the L1 cache was 8K on that thing, and the blocks are 32 bytes.
>
> I think how it works on the P4 is that the address is structured is like
> this:
>
> 31 11 10 5 4 0
> | | | | | |
> [ 21 bit tag ] [ 6 bit cache set ] [ 5 bit offset into 32 bit block ]
>
> Thus say we have an area of the stack with the address
> range nnnnFF80 to nnnnFFFF (128 bytes, 4 x 32 byte cache blocks).
>
> These four blocks all map to the same set: they have the same six
> bits in the "cache set" part of the address.
>
> So if a thread is accessing something in all four blocks, it will
> completely use that cache set, all by itself.
>
> If any other thread has a similar block in its stack, with the same
> cache set ID, it will cause evictions against this thread.
>
> Sure, if each of these threads confines itself to working with just one
> cacheline-sized aperture of the stack, it looks better.
>
> You're forgetting that the sets are very small and that groups of
> adjacent four 32 byte blocks map to the same set. Touch four adjacent
> cache blocks that are aligned on a 128 byte boundary, and you have
> hit full occupancy in the cache set corresponding to that block!
>
> (I suspect the references to 64K should not be kilobytes but sets.
> The 8K cache has 64 sets.)
>
> In memory, 128 byte blocks that is aligned maps to, and precisely covers
> a cache set. If two such blocks addresses that are equal modulo 8K, they
> collide to the same cache set. If one of those blocks is fully present
> in the cache, the other must be fully evicted.
>
> It's really easy to see how things can go south under hyperthreading.
> If two hyperthreads are working with clashing 128 byte areas that each
> want to hog the same cache set, and the core is switching between them
> on a fine-grained basis, ... you get the picture.
>
> It's very easy for the memory mapping allocations used for thread
> stacks to produce addresses such tha the delta between them is a
> multiple of 8K.
>

Of course it's easy to intentionally provoke frequent aliasing
with the P4's L1 cache, but actually this doesn't happen often.

Re: Sieve of Erastosthenes optimized to the max

<uncfue$ojf6$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3034&group=comp.lang.c%2B%2B#3034

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sat, 6 Jan 2024 13:15:58 -0800
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <uncfue$ojf6$1@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<uml0sp$i3j7$1@dont-email.me>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
<20240106000249.177@kylheku.com>
<unb6jc$i4of$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 6 Jan 2024 21:15:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8366f723bde8d40b87f56c15a24480e2";
logging-data="806374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+R+3HNyZzRFox/7T9pd8z64mruxoCXjVc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+Q0Y5P/IToJdxcpn25Mxa6IYS74=
Content-Language: en-US
In-Reply-To: <unb6jc$i4of$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Sat, 6 Jan 2024 21:15 UTC

On 1/6/2024 1:30 AM, Bonita Montero wrote:
> Am 06.01.2024 um 09:31 schrieb Kaz Kylheku:
>> On 2024-01-06, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> Am 06.01.2024 um 04:21 schrieb Chris M. Thomasson:
>>>
>>>> Are you trying to tell me that the aliasing problem on those older
>>>> Intel
>>>> hyperthreaded processors and the workaround (from Intel) was a myth?
>>>> lol. ;^)
>>>
>>> Intel just made a nerd-suggestion. With four-way associativity
>>> there's no frequent aliasing problem in the L1 data dache of
>>> Pentium 4.
>>
>> I think the L1 cache was 8K on that thing, and the blocks are 32 bytes.
>>
>> I think how it works on the P4 is that the address is structured is like
>> this:
>>
>>   31          11 10                5 4                                0
>>   |            | |                 | |                                |
>>   [ 21 bit tag ] [ 6 bit cache set ] [ 5 bit offset into 32 bit block ]
>>
>> Thus say we have an area of the stack with the address
>> range nnnnFF80 to nnnnFFFF (128 bytes, 4 x 32 byte cache blocks).
>>
>> These four blocks all map to the same set: they have the same six
>> bits in the "cache set" part of the address.
>>
>> So if a thread is accessing something in all four blocks, it will
>> completely use that cache set, all by itself.
>>
>> If any other thread has a similar block in its stack, with the same
>> cache set ID, it will cause evictions against this thread.
>>
>> Sure, if each of these threads confines itself to working with just one
>> cacheline-sized aperture of the stack, it looks better.
>>
>> You're forgetting that the sets are very small and that groups of
>> adjacent four 32 byte blocks map to the same set. Touch four adjacent
>> cache blocks that are aligned on a 128 byte boundary, and you have
>> hit full occupancy in the cache set corresponding to that block!
>>
>> (I suspect the references to 64K should not be kilobytes but sets.
>> The 8K cache has 64 sets.)
>>
>> In memory, 128 byte blocks that is aligned maps to, and precisely covers
>> a cache set. If two such blocks addresses that are equal modulo 8K, they
>> collide to the same cache set. If one of those blocks is fully present
>> in the cache, the other must be fully evicted.
>>
>> It's really easy to see how things can go south under hyperthreading.
>> If two hyperthreads are working with clashing 128 byte areas that each
>> want to hog the same cache set, and the core is switching between them
>> on a fine-grained basis, ...  you get the picture.
>>
>> It's very easy for the memory mapping allocations used for thread
>> stacks to produce addresses such tha the delta between them is a
>> multiple of 8K.
>>
>
>
> Of course it's easy to intentionally provoke frequent aliasing
> with the P4's L1 cache, but actually this doesn't happen often.

Fwiw, some people were complaining about bad performance using
hyperthreading. Turning it off in bios improved performance. Hence the
paper was written to show them how to vastly improve performance when
hyperthreading was turned on. You call it nerd stuff, and I still cannot
figure out why?

Re: Sieve of Erastosthenes optimized to the max

<uncg5t$ojf6$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3035&group=comp.lang.c%2B%2B#3035

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sat, 6 Jan 2024 13:19:57 -0800
Organization: A noiseless patient Spider
Lines: 74
Message-ID: <uncg5t$ojf6$2@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
<20240106000249.177@kylheku.com>
<unb6jc$i4of$1@raubtier-asyl.eternal-september.org>
<uncfue$ojf6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 6 Jan 2024 21:19:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8366f723bde8d40b87f56c15a24480e2";
logging-data="806374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Sw+pwT2F2CgMz9YvrSDoyD+S57+Pf56Q="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Fq9QitN/mWoFhHz9B1kh19r54Xk=
In-Reply-To: <uncfue$ojf6$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 6 Jan 2024 21:19 UTC

On 1/6/2024 1:15 PM, Chris M. Thomasson wrote:
> On 1/6/2024 1:30 AM, Bonita Montero wrote:
>> Am 06.01.2024 um 09:31 schrieb Kaz Kylheku:
>>> On 2024-01-06, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>> Am 06.01.2024 um 04:21 schrieb Chris M. Thomasson:
>>>>
>>>>> Are you trying to tell me that the aliasing problem on those older
>>>>> Intel
>>>>> hyperthreaded processors and the workaround (from Intel) was a myth?
>>>>> lol. ;^)
>>>>
>>>> Intel just made a nerd-suggestion. With four-way associativity
>>>> there's no frequent aliasing problem in the L1 data dache of
>>>> Pentium 4.
>>>
>>> I think the L1 cache was 8K on that thing, and the blocks are 32 bytes.
>>>
>>> I think how it works on the P4 is that the address is structured is like
>>> this:
>>>
>>>   31          11 10                5 4                                0
>>>   |            | |                 | |                                |
>>>   [ 21 bit tag ] [ 6 bit cache set ] [ 5 bit offset into 32 bit block ]
>>>
>>> Thus say we have an area of the stack with the address
>>> range nnnnFF80 to nnnnFFFF (128 bytes, 4 x 32 byte cache blocks).
>>>
>>> These four blocks all map to the same set: they have the same six
>>> bits in the "cache set" part of the address.
>>>
>>> So if a thread is accessing something in all four blocks, it will
>>> completely use that cache set, all by itself.
>>>
>>> If any other thread has a similar block in its stack, with the same
>>> cache set ID, it will cause evictions against this thread.
>>>
>>> Sure, if each of these threads confines itself to working with just one
>>> cacheline-sized aperture of the stack, it looks better.
>>>
>>> You're forgetting that the sets are very small and that groups of
>>> adjacent four 32 byte blocks map to the same set. Touch four adjacent
>>> cache blocks that are aligned on a 128 byte boundary, and you have
>>> hit full occupancy in the cache set corresponding to that block!
>>>
>>> (I suspect the references to 64K should not be kilobytes but sets.
>>> The 8K cache has 64 sets.)
>>>
>>> In memory, 128 byte blocks that is aligned maps to, and precisely covers
>>> a cache set. If two such blocks addresses that are equal modulo 8K, they
>>> collide to the same cache set. If one of those blocks is fully present
>>> in the cache, the other must be fully evicted.
>>>
>>> It's really easy to see how things can go south under hyperthreading.
>>> If two hyperthreads are working with clashing 128 byte areas that each
>>> want to hog the same cache set, and the core is switching between them
>>> on a fine-grained basis, ...  you get the picture.
>>>
>>> It's very easy for the memory mapping allocations used for thread
>>> stacks to produce addresses such tha the delta between them is a
>>> multiple of 8K.
>>>
>>
>>
>> Of course it's easy to intentionally provoke frequent aliasing
>> with the P4's L1 cache, but actually this doesn't happen often.
>
> Fwiw, some people were complaining about bad performance using
> hyperthreading. Turning it off in bios improved performance. Hence the
> paper was written to show them how to vastly improve performance when
> hyperthreading was turned on. You call it nerd stuff, and I still cannot
> figure out why?

Humm... I can see it know. Bonita works for Intel and received the
complaints... Bonita says shut up you stupid nerds! Humm... ;^o

Re: Sieve of Erastosthenes optimized to the max

<undpp4$117ni$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3036&group=comp.lang.c%2B%2B#3036

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sun, 7 Jan 2024 10:10:02 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <undpp4$117ni$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umldni$n9ob$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
<20240106000249.177@kylheku.com>
<unb6jc$i4of$1@raubtier-asyl.eternal-september.org>
<uncfue$ojf6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 7 Jan 2024 09:09:56 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="77ae73ed68b84f6823b0c2592a6a5858";
logging-data="1089266"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rRGJYatRETecMoOf1w2Np6B6TGHHkZBo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:3TRfoq1WGaHj9PLrDwWrKNX10J8=
Content-Language: de-DE
In-Reply-To: <uncfue$ojf6$1@dont-email.me>
 by: Bonita Montero - Sun, 7 Jan 2024 09:10 UTC

Am 06.01.2024 um 22:15 schrieb Chris M. Thomasson:

> Fwiw, some people were complaining about bad performance using
> hyperthreading. Turning it off in bios improved performance.
> Hence the paper was written to show them how to vastly improve
> performance when hyperthreading was turned on. You call it nerd
> stuff, and I still cannot figure out why?

We were talking about mutual cache flushing and you don't kow
that this was the issue with switching of hyperthreading.

Re: Sieve of Erastosthenes optimized to the max

<undq2c$117ni$2@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3037&group=comp.lang.c%2B%2B#3037

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sun, 7 Jan 2024 10:14:58 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <undq2c$117ni$2@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
<20240106000249.177@kylheku.com>
<unb6jc$i4of$1@raubtier-asyl.eternal-september.org>
<uncfue$ojf6$1@dont-email.me> <uncg5t$ojf6$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 7 Jan 2024 09:14:52 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="77ae73ed68b84f6823b0c2592a6a5858";
logging-data="1089266"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lGzjoIrWhnKOpHNJyTgnoBon47opTw+U="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:vAQIoacsc7EBcKGPmi+nSDqCsGM=
Content-Language: de-DE
In-Reply-To: <uncg5t$ojf6$2@dont-email.me>
 by: Bonita Montero - Sun, 7 Jan 2024 09:14 UTC

Am 06.01.2024 um 22:19 schrieb Chris M. Thomasson:

> Humm... I can see it know. Bonita works for Intel and received the
> complaints... Bonita says shut up you stupid nerds! Humm... ;^o

Intel made a number of bad decisions with the Pentium 4 that the
architecture was dropped and replaced with a descendant of Pentium
3, whose descendants are still in current Intel CPUs today. In this
respect, not only was the architecture bad, but also the documenta-
tion, because it is certainly very rare that moving the stack of a
thread when threads are running synchronously is of any use.

Re: Sieve of Erastosthenes optimized to the max

<unf2ip$16tqc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3038&group=comp.lang.c%2B%2B#3038

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Sun, 7 Jan 2024 12:46:17 -0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <unf2ip$16tqc$1@dont-email.me>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umljmb$nrkt$1@dont-email.me>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
<20240106000249.177@kylheku.com>
<unb6jc$i4of$1@raubtier-asyl.eternal-september.org>
<uncfue$ojf6$1@dont-email.me>
<undpp4$117ni$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 7 Jan 2024 20:46:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b85d9a958e6a41c1fc81f9905c7e803e";
logging-data="1275724"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NOHLnRSxz/sx6kthb5nRWzlndy4mfZ68="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dSM6X0TehHj2shfTqMDdV+mJoSw=
Content-Language: en-US
In-Reply-To: <undpp4$117ni$1@raubtier-asyl.eternal-september.org>
 by: Chris M. Thomasson - Sun, 7 Jan 2024 20:46 UTC

On 1/7/2024 1:10 AM, Bonita Montero wrote:
> Am 06.01.2024 um 22:15 schrieb Chris M. Thomasson:
>
>> Fwiw, some people were complaining about bad performance using
>> hyperthreading. Turning it off in bios improved performance.
>> Hence the  paper was written to show them how to vastly improve
>> performance when  hyperthreading was turned on. You call it nerd
>> stuff, and I still cannot figure out why?
>
> We were talking about mutual cache flushing and you don't kow
> that this was the issue with switching of hyperthreading.
>
>

I know that they had a problem and the provided workaround from Intel
really did help out. I find it amusing that you are trying to tell me
that this is all nerd stuff, as if it does not mean anything. Oh well.

Re: Sieve of Erastosthenes optimized to the max

<ung2bt$1eihc$1@raubtier-asyl.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3039&group=comp.lang.c%2B%2B#3039

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c++
Subject: Re: Sieve of Erastosthenes optimized to the max
Date: Mon, 8 Jan 2024 06:48:45 +0100
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <ung2bt$1eihc$1@raubtier-asyl.eternal-september.org>
References: <ul41d4$2koct$1@raubtier-asyl.eternal-september.org>
<umm582$pqb4$1@raubtier-asyl.eternal-september.org>
<20231229092738.13@kylheku.com>
<umo79t$165i5$2@raubtier-asyl.eternal-september.org>
<umpspm$1cphn$1@dont-email.me>
<umqvhh$1kvj6$1@raubtier-asyl.eternal-september.org>
<umsfrt$1qvlo$1@dont-email.me>
<umtm2j$2308v$1@raubtier-asyl.eternal-september.org>
<umtnhl$234ro$1@dont-email.me>
<umudmb$27da9$2@raubtier-asyl.eternal-september.org>
<umvi6u$2c9ue$1@dont-email.me>
<un0q3n$2ks6a$1@raubtier-asyl.eternal-september.org>
<un1l6g$2q1iv$1@dont-email.me>
<un2sel$33tna$1@raubtier-asyl.eternal-september.org>
<un4jos$3ba8u$1@dont-email.me>
<un594t$3hn5o$1@raubtier-asyl.eternal-september.org>
<unagvf$ft9g$1@dont-email.me>
<unaus6$h9l0$1@raubtier-asyl.eternal-september.org>
<20240106000249.177@kylheku.com>
<unb6jc$i4of$1@raubtier-asyl.eternal-september.org>
<uncfue$ojf6$1@dont-email.me>
<undpp4$117ni$1@raubtier-asyl.eternal-september.org>
<unf2ip$16tqc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 8 Jan 2024 05:48:45 -0000 (UTC)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="bbdc2c305f8e0b1b2e2e8155ca243180";
logging-data="1526316"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6MJ7kxxhICElhWieNmQoeI7r4hIyMguw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:voEHYj2GOtDVEU8mESY4YFwxwnc=
In-Reply-To: <unf2ip$16tqc$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Mon, 8 Jan 2024 05:48 UTC

Am 07.01.2024 um 21:46 schrieb Chris M. Thomasson:

> I know that they had a problem and the provided workaround from Intel
> really did help out. ...

Absolutely not, not with four way associativity.


devel / comp.lang.c++ / Re: Sieve of Erastosthenes optimized to the max

Pages:123456
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor