Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Disable cache memory


    I'm working on an university practice and I need to disable both levels of cache memory in order to show the difference between a system with and without cache.

    In the kernel 2.6.10 I think that I've found an option for that purpose, but in the kernel 2.6.29-r1 I don't know where it is.

    Any suggestion to do it?

    Thanks and sorry for my english,

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Well, if the kernel call (ioctl) isn't available, you could write a kernel module that does. It would need an assembly instruction to tell the CPU to disable on-board cache, and if your motherboard has additional level-2 cache, you might need some other instruction (possibly an outp to an i/o port - I don't know for sure) to disable that. Anyway, Google is your friend. I'm sure you can find the information you need, and you can find the x86 CPU assembler instructions on Intel's web site.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts