Thread (21 messages) 21 messages, 8 authors, 2013-03-04

How to measure the RAM read/write performance

From: Gaurav Jain <hidden>
Date: 2013-02-26 12:06:41

The mechanism to disable the L1/L2 memory caches of the CPU will depend on
the processor architecture itself. This can be possibly be done at kernel
boot-time or more preferably, in your case, through a kernel module.

For Intel x86, the kernel module would look something like following: (The
key is setting bit 30 of the control register cr0)

mov eax,cr0
or eax, 40000000H ;set bit 30 without clearing the others
mov cr0,eax

Reference:
http://stackoverflow.com/questions/1108485/disable-l2-l1-caches
http://dirac.org/linux/writing/lkmpg/2.6/lkmpg-2.6.0.html

~ Gaurav

On Tue, Feb 26, 2013 at 12:31 PM, sandeep kumar
[off-list ref]wrote:
Hi All
In performance benchmark tools, When we profile read/write timings mostly,
those read/writes are done to cache only.

I want to measure my DDR(RAM chip) performance.
So i want to make sure, every read/write should happen to DDR RAM chip
only.

How can i achieve this...Any ideas/suggestions...?

--
With regards,
Sandeep Kumar Anantapalli,

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- 
Gaurav Jain
Associate Software Engineer
VxVM Escalations Team, SAMG
Symantec Software India Pvt. Ltd.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130226/393ac4b9/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help