cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

uncore-memory.json (9971B)


      1[
      2    {
      3        "BriefDescription": "read requests to memory controller. Derived from unc_m_cas_count.rd",
      4        "Counter": "0,1,2,3",
      5        "EventCode": "0x4",
      6        "EventName": "LLC_MISSES.MEM_READ",
      7        "PerPkg": "1",
      8        "ScaleUnit": "64Bytes",
      9        "UMask": "0x3",
     10        "Unit": "iMC"
     11    },
     12    {
     13        "BriefDescription": "read requests to memory controller",
     14        "Counter": "0,1,2,3",
     15        "EventCode": "0x4",
     16        "EventName": "UNC_M_CAS_COUNT.RD",
     17        "PerPkg": "1",
     18        "ScaleUnit": "64Bytes",
     19        "UMask": "0x3",
     20        "Unit": "iMC"
     21    },
     22    {
     23        "BriefDescription": "write requests to memory controller. Derived from unc_m_cas_count.wr",
     24        "Counter": "0,1,2,3",
     25        "EventCode": "0x4",
     26        "EventName": "LLC_MISSES.MEM_WRITE",
     27        "PerPkg": "1",
     28        "ScaleUnit": "64Bytes",
     29        "UMask": "0xC",
     30        "Unit": "iMC"
     31    },
     32    {
     33        "BriefDescription": "write requests to memory controller",
     34        "Counter": "0,1,2,3",
     35        "EventCode": "0x4",
     36        "EventName": "UNC_M_CAS_COUNT.WR",
     37        "PerPkg": "1",
     38        "ScaleUnit": "64Bytes",
     39        "UMask": "0xC",
     40        "Unit": "iMC"
     41    },
     42    {
     43        "BriefDescription": "Memory controller clock ticks",
     44        "Counter": "0,1,2,3",
     45        "EventName": "UNC_M_CLOCKTICKS",
     46        "PerPkg": "1",
     47        "Unit": "iMC"
     48    },
     49    {
     50        "BriefDescription": "Cycles where DRAM ranks are in power down (CKE) mode",
     51        "Counter": "0,1,2,3",
     52        "EventCode": "0x85",
     53        "EventName": "UNC_M_POWER_CHANNEL_PPD",
     54        "MetricExpr": "(UNC_M_POWER_CHANNEL_PPD / UNC_M_CLOCKTICKS) * 100.",
     55        "MetricName": "power_channel_ppd %",
     56        "PerPkg": "1",
     57        "Unit": "iMC"
     58    },
     59    {
     60        "BriefDescription": "Cycles Memory is in self refresh power mode",
     61        "Counter": "0,1,2,3",
     62        "EventCode": "0x43",
     63        "EventName": "UNC_M_POWER_SELF_REFRESH",
     64        "MetricExpr": "(UNC_M_POWER_SELF_REFRESH / UNC_M_CLOCKTICKS) * 100.",
     65        "MetricName": "power_self_refresh %",
     66        "PerPkg": "1",
     67        "Unit": "iMC"
     68    },
     69    {
     70        "BriefDescription": "Pre-charges due to page misses",
     71        "Counter": "0,1,2,3",
     72        "EventCode": "0x2",
     73        "EventName": "UNC_M_PRE_COUNT.PAGE_MISS",
     74        "PerPkg": "1",
     75        "UMask": "0x1",
     76        "Unit": "iMC"
     77    },
     78    {
     79        "BriefDescription": "Pre-charge for reads",
     80        "Counter": "0,1,2,3",
     81        "EventCode": "0x2",
     82        "EventName": "UNC_M_PRE_COUNT.RD",
     83        "PerPkg": "1",
     84        "UMask": "0x4",
     85        "Unit": "iMC"
     86    },
     87    {
     88        "BriefDescription": "DRAM Page Activate commands sent due to a write request",
     89        "Counter": "0,1,2,3",
     90        "EventCode": "0x1",
     91        "EventName": "UNC_M_ACT_COUNT.WR",
     92        "PerPkg": "1",
     93        "PublicDescription": "Counts DRAM Page Activate commands sent on this channel due to a write request to the iMC (Memory Controller).  Activate commands are issued to open up a page on the DRAM devices so that it can be read or written to with a CAS (Column Access Select) command.",
     94        "UMask": "0x2",
     95        "Unit": "iMC"
     96    },
     97    {
     98        "BriefDescription": "All DRAM CAS Commands issued",
     99        "Counter": "0,1,2,3",
    100        "EventCode": "0x4",
    101        "EventName": "UNC_M_CAS_COUNT.ALL",
    102        "PerPkg": "1",
    103        "PublicDescription": "Counts all CAS (Column Address Select) commands issued to DRAM per memory channel.  CAS commands are issued to specify the address to read or write on DRAM, so this event increments for every read and write. This event counts whether AutoPrecharge (which closes the DRAM Page automatically after a read/write) is enabled or not.",
    104        "UMask": "0xF",
    105        "Unit": "iMC"
    106    },
    107    {
    108        "BriefDescription": "All DRAM Read CAS Commands issued (does not include underfills)",
    109        "Counter": "0,1,2,3",
    110        "EventCode": "0x4",
    111        "EventName": "UNC_M_CAS_COUNT.RD_REG",
    112        "PerPkg": "1",
    113        "PublicDescription": "Counts CAS (Column Access Select) regular read commands issued to DRAM on a per channel basis.  CAS commands are issued to specify the address to read or write on DRAM, and this event increments for every regular read.  This event only counts regular reads and does not includes underfill reads due to partial write requests.  This event counts whether AutoPrecharge (which closes the DRAM Page automatically after a read/write)  is enabled or not.",
    114        "UMask": "0x1",
    115        "Unit": "iMC"
    116    },
    117    {
    118        "BriefDescription": "DRAM Underfill Read CAS Commands issued",
    119        "Counter": "0,1,2,3",
    120        "EventCode": "0x4",
    121        "EventName": "UNC_M_CAS_COUNT.RD_UNDERFILL",
    122        "PerPkg": "1",
    123        "PublicDescription": "Counts CAS (Column Access Select) underfill read commands issued to DRAM due to a partial write, on a per channel basis.  CAS commands are issued to specify the address to read or write on DRAM, and this command counts underfill reads.  Partial writes must be completed by first reading in the underfill from DRAM and then merging in the partial write data before writing the full line back to DRAM. This event will generally count about the same as the number of partial writes, but may be slightly less because of partials hitting in the WPQ (due to a previous write request).",
    124        "UMask": "0x2",
    125        "Unit": "iMC"
    126    },
    127    {
    128        "BriefDescription": "DRAM CAS (Column Address Strobe) Commands.; DRAM WR_CAS (w/ and w/out auto-pre) in Write Major Mode",
    129        "Counter": "0,1,2,3",
    130        "EventCode": "0x4",
    131        "EventName": "UNC_M_CAS_COUNT.WR_WMM",
    132        "PerPkg": "1",
    133        "PublicDescription": "Counts the total number or DRAM Write CAS commands issued on this channel while in Write-Major-Mode.",
    134        "UMask": "0x4",
    135        "Unit": "iMC"
    136    },
    137    {
    138        "BriefDescription": "Read Pending Queue Allocations",
    139        "Counter": "0,1,2,3",
    140        "EventCode": "0x10",
    141        "EventName": "UNC_M_RPQ_INSERTS",
    142        "PerPkg": "1",
    143        "PublicDescription": "Counts the number of read requests allocated into the Read Pending Queue (RPQ).  This queue is used to schedule reads out to the memory controller and to track the requests.  Requests allocate into the RPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the CHA to the iMC.  The requests deallocate after the read CAS command has been issued to DRAM.  This event counts both Isochronous and non-Isochronous requests which were issued to the RPQ.",
    144        "Unit": "iMC"
    145    },
    146    {
    147        "BriefDescription": "Read Pending Queue Occupancy",
    148        "Counter": "0,1,2,3",
    149        "EventCode": "0x80",
    150        "EventName": "UNC_M_RPQ_OCCUPANCY",
    151        "PerPkg": "1",
    152        "PublicDescription": "Counts the number of entries in the Read Pending Queue (RPQ) at each cycle.  This can then be used to calculate both the average occupancy of the queue (in conjunction with the number of cycles not empty) and the average latency in the queue (in conjunction with the number of allocations).  The RPQ is used to schedule reads out to the memory controller and to track the requests.  Requests allocate into the RPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the CHA to the iMC. They deallocate from the RPQ after the CAS command has been issued to memory.",
    153        "Unit": "iMC"
    154    },
    155    {
    156        "BriefDescription": "Write Pending Queue Allocations",
    157        "Counter": "0,1,2,3",
    158        "EventCode": "0x20",
    159        "EventName": "UNC_M_WPQ_INSERTS",
    160        "PerPkg": "1",
    161        "PublicDescription": "Counts the number of writes requests allocated into the Write Pending Queue (WPQ).  The WPQ is used to schedule writes out to the memory controller and to track the requests.  Requests allocate into the WPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the CHA to the iMC (Memory Controller).  The write requests deallocate after being issued to DRAM.  Write requests themselves are able to complete (from the perspective of the rest of the system) as soon they have 'posted' to the iMC.",
    162        "Unit": "iMC"
    163    },
    164    {
    165        "BriefDescription": "Write Pending Queue Occupancy",
    166        "Counter": "0,1,2,3",
    167        "EventCode": "0x81",
    168        "EventName": "UNC_M_WPQ_OCCUPANCY",
    169        "PerPkg": "1",
    170        "PublicDescription": "Counts the number of entries in the Write Pending Queue (WPQ) at each cycle.  This can then be used to calculate both the average queue occupancy (in conjunction with the number of cycles not empty) and the average latency (in conjunction with the number of allocations).  The WPQ is used to schedule writes out to the memory controller and to track the requests.  Requests allocate into the WPQ soon after they enter the memory controller, and need credits for an entry in this buffer before being sent from the CHA to the iMC (memory controller).  They deallocate after being issued to DRAM.  Write requests themselves are able to complete (from the perspective of the rest of the system) as soon they have 'posted' to the iMC.  This is not to be confused with actually performing the write to DRAM.  Therefore, the average latency for this queue is actually not useful for deconstruction intermediate write latencies.  So, we provide filtering based on if the request has posted or not.  By using the 'not posted' filter, we can track how long writes spent in the iMC before completions were sent to the HA.  The 'posted' filter, on the other hand, provides information about how much queueing is actually happenning in the iMC for writes before they are actually issued to memory.  High average occupancies will generally coincide with high write major mode counts. Is there a filter of sorts???",
    171        "Unit": "iMC"
    172    }
    173]