Results 1 to 2 of 2
Hello,
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.
...
- 04-30-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 1
Disable cache memory
Hello,
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,
em2009
- 04-30-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,496
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!


Reply With Quote
