I would like to enable or disable portion of ARM L2 's cache memory of raspberry PI. I am working on performance evaluation of raspberryPI by locking the cache memory of it. Please suggest me some ideas on this.

1 Answer 1


All you need to do is add the following to your /boot/config.txt file. Here is the source page.


disable_l2cache disable ARM access to GPU's L2 cache. Needs corresponding L2 disabled kernel. Default 0

But I think for this to actually work, you will need to compile a custom kernel. So replace your kernel.img with your custom one, which has the L2 cache disabled. Also have a look at berryboot which allows you to install different versions of the same Linux on your SD card.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.