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,
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.