Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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