Jump to content

Cache and Effect

Go to solution Solved by Bronzeman,

And L3 cache is faster than L2, and L2 is faster than L1.

 

It's the other way around, the lower the level the cache the closer to the cpu core it is and the faster it is.

 

Level 1 is by far the fastest and the difference in speed between level 2 and level 3 is not as significant as between lvl1 and lvl2.

 

It's memory which is far faster than RAM and reduces cpu idle time as it waits on data being retrieved from RAM and other slower media.

 

The affect it has depends on the program, however more is typically better.

 

CPU efficiency is greater with increased cache, modern CPUs have features such as prefetch to have required instructions loaded into the cache ahead of time ready for execution. It gets technical with the many implementations used by CPUs today. A great way of improving a cpu's efficiency is to improve the utilization of cache ensuring the CPU is constantly supplied with instructions.

What is CPU cache, (l2/l3), and what exactly changes, performance-wise when going from something like 2mb l2 cache to 16mb l2 cache?

 

G3258 V 860k (Spoiler: G3258 wins)

 

 

Spoiler

i7-4790K | MSI R9 390x | Cryorig H5 | MSI Z97 Gaming 7 Motherboard | G.Skill Sniper 8gbx2 1600mhz DDR3 | Corsair 300R | WD Green 2TB 2.5" 5400RPM drive | <p>Corsair RM750 | Logitech G602 | Corsair K95 RGB | Logitech Z313

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/
Share on other sites

Link to post
Share on other sites

It's basically super fast ram that's embedded into the CPU or whatever component your using and is designed to only be used for what the processor is doing right at that moment. L2 means level 2, L3 means level 3 etc.

 

At least that's how I understand it

 

 

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4394858
Share on other sites

Link to post
Share on other sites

It's basically super fast ram that's embedded into the CPU or whatever component your using and is designed to only be used for what the processor is doing right at that moment. L2 means level 2, L3 means level 3 etc.

 

At least that's how I understand it

And L3 cache is faster than L2, and L2 is faster than L1.

Laptop - Lenovo Y50   Keyboard - Corsair K95 RGB Cherry MX Brown   Mouse - Logitech G502 Proteus Core   Mousepad - Razer Firefly


 


Please read the LTT Code of Conduct before submitting a post

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4394899
Share on other sites

Link to post
Share on other sites

It's basically super fast ram that's embedded into the CPU or whatever component your using and is designed to only be used for what the processor is doing right at that moment. L2 means level 2, L3 means level 3 etc.

At least that's how I understand it

What is its effect on performance, though?

 

G3258 V 860k (Spoiler: G3258 wins)

 

 

Spoiler

i7-4790K | MSI R9 390x | Cryorig H5 | MSI Z97 Gaming 7 Motherboard | G.Skill Sniper 8gbx2 1600mhz DDR3 | Corsair 300R | WD Green 2TB 2.5" 5400RPM drive | <p>Corsair RM750 | Logitech G602 | Corsair K95 RGB | Logitech Z313

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4394913
Share on other sites

Link to post
Share on other sites

Does @Faceman know?

 

G3258 V 860k (Spoiler: G3258 wins)

 

 

Spoiler

i7-4790K | MSI R9 390x | Cryorig H5 | MSI Z97 Gaming 7 Motherboard | G.Skill Sniper 8gbx2 1600mhz DDR3 | Corsair 300R | WD Green 2TB 2.5" 5400RPM drive | <p>Corsair RM750 | Logitech G602 | Corsair K95 RGB | Logitech Z313

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4394949
Share on other sites

Link to post
Share on other sites

And L3 cache is faster than L2, and L2 is faster than L1.

 

It's the other way around, the lower the level the cache the closer to the cpu core it is and the faster it is.

 

Level 1 is by far the fastest and the difference in speed between level 2 and level 3 is not as significant as between lvl1 and lvl2.

 

It's memory which is far faster than RAM and reduces cpu idle time as it waits on data being retrieved from RAM and other slower media.

 

The affect it has depends on the program, however more is typically better.

 

CPU efficiency is greater with increased cache, modern CPUs have features such as prefetch to have required instructions loaded into the cache ahead of time ready for execution. It gets technical with the many implementations used by CPUs today. A great way of improving a cpu's efficiency is to improve the utilization of cache ensuring the CPU is constantly supplied with instructions.

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4395236
Share on other sites

Link to post
Share on other sites

It's the other way around, the lower the level the cache the closer to the cpu core it is and the faster it is.

 

Level 1 is by far the fastest and the difference in speed between level 2 and level 3 is not as significant as between lvl1 and lvl2.

 

It's memory which is far faster than RAM and reduces cpu idle time as it waits on data being retrieved from RAM and other slower media.

 

The affect it has depends on the program, however more is typically better.

 

CPU efficiency is greater with increased cache, modern CPUs have features such as prefetch to have required instructions loaded into the cache ahead of time ready for execution. It gets technical with the many implementations used by CPUs today. A great way of improving a cpu's efficiency is to improve the utilization of cache ensuring the CPU is constantly supplied with instructions.

perfect answer, 10/10

| CPU: Core i7-8700K @ 4.89ghz - 1.21v  Motherboard: Asus ROG STRIX Z370-E GAMING  CPU Cooler: Corsair H100i V2 |
| GPU: MSI RTX 3080Ti Ventus 3X OC  RAM: 32GB T-Force Delta RGB 3066mhz |
| Displays: Acer Predator XB270HU 1440p Gsync 144hz IPS Gaming monitor | Oculus Quest 3 VR

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4395247
Share on other sites

Link to post
Share on other sites

And L3 cache is faster than L2, and L2 is faster than L1.

Its the other way around: L1 is the fastest, L3 the slowest.

           .;ldkO0000Okdl;.                michael@SUSE-BlackBox
        .;d00xl:^''''''^:ok00d;.            OS: openSUSE 20260405
      .d00l'                'o00d.          Kernel: x86_64 Linux 6.19.11-1-default
    .d0K^'  Okxoc;:,.          ^O0d.        Uptime: 2d 21h 52m
   .OVVAK0kOKKKKKKKKKKOxo:,      lKO.       Packages: 6556
  ,0VVAKKKKKKKKKKKKK0P^,,,^dx:    ;00,      Shell: bash 5.3.9
 .OVVAKKKKKKKKKKKKKk'.oOPPb.'0k.   cKO.     Resolution: 3840x1080
 :KVAKKKKKKKKKKKKKK: kKx..dd lKd   'OK:     DE: KDE
 lKlKKKKKKKKKOx0KKKd ^0KKKO' kKKc   lKl     WM: KWin
 lKlKKKKKKKKKK;.;oOKx,..^..;kKKK0.  lKl     GTK Theme: Breeze-Dark [GTK2], Breeze [GTK3]
 :KAlKKKKKKKKK0o;...^cdxxOK0O/^^'  .0K:     Icon Theme: breeze-dark
  kKAVKKKKKKKKKKKK0x;,,......,;od  lKP      Disk: 13T / 22T (60%)
  '0KAVKKKKKKKKKKKKKKKKKK00KKOo^  c00'      CPU: AMD Ryzen 7 5800X3D 8-Core @ 16x 4.55295GHz
   'kKAVOxddxkOO00000Okxoc;''   .dKV'       GPU: AMD Radeon RX 6700 XT (radeonsi, navi22, ACO, DRM 3.64, 6.19.11-1-default)
     l0Ko.                    .c00l'        RAM: 13127MiB / 48094MiB
      'l0Kk:.              .;xK0l'          
         'lkK0xc;:,,,,:;odO0kl'             
             '^:ldxkkkkxdl:^'    

 

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4395248
Share on other sites

Link to post
Share on other sites

Adding to the already good answer, CPU cache is based on SRAM, or Static RAM, which is constructed from transistors. The main memory of a system is made up of DRAM, Dynamic RAM, which is constructed from capacitors.

 

SRAM trades cost and complexity for pure speed, while DRAM trades performance for low cost. That's why we use DRAM at all instead of using SRAM for everything. The latter would be ideal as L1 cache is 100x faster than main memory, but that isn't viable from a cost and engineering standpoint.

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4395309
Share on other sites

Link to post
Share on other sites

It's the other way around, the lower the level the cache the closer to the cpu core it is and the faster it is.

Level 1 is by far the fastest and the difference in speed between level 2 and level 3 is not as significant as between lvl1 and lvl2.

It's memory which is far faster than RAM and reduces cpu idle time as it waits on data being retrieved from RAM and other slower media.

The affect it has depends on the program, however more is typically better.

CPU efficiency is greater with increased cache, modern CPUs have features such as prefetch to have required instructions loaded into the cache ahead of time ready for execution. It gets technical with the many implementations used by CPUs today. A great way of improving a cpu's efficiency is to improve the utilization of cache ensuring the CPU is constantly supplied with instructions.

That is one damn fine answer.

 

G3258 V 860k (Spoiler: G3258 wins)

 

 

Spoiler

i7-4790K | MSI R9 390x | Cryorig H5 | MSI Z97 Gaming 7 Motherboard | G.Skill Sniper 8gbx2 1600mhz DDR3 | Corsair 300R | WD Green 2TB 2.5" 5400RPM drive | <p>Corsair RM750 | Logitech G602 | Corsair K95 RGB | Logitech Z313

Link to comment
https://linustechtips.com/topic/323394-cache-and-effect/#findComment-4395548
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×