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: 3 months ago
JSON representation
A system call written in C, to report on memory management statistics, and a counter-based clock page replacement algorithm.
- Host: GitHub
- URL: https://github.com/arodr967/virtual_memory_management
- Owner: arodr967
- Created: 2017-07-17T01:39:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-22T20:16:42.000Z (almost 8 years ago)
- Last Synced: 2025-02-07T19:33:51.968Z (5 months ago)
- Topics: algorithm, linux-kernel, memory-management, memory-stats, system-calls, virtual-memory
- Language: C
- Size: 524 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`