[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


>but chud branch predictor, what if-
>it won't
>>
File: chuddy.png (276 KB, 750x1000)
276 KB
276 KB PNG
>the loop... has ended...
>>
best thread on 4chan right now and it's not even close
>>
i686 was a mistake
>>
Billions must Die
>>
>>108599744
Billions must execute instruction #23784
>>
you maybe have read about zen amp
>>
>>108599109
>turn out it does
THE NORTH BRIDGE HAS FALLEN BILLIONS MUST BUY BULLDOZER
>>
I will make you cache miss and refill your pipeline
>>
>>108599109
>context switch
Billion cycles must die
>>
The voltage has fallen, billions must shut down
>>
File: 17375159400163.png (48 KB, 360x360)
48 KB
48 KB PNG
>s[i] == '\0'
>>
>>108599810
I miss my caches so much, bros
>>
>hey chud branch predictor, what is at this memory address I don't have access to?
>billions must read
>>
>the pipeline has fallen
>billions must flush
>>
File: spectre.png (136 KB, 2048x1621)
136 KB
136 KB PNG
>but chud branch predictor, you're accessing memory at an address that's a function of privileged data without bound checking!
>If something happens, you'll load a specific byte to cache which the current thread can extract via a timing attack, inferring the contents of the privileged memory!
>>
kek
>>
File: 1743628183976710.jpg (105 KB, 998x802)
105 KB
105 KB JPG
>>108599109
The Linux kernel code is full of these
if (unlikely(ptr))
return 0;
>>
>>108599109
That's literally the ryzen platform.
There's a mini neural network chud that decides it
>>
>>108601534
Good self-modifying code doesn’t need a fucking branch predictor.
Do likewise, gents.
>>
>>108599109
nothing ever jumps forward
>>
mitigations=auto nosmt=force memtest=4
>>
>>108601550
>self modifying code
>*incessantly invalidates your instruction cache*
what do?
>>
>>108601622
What? just run as it is on the cache, it's roughly the same shit so it's no problem!
>>
mutts won, humans lost
>>
>>108601730
If you use self modifying code to skip branches, then I assume you mean removing branches from the machine code in memory, right?
The problem is that this invalidates the instruction cache line for the branch, which will cause a far worse stall than a mispredicted branch.
If you determine at runtime that your code always or never takes a branch, then it's probably marginally better to pay the stall penalty once, rather than use up space in the branch predictor.
If your branch is sometimes taken, then it's basically never worth it to modify the instruction on that condition. The branch predictor will essentially do that for you in a much faster way.
>>
>>108601897
I wasnt making a that smart post, just a "stupid CPU execute old version of code" deal that fucks with everything.
>>
>>108601622
You backpatch at least 64 bytes behind if you’re worried about your precious cache line.
> my code fits in a cache line
Good, but unroll the first iteration of it. The first iteration patches the next before the prefetch, and the subsequent iteration(s) patch the first or previous unrolled iteration.
>>
File: 1775926991428056.jpg (11 KB, 242x251)
11 KB
11 KB JPG
>>108600155
Just finished modding some extra L1 onto my rig, taking my girl out to celebrate. Now my shit is SO cache
>>
Where is the optimistic predictor that does a IT'S HAPPENING every time
>>
>>108604460
>The Altman module
>>
>>108606171
kek
>>
File: 1775862879889090.jpg (176 KB, 1290x1285)
176 KB
176 KB JPG
>>108599109
>Branch predictor chad trying to create certainty in an uncertain future, succeeding 99% of the time
>>
File: 1763983553179346.jpg (2.85 MB, 3416x3376)
2.85 MB
2.85 MB JPG
>>108599810
The pipeline has stalled...
>>
>>108608859
>0xA: IRQL_not_less_or_equal
>>
>>108599109
Incel Chud Ultra 1488K
>>
>>108602115
Lol
>>
good thread
>>
>>108602115
kek. this thread is gold thanks OP
>>
File: billions_must_fly.png (161 KB, 354x358)
161 KB
161 KB PNG
>>108607644
He just has great pattern recognition.
>>
>>108602115
Your girl is a pornstar
>>
File: IMG_0620.jpg (41 KB, 588x881)
41 KB
41 KB JPG
>>108607644
Cache is getting warm bros
>>
>>108599109
i laugh every time i see this
>>
>>108599109
kek good thread
>>
>>108599109
Keyed.
>>
File: 1775944940836194.gif (2.36 MB, 480x480)
2.36 MB
2.36 MB GIF
open the port. now.
>>
File: 1770650800708598.png (371 KB, 611x2150)
371 KB
371 KB PNG
>>108599109
op from original thread here. nice to see that this joke is still funny to some people
>>
>>108599603
on god we don't care about this boomer type of humor unc
>>
File: chud time.jpg (244 KB, 1476x1472)
244 KB
244 KB JPG
BILLIONS of instructions must execute.

Per second.

Total Instruction Execution
>>
>>108616251
go back to moping about the zoomettes drunk on unc cock, zoomer
>>
File: giga_chad.jpg (59 KB, 700x815)
59 KB
59 KB JPG
Megabytes?
>>
File: 61DzCZUwryL.jpg (79 KB, 1000x801)
79 KB
79 KB JPG
>>108599109
0x90 ever happens
>>
kek



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.