I am trying to generate various types of data intensity on bus on a multiprocessor environment. Basically I need two patterns - almost negligible traffic on bus and very high traffic on bus. Initially I was thinking about accessing registers and not writing them back to cache/main memory to generate a low bus traffic. But I am not very sure about the idea. Besides I am doing the coding part in Java.
Any hints how to do this?
Architecture: x86_64
EDIT: I have the following code snippet.
mutex.lock();
try{
// Generate Bus traffic
}
finally{
mutex.unlock();
}
For each thread, I am trying to generate the traffic in the critical section.