Adventures in Hyperthreading - now with STEREO SOUND!!!

Поділитися
Вставка
  • Опубліковано 22 лип 2021
  • Support What's a Creel? on Patreon: / whatsacreel
    Office merch store: whats-a-creel-3.creator-sprin...
    FaceBook: / whatsacreel
    Re-upload with fixed audio! Thanks for letting me know all :)
    This video is in response to a question from a viewer. We explore hyperthreading and see how we can get the most out of it within our apps.
    Thanks all, have a good one :)
    Music:
    Mozart, W.A. Clarinet Concerto Mvt. 2 K. 622
    University Symphony Orchestra; Abraham Kaplan, conductor; William McColl, basset clarinet, using an instrument of his own construction.
    soniventorum.com/soniventorum...
    Background images from animations from HDRI Haven: hdrihaven.com/
    Agner Fog Instruction Tables:
    www.agner.org/optimize/instru...
    Software used to make this vid: Visual Studio 2019 Community: www.visualstudio.com/downloads/
    Blender: www.blender.org/
    Audacity: www.audacityteam.org/
    Davinci Resolve 16: www.blackmagicdesign.com/prod...
    OpenOffice: www.openoffice.org/
    Gimp: www.gimp.org/

КОМЕНТАРІ • 59

  • @plantwateringcitizen8787
    @plantwateringcitizen8787 2 роки тому +58

    The first upload counts as speculative execution ;)

    • @WhatsACreel
      @WhatsACreel  2 роки тому +15

      Ha! hopefully the branch predictor can listen to the audio before he uploads in the future :)

  • @PlayerClarinet
    @PlayerClarinet 2 роки тому +12

    Mozart Clarinet Concerto.
    Aussie content.
    Hyperthreading.
    Never thought I'd see all three in one video, but now I've died and gone to heaven.

  • @loli42
    @loli42 2 роки тому +22

    LOVE CREEL!!!

  • @SebastianSzkoda
    @SebastianSzkoda Рік тому +4

    Pointer chasing with some compute is where the HT shines. One of the threads stalls on the memory, then the other can do its compute part and vice versa. In general the pipeline stall is where the HT should help. Max benefit from of HT saw is 1.7x in very carefully thought and well written tree traversal. Compute part was almost equal to memory latency. Beautiful code.

  • @anilchandra617
    @anilchandra617 2 роки тому +6

    SMT = Simultaneous Multi Threading. Great video.

  • @TotalImmort7l
    @TotalImmort7l 2 роки тому +13

    This man is a legend!

  • @temdisponivel
    @temdisponivel 2 роки тому +7

    Missed u man. Glad to see you back!!

    • @WhatsACreel
      @WhatsACreel  2 роки тому +3

      Thanks mate, missed yall too :)

  • @8-P
    @8-P 2 роки тому +4

    Guess who's back
    Back again
    Creel's back
    Tell a friend
    Guess who's back, guess who's back
    Guess who's back, guess who's back
    Guess who's back, guess who's back
    Guess who's back

    • @activelow9297
      @activelow9297 2 роки тому +1

      Two kangaroos go round the outside, round the outside

  • @interested_in_everything
    @interested_in_everything 2 роки тому

    Great to see you back!

  • @aihtdikh
    @aihtdikh 2 роки тому

    Thanks, Creel! This is some great analysis. Always good to see your work.

  • @mohandeszalatan4576
    @mohandeszalatan4576 2 роки тому +1

    Great, informative, and easy to follow as always. Thank you Chris. Cheers ;)

  • @hariranormal5584
    @hariranormal5584 2 роки тому

    I love the video style, the backgrounds of some nice places, and text floating, something really unique never seen! :D

  • @GNARGNARHEAD
    @GNARGNARHEAD 2 роки тому

    I was just wondering about this yesterday, cheers

  • @Antagon666
    @Antagon666 2 роки тому

    Another super interesting video !

  • @fakesilver746
    @fakesilver746 2 роки тому

    i LOVE your videos man

  • @babciaprowadzacego3956
    @babciaprowadzacego3956 2 роки тому +1

    Been waiting for the next video :P Interesting stuff. Cheers from Poland

    • @WhatsACreel
      @WhatsACreel  2 роки тому +1

      Cheers from Oz my Polish friend :)

  • @diegonayalazo
    @diegonayalazo 2 роки тому

    Thanks Creel!

  • @Physwe
    @Physwe Рік тому

    Impeccable music taste ... A man of culture and ability at once!

  • @markmanning2921
    @markmanning2921 2 роки тому

    Any day you release a new video is a good day :)
    Oh! and I thought of another topic that might be interesting, The burrows wheeler transform might be interesting :)

  • @coder2k
    @coder2k 2 роки тому

    Great video! Thank you! :)

  • @axnaksjcknjas3395
    @axnaksjcknjas3395 2 роки тому

    Glad to see you back

  • @oresteszoupanos
    @oresteszoupanos 2 роки тому

    Crikey Creel! Great vid again :-)

  • @kcbsuiejd
    @kcbsuiejd 2 роки тому +3

    Nice Video, really illustrates the concept :)

    • @WhatsACreel
      @WhatsACreel  2 роки тому

      Cheers mate, it's certainly an interesting topic!

    • @kcbsuiejd
      @kcbsuiejd 2 роки тому

      @@WhatsACreel thanks for your work!

  • @Mozartenhimer
    @Mozartenhimer 2 роки тому +1

    I had assumed hyperthradong was only compensating for L1 misses, didn't know it could do this much!

  • @SamiulAlHossaini
    @SamiulAlHossaini 2 роки тому

    After long time !

  • @leonstok8940
    @leonstok8940 11 місяців тому

    It would be interesting if you would compare those two workloads fused together on the same thread and see if there are any benefits of manually changing code versus just spawning another thread and let hyperthreading do the rest of the work.

  • @TheExcellentVideoChannel
    @TheExcellentVideoChannel 2 роки тому

    Love the video mate! Answered questions that have been floating around in my head for quite sometime and generated another one. Does hyperthreading really halve the context switching ? I guess a better question is .. what resources does a hyperthread use to context switch and does each physical core have these in duplicate and can they run in parallel? Here's where my ignorance shows , isn't context switching just saving and loading the state of a cores registers to memory?

  • @gert-janvanderkamp3508
    @gert-janvanderkamp3508 2 роки тому

    Your Creelness, many thanks for taking this thourough expedition through the topic, needed a second to grock it all.
    So the takeaway would be unless you have mixed workloads of similar size, stay away from hyperthreading (6:51) But isn't this the CPU putting both these hyperthreads on the same cores? So effectively using only 2 cores instead of the 4 of the non-HT version? Can you tell from the task manager?

  • @mekafinchi
    @mekafinchi 2 роки тому +4

    I have a project where I want to see how well I can optimize it, and as part of that I'm parallelizing it. Now I'm really curious to see if writing integer and floating point versions of the same code and splitting the threads between them will see any performance increase. I'm especially interested because it's written in java (cause it derives from a CS assignment) - JIT is really powerful so I think it'll see enough native execution to benefit from stuff like this, but we'll see.

  • @cwbh10
    @cwbh10 2 роки тому +1

    Found the data presentation a bit confusing tbh, but still interesting

    • @WhatsACreel
      @WhatsACreel  2 роки тому +2

      Yes, I agree. I could have presented this better. Thanks for watching anywho, and cheers for the feedback :)

  • @realGeobor
    @realGeobor 2 роки тому +1

    What processor were these tests run on? I would think that if you have 8 full cores then there should be almost linear scaling in the mixed workload with OS scheduling because everything would have it's own core. If the processor is only maybe 4 cores then it makes sense that hyperthreading would be faster.

  • @nocturnalsea1640
    @nocturnalsea1640 2 роки тому

    Nice stereo boss

  • @alg3n320
    @alg3n320 2 роки тому

    ❤❤❤

  • @S3Kglitches
    @S3Kglitches 2 роки тому

    why does adding a 3rd hyperthread (thread #2) not increase work to 2.0 but only to 1.5?

  • @SquallSf
    @SquallSf Рік тому

    Is the source code for these test available?

  • @overloader7900
    @overloader7900 2 роки тому

    Gpu is hyperthreading, SIMD and multithreading, all in all my 1050ti can have 12k active threads at once

  • @theexplosionist2019
    @theexplosionist2019 2 роки тому +3

    You have zero control over the Windows scheduler unless you write a kernel driver to force it. Windows isn't designed for enthusiasts. I think a bootloader is worth the effort to cut out the Windows bloat and get better test results.

    • @WhatsACreel
      @WhatsACreel  2 роки тому +1

      Oh that's good to know! It doesn't seem to do much switching with priority 2, but it definitely doesn't stop it completely. Anywho, cheers for sharing mate, great info :)

  • @romanemul1
    @romanemul1 2 роки тому

    I though it will be without sound !

    • @SuperR167
      @SuperR167 2 роки тому

      original post only had left ear audio 😅

  • @saultube44
    @saultube44 Місяць тому

    Milliseconds -> ms
    /sarcasm

  • @B_dev
    @B_dev 2 роки тому

    y he say intel like hes a gated community connor bro