{"id":22832892,"url":"https://github.com/mtaciano/mempager","last_synced_at":"2025-03-31T02:19:59.098Z","repository":{"id":236361767,"uuid":"792455077","full_name":"mtaciano/mempager","owner":"mtaciano","description":"Simulation of two different paging algorithms hit-and-miss ratios as they move pages from the swap to the RAM.","archived":false,"fork":false,"pushed_at":"2024-05-15T16:05:10.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T07:23:26.791Z","etag":null,"topics":["c","paging","simulation"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtaciano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T17:48:23.000Z","updated_at":"2024-05-15T16:05:13.000Z","dependencies_parsed_at":"2024-12-12T21:10:59.688Z","dependency_job_id":"8183369c-b567-4f41-abf3-1c8d152f61c4","html_url":"https://github.com/mtaciano/mempager","commit_stats":null,"previous_names":["mtaciano/mempager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtaciano%2Fmempager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtaciano%2Fmempager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtaciano%2Fmempager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtaciano%2Fmempager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtaciano","download_url":"https://codeload.github.com/mtaciano/mempager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246403915,"owners_count":20771535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","paging","simulation"],"created_at":"2024-12-12T21:10:52.265Z","updated_at":"2025-03-31T02:19:59.071Z","avatar_url":"https://github.com/mtaciano.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Memory paging simulation\n\n## About\nThis program aims at simulating the behavior of two different paging algorithms when the physical memory is full (pages need to be swaped constantly). The main metric is their hit-and-miss ratios as they move pages from the swap to the RAM.\n\nThe first one is a `FIFO` (First In First Out) pager, the first page loaded in memory is the first to get released independently of its modified or referenced status.\n\nThe second algorithm is a `CLOCK` pager, it uses a circular list to find the first non-referenced page that is loaded and release it from memory.\n\n### Building\nTo build the program, you can call `cmake` with the configuration you want, or use the `./config.sh` script provided, which is the configuration that I used to write this program.\n\nAfter that, run `cmake --build build` and the executable will be in the `build` folder.\n\n### Running\nTo run this program you can do:\n```sh\n./mempager \u003cfifo|clock\u003e \u003cuniform|normal\u003e \u003cseed\u003e\n```\nNote that the seed is optional, and used if you want both pagers to have the same inputs, for comparison purposes.\n\n## License\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtaciano%2Fmempager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtaciano%2Fmempager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtaciano%2Fmempager/lists"}