Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/arodr967/virtual_memory_management
- Owner: arodr967
- Created: 2017-07-17T01:39:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-22T20:16:42.000Z (over 7 years ago)
- Last Synced: 2024-12-14T20:41:55.107Z (about 2 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`