Measurement of Processors Performance report. In the experiment, a testing code was developed in C Programming Language. The design involved filling up each memory hierarchy level with data, then by noting down the time taken to access each level, the ban

Authors Avatar

Measurement of Processors Performance           

 


Table of Contents

Table of Figures

Introduction

In modern computers, the memory is always divided into multiple levels, which are structured into a memory hierarchy (Figure 1). In the memory hierarchy, each level is distinguished by the response time with the top-most level being the fastest. In most computers, this level is the processor registers which are often accessed in one CPU clock cycle. The next level is the Level 1 (L1) Cache, which is temporally and physically closest to the main processor. The third level is usually the Level 2 (L2) Cache and the forth level is the main memory [1]. We conducted an experiment to measure the data transfer rate between these memory levels and the results are presented and analyzed in this report.

Figure 1 Memory Hierarchy

In the experiment, a testing code was developed in C Programming Language. The design involved filling up each memory hierarchy level with data, then by noting down the time taken to access each level, the bandwidth can be calculated. For the caches, only sequential access was performed and measured, while for the main memory both sequential and random access were measured. The detailed experimental design is described in Section 3 and the results are represented in Section 4. Section 5 of the report analyses and discusses the results and conclusions are developed.

  1. Experiment Overview

  1. Theoretical Background

Computer’s memory is always structured into memory hierarchy in which each level is distinguished by the response time with the top-most level being the fastest. The memory hierarchy in most computer is:

Join now!

  • Processor registers – fastest possible access (usually 1 CPU cycle), only hundreds of bytes in size
  • Level 1 (L1) cache – often accessed in just a few cycles, usually tens of kilobytes
  • Level 2 (L2) cache – higher latency than L1 by 2× to 10×, often 512 KB or more
  • Level 3 (L3) cache – higher latency than L2, often 2048 KB or more
  • Main memory – may take hundreds of cycles, but can be multiple gigabytes. Access times may not be uniform, in the case of a NUMA machine. ...

This is a preview of the whole essay