GithubHelp home page GithubHelp logo

custom's Introduction

This repository contains two simple c programs written to observe
TLB behavior and the impact of huge pages on x86 processors.

Both the programs start with allocating two buffers of 1GB each
but references them in different manners.

sequential.c: Iterate over the buffers touching 1 byte from each.
              An iteration picks one buffer first and traverses it
              touching 1 byte at 4KB jumps before moving to the
              second buffer. Successive memory references are expected
              to be 4KB apart generating TLB pressure.

random.c:     Iterate over the buffers touching one byte from each.
              Unlike sequential, traverses both the buffers at the
	      same time. As a result, successive memory references
              are expected to be 1GB apart.


How to compile:
	run "make" to compile.
	"make clean" to clean.

How to run:
	Both the programs expect two arguments from the command line -
	1. Access mode
	2. The number of iterations to be performed.

Access Modes:
	This argument influences how the buffers will be accessed. Following
	modes are supported -
	0 - READ_ONLY - self-explanatory
	1 - WRITE_ONLY - self-explanatory
	2 - READ_WRITE - Every byte being touched is read first and then written.
	3 - WRITE_READ - Every byte being touched is written first and then read.

	Example run-
	./sequential 0 100000
	./random     1 100000

custom's People

Contributors

apanwariisc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.