Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arodr967/virtual_memory_management

A system call written in C, to report on memory management statistics, and a counter-based clock page replacement algorithm.
https://github.com/arodr967/virtual_memory_management

algorithm linux-kernel memory-management memory-stats system-calls virtual-memory

Last synced: 4 days ago
JSON representation

A system call written in C, to report on memory management statistics, and a counter-based clock page replacement algorithm.

Awesome Lists containing this project

README

        

# Memory Management in Linux Kernel

The tester files for part 1 and 2 can be found in the `/test` directory.

## Part 1

#### Compile & Run

1. `gcc test_memstats.c -o memstats`
2. `./memstats`

## Part 2

#### Compile & Run

1. `gcc test_algorithms.c -o algo`
2. `./algo`

#### Trigger counter-based clock page replacement algorithm

You can easily trigger on and off the algorithm by updating the `IS_COUNTER_BASED_CLOCK` variable defined in `vmscan.c`.

> NOTE: This would require you to recompile and reboot the kernel. You can do this by using either `compile.sh` or `full_compile.sh`