{"id":21940379,"url":"https://github.com/eecheng87/fastio","last_synced_at":"2025-10-14T07:04:57.568Z","repository":{"id":64388546,"uuid":"559534172","full_name":"eecheng87/fastio","owner":"eecheng87","description":"Fully asynchronous I/O interface extended from SAIO","archived":false,"fork":false,"pushed_at":"2023-03-16T01:47:08.000Z","size":3367,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T14:54:21.154Z","etag":null,"topics":["aio","iouring","proactor"],"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/eecheng87.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}},"created_at":"2022-10-30T12:23:18.000Z","updated_at":"2022-12-08T14:58:22.000Z","dependencies_parsed_at":"2023-01-30T20:45:25.839Z","dependency_job_id":null,"html_url":"https://github.com/eecheng87/fastio","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eecheng87%2Ffastio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eecheng87%2Ffastio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eecheng87%2Ffastio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eecheng87%2Ffastio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eecheng87","download_url":"https://codeload.github.com/eecheng87/fastio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244973775,"owners_count":20541025,"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":["aio","iouring","proactor"],"created_at":"2024-11-29T02:32:41.802Z","updated_at":"2025-10-14T07:04:52.503Z","avatar_url":"https://github.com/eecheng87.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastio\nFastIO is an asynchronous I/O interface that has been developed based on our previous work, [SAIO](https://github.com/eecheng87/SAIO). \nThis project is built upon the concept of the io_uring kernel subsystem. \nIn FastIO, system calls are handled by kernel workers in a polling manner, which eliminates the need for trapping into the kernel. \nAdditionally, FastIO uses wq-worker to offload tasks that handle data not stored in cache, thus reducing the number of CPU mode switches. \nThis approach improves the performance of system call-intensive applications, such as key-value servers. \nThrough evaluations, we have demonstrated that FastIO can linearly scale the throughput of network servers, such as Redis.\n\n## Build from source\n```\ngit clone https://github.com/eecheng87/fastio.git \u0026\u0026 cd fastio\n\n# choose target, echos server or redis\nmake config TARGET=echo\nmake config TARGET=redis\n\n# build kernel module\nsudo make\n\n# load kernel module\nmake reload\n\n# buildl echo server \u0026 launch it\ncd echo \u0026\u0026 make\n./proactor_echo_server 12345\n```\n\nconfigure the value of `max_ker_worker` in `fastio.conf` to spawn varied number of kernel workers.\n\n## Performance\nWe compare the throughput (RPS) of conventional [echo-server](https://github.com/eecheng87/fastio/blob/main/echo/epoll_echo_server.c) and the [proactor-like echo-server](https://github.com/eecheng87/fastio/blob/main/echo/proactor_echo_server.c) on the top of FastIO.\nWe choose [rust_echo_bench](https://github.com/haraldh/rust_echo_bench) as client.\nBoth server and client are running on eMAG 8180 powered Ampere Arm server with 32 physical cores.\n\n| type/connection numbers | 25     |\n| ----------------------- | ------ |\n| epoll                   | 82896  |\n| fastio (1)              | 82802  |\n| fastio (2)              | 161260 |\n| fastio (3)              | 257491 |\n| fastio (4)              | 301168 |\n| fastio (5)              | 393052 |\n\n\u003e fastio (*) refers to server running with * kernel workers.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feecheng87%2Ffastio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feecheng87%2Ffastio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feecheng87%2Ffastio/lists"}