Jump to content

Clearing CPU cache L1, 2 and 3

I heard it can be done (clearing out CPU cache).  Like memdump or something.  How does one zero out the cpu's cache L1, 2 and 3?  It's static memory (SRAM) to be cleared.  Thanks

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Chlyde01 said:

I heard it can be done (clearing out CPU cache).  Like memdump or something.  How does one zero out the cpu's cache L1, 2 and 3?  It's static memory (SRAM) to be cleared.  Thanks

Why do you need to do so? Anyhow, if you want to clear the data cache, just write a program with a large enough array full of zeroes and loop over it without any optimizations.

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
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

×