• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

How BIOS test the cache?

Bendd

New Member
Joined
Aug 26, 2022
Messages
6 (0.01/day)
I have read that the BIOS tests cache memory in addition to RAM during Power On Self Test, but I didn't find out anywhere how the cache is tested. Is it the same as ram?

How does it the AMI BIOS, alternatively, other BIOSes?
 
Joined
Jul 25, 2006
Messages
13,651 (2.01/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 32GB (4 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Logitech M190
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
I have read that the BIOS tests cache memory in addition to RAM during Power On Self Test
Where did you read that? Got a link?

I don't believe it.

And which cache? There are many in a computer.

Now there are several caches integrated with some CPUs. These are typically designated as L1, L2 and L3 for Level 1, etc. And the CPU is tested during the BIOS POST. But to my knowledge the integrated caches are not tested in addition to the CPUs themselves.
 

Bendd

New Member
Joined
Aug 26, 2022
Messages
6 (0.01/day)
I dont understand, why wouldn't the integrated caches be tested?

Here is a link to wikipedia, in the table it says that 11 beeps indicate a fault in the L2 cache. American Megatrends - Wikipedia

Post from another forum:

Cache memory holds a copy of the most recently-read RAM addresses, enabling the processor to access the same information again without fetching it from main memory. Modern processors have at least two kinds of memory cache, Level 1 (L1) and Level 2 (L2) cache. L1 cache is built into the processor die. L2 cache was originally found on the motherboard, but later became part of slot-based processor assemblies and is now part of the CPU itself. L2 cache is 128KB to 512KB in size, much larger than L1 cache......so When the processor needs information, it checks L1 cache, then L2 cache. It goes to main memory only if neither cache holds the desired information. Because L2 cache holds a large number of RAM addresses, an L2 cache failure is serious. It corrupts data, meaning that the CPU can no longer access memory reliably unless L2 cache is disabled. Disabling L2 cache causes a huge slowdown in performance. Here are some of the ways that an L2 cache error can be reported. Systems with the AMI BIOS use 11 short beeps to report an L2 cache error detected at boot time....
 
Joined
Jan 5, 2006
Messages
18,584 (2.66/day)
System Name AlderLake
Processor Intel i7 12700K P-Cores @ 5Ghz
Motherboard Gigabyte Z690 Aorus Master
Cooling Noctua NH-U12A 2 fans + Thermal Grizzly Kryonaut Extreme + 5 case fans
Memory 32GB DDR5 Corsair Dominator Platinum RGB 6000MT/s CL36
Video Card(s) MSI RTX 2070 Super Gaming X Trio
Storage Samsung 980 Pro 1TB + 970 Evo 500GB + 850 Pro 512GB + 860 Evo 1TB x2
Display(s) 23.8" Dell S2417DG 165Hz G-Sync 1440p
Case Be quiet! Silent Base 600 - Window
Audio Device(s) Panasonic SA-PMX94 / Realtek onboard + B&O speaker system / Harman Kardon Go + Play / Logitech G533
Power Supply Seasonic Focus Plus Gold 750W
Mouse Logitech MX Anywhere 2 Laser wireless
Keyboard RAPOO E9270P Black 5GHz wireless
Software Windows 11
Benchmark Scores Cinebench R23 (Single Core) 1936 @ stock Cinebench R23 (Multi Core) 23006 @ stock
Post from another forum:

Cache memory holds a copy of the most recently-read RAM addresses, enabling the processor to access the same information again without fetching it from main memory. Modern processors have at least two kinds of memory cache, Level 1 (L1) and Level 2 (L2) cache. L1 cache is built into the processor die. L2 cache was originally found on the motherboard, but later became part of slot-based processor assemblies and is now part of the CPU itself. L2 cache is 128KB to 512KB in size, much larger than L1 cache......so When the processor needs information, it checks L1 cache, then L2 cache. It goes to main memory only if neither cache holds the desired information. Because L2 cache holds a large number of RAM addresses, an L2 cache failure is serious. It corrupts data, meaning that the CPU can no longer access memory reliably unless L2 cache is disabled. Disabling L2 cache causes a huge slowdown in performance. Here are some of the ways that an L2 cache error can be reported. Systems with the AMI BIOS use 11 short beeps to report an L2 cache error detected at boot time....

Quite old post probably, since they don't even mention L3 cache which most modern CPU's have now as well...
 
Joined
Jul 25, 2006
Messages
13,651 (2.01/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 32GB (4 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Logitech M190
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
I dont understand, why wouldn't the integrated caches be tested?
That was my point. I can only assume it is just testing to see if the CPU is working properly and since L2 is part of the CPU, that function is being tested - not because it is a cache, but because it is part of the CPU.
 

Count von Schwalbe

Nocturnus Moderatus
Staff member
Joined
Nov 15, 2021
Messages
3,291 (2.78/day)
Location
Knoxville, TN, USA
System Name Work Computer | Unfinished Computer
Processor Core i7-6700 | Ryzen 5 5600X
Motherboard Dell Q170 | Gigabyte Aorus Elite Wi-Fi
Cooling A fan? | Truly Custom Loop
Memory 4x4GB Crucial 2133 C17 | 4x8GB Corsair Vengeance RGB 3600 C26
Video Card(s) Dell Radeon R7 450 | RTX 2080 Ti FE
Storage Crucial BX500 2TB | TBD
Display(s) 3x LG QHD 32" GSM5B96 | TBD
Case Dell | Heavily Modified Phanteks P400
Power Supply Dell TFX Non-standard | EVGA BQ 650W
Mouse Monster No-Name $7 Gaming Mouse| TBD
Is it safe from the point of view of data remanence?
Remeamence? Cache is volatile - just like RAM but possibly more so. No power - no data.

Also, I don't think modern CPU's can disable cache nowadays. (IIRC)
 

Bendd

New Member
Joined
Aug 26, 2022
Messages
6 (0.01/day)
I know it's volatile, but I was wondering if a certain part of the cache content could remain after a cold boot, for example part of key.
 
Joined
May 12, 2017
Messages
2,207 (0.78/day)
Not sure about modern CPUs but you can test CPU cache on it's own. Overclocking a CPU with higher than recommend voltage risk damaging the CPU cache. Most of you will know this as "CPU has degraded".

Testing here has shown faults in CPU cache can be false as your own main memory can dump faults into the cache, making it look like your cache is faulty. But HOLD ON, it also works the other way round too.
If the cache is faulty it will dump the fault in the main memory, in other words they tied & will show fault(s) in the same column address.

NOTE: Genuine real faults in cache not only effects overclocking, it also effect's "undervolt". This is where the faults are detected. In normal use "standard default settings" fault do not show-up..

When binning my CPUs it's the cache that i'm testing. ..CPU is overclocked but the voltage is lowered way below stock & what i'm look for is when the fault appears at a address location, but normally at some point it will wipe-out a complete column, rendering it completely useless..

I can post screenshot, it will be mostly clear picture but my TV at this time is sitting on a chair. ..If pushed I can post a picture of fault(s) in cache only where user's have damage the CPU cache due to high voltage overclocking. Be aware I only have old CPUs here & my current "Hardware Memory Tester" only go's up-to DDR3.
 
Last edited:

Count von Schwalbe

Nocturnus Moderatus
Staff member
Joined
Nov 15, 2021
Messages
3,291 (2.78/day)
Location
Knoxville, TN, USA
System Name Work Computer | Unfinished Computer
Processor Core i7-6700 | Ryzen 5 5600X
Motherboard Dell Q170 | Gigabyte Aorus Elite Wi-Fi
Cooling A fan? | Truly Custom Loop
Memory 4x4GB Crucial 2133 C17 | 4x8GB Corsair Vengeance RGB 3600 C26
Video Card(s) Dell Radeon R7 450 | RTX 2080 Ti FE
Storage Crucial BX500 2TB | TBD
Display(s) 3x LG QHD 32" GSM5B96 | TBD
Case Dell | Heavily Modified Phanteks P400
Power Supply Dell TFX Non-standard | EVGA BQ 650W
Mouse Monster No-Name $7 Gaming Mouse| TBD
I know it's volatile, but I was wondering if a certain part of the cache content could remain after a cold boot, for example part of key.
No more than the rest of the CPU. Registers, compute, cache, etc are all made of transistors.
 

Bendd

New Member
Joined
Aug 26, 2022
Messages
6 (0.01/day)
So what method is used to test the CPU cache during the BIOS POST test?
 
Joined
Aug 20, 2007
Messages
21,731 (3.40/day)
Location
Olympia, WA
System Name Pioneer
Processor Ryzen 9 9950X
Motherboard MSI MAG X670E Tomahawk Wifi
Cooling Noctua NH-D15 + A whole lotta Sunon, Phanteks and Corsair Maglev blower fans...
Memory 64GB (2x 32GB) G.Skill Flare X5 @ DDR5-6200 CL30
Video Card(s) XFX RX 7900 XTX Speedster Merc 310
Storage Intel 5800X Optane 800GB boot, +2x Crucial P5 Plus 2TB PCIe 4.0 NVMe SSDs
Display(s) 55" LG 55" B9 OLED 4K Display
Case Thermaltake Core X31
Audio Device(s) TOSLINK->Schiit Modi MB->Asgard 2 DAC Amp->AKG Pro K712 Headphones or HDMI->B9 OLED
Power Supply FSP Hydro Ti Pro 850W
Mouse Logitech G305 Lightspeed Wireless
Keyboard WASD Code v3 with Cherry Green keyswitches + PBT DS keycaps
Software Gentoo Linux x64 / Windows 11 Enterprise IoT 2024
So what method is used to test the CPU cache during the BIOS POST test?
Probably some variation of reading and writing a pattern to it. I doubt the exact details you want are even public knowledge, beyond that.
 

Bendd

New Member
Joined
Aug 26, 2022
Messages
6 (0.01/day)
As I read the internet a few days ago for this topic, I came across information somewhere: One line (block) is written from the ram to the cache, then the block is read from the cache to the ram, then the block is written to the cache and back to the ram. If the contents of the blocks are the same, it should be fine. I don't remember exactly what HW it was related to, but I guess it wasn't a classic PC, but something for the server, otherwise I would have kept the link.


However, this would imply that the entire cache will not be overwritten, if I understood correctly. But I can neither confirm nor deny it...

This could be the link:
101486-AC_System_Power-on_Self_Test_Manual_Aug89.pdf
 
Last edited:

newtekie1

Semi-Retired Folder
Joined
Nov 22, 2005
Messages
28,473 (4.06/day)
Location
Indiana, USA
Processor Intel Core i7 10850K@5.2GHz
Motherboard AsRock Z470 Taichi
Cooling Corsair H115i Pro w/ Noctua NF-A14 Fans
Memory 32GB DDR4-3600
Video Card(s) RTX 2070 Super
Storage 500GB SX8200 Pro + 8TB with 1TB SSD Cache
Display(s) Acer Nitro VG280K 4K 28"
Case Fractal Design Define S
Audio Device(s) Onboard is good enough for me
Power Supply eVGA SuperNOVA 1000w G3
Software Windows 10 Pro x64
So what method is used to test the CPU cache during the BIOS POST test?

Cache, at the end of the day, is just memory. It's tested the same way, it's just way quicker because cache memory is faster and there is a lot less of it.

Of course, most modern systems don't do a full memory check during POST anymore. It'd take far too long to do that on systems with 8GB+ of RAM.
 
Top