{"id":21940369,"url":"https://github.com/eecheng87/saio","last_synced_at":"2025-04-22T15:42:56.725Z","repository":{"id":115170696,"uuid":"398940275","full_name":"eecheng87/SAIO","owner":"eecheng87","description":"Scalable Asynchronous I/O motivated by io_uring","archived":false,"fork":false,"pushed_at":"2023-03-23T04:21:21.000Z","size":4409,"stargazers_count":8,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T16:34:18.617Z","etag":null,"topics":["aio","iouring","network-programming"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-23T01:32:54.000Z","updated_at":"2024-10-05T17:29:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"41b5833d-ed68-436c-885c-1ea97411d8f3","html_url":"https://github.com/eecheng87/SAIO","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eecheng87%2FSAIO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eecheng87%2FSAIO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eecheng87%2FSAIO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eecheng87%2FSAIO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eecheng87","download_url":"https://codeload.github.com/eecheng87/SAIO/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250270048,"owners_count":21402984,"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","network-programming"],"created_at":"2024-11-29T02:32:38.206Z","updated_at":"2025-04-22T15:42:56.716Z","avatar_url":"https://github.com/eecheng87.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SAIO (Scalable Asynchronous I/O Extension)\nThis project is considered as the insight into general solutions to scalability issues in AIO (asynchronous I/O) model.\nWe proposed a offloading framework for I/O-intensive applications, using zero-copy scheme and M on-N threading system, as a generic scalable solution along with its adoption process of event-driven servers.\nThis work extends our previous work [ESCA](https://github.com/eecheng87/dBatch/tree/preview) into asynchronous I/O model, which provides better scalability.\nWith SAIO, HTTP/HTTPS servers have been demonstrated to outperform typical configurations in the aspects of throughput and latency.\nMoreover, we exhibit SAIO’s potential impact on TLS in kernel (kTLS).\n\n## Prerequisite\nFor Nginx and wrk:\n```\nsudo apt install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev\nsudo apt install libssl-dev libgd-dev libxml2 libxml2-dev uuid-dev\nsudo apt install autoconf automake libtool\n```\n\n## Download project\n```\ngit clone https://github.com/eecheng87/SAIO.git\ncd SAIO\n\n# download testbench\ngit submodule update --init\n```\n\n## Build from source\nSAIO has been deployed to lighttpd, Nginx (TLS+kTLS), Redis and memcached (TLS). Also, SAIO shows the impact on all of these targets\n\n### Nginx\n```\n# download and build Nginx with tls\nmake config TARGET=ngx CONFIG=tls\nsudo make\nmake nginx CONFIG=tls\n\n# download and build Nginx with ktls\nsudo modprobe tls\nmake config TARGET=ngx CONFIG=ktls\nsudo make\nmake nginx CONFIG=ktls\n```\n\n### Memcached\n\u003e Support for memcached is only available in the branch `mcache`, which is designed with multi-threading model.\n```\n# download and build memcached\nmake config TARGET=mcached\nsudo make\n\n# download and build the benchmarking tool\nmake memtier\n\n# sample for launching memcached\nLD_PRELOAD=/path/to/preload.so ./memcached -t 1\n\n# sample for launching memtier_benchmarking\n./memtier_benchmark -p 11211 --protocol=memcache_text --clients=100 --threads=5 --ratio=1:1 --key-pattern=R:R --key-minimum=16 --key-maximum=16 --data-size=128 --test-time=5\n```\n\n### Redis\n```\n# download and build Redis without tls\nmake config TARGET=redis\nsudo make\nmake redis tls=no\n\n# download and build Redis with tls\nmake config TARGET=redis CONFIG=tls\nsudo make\nmake redis tls=yes\n```\n\n## Evaluation\nThe following experiments will evaluate throughput, latency, and scalability, which are extremely important for EDAs.\nAll experiments are run on Marvell ThunderX2 CN9975 powered R281-T91 Arm server with the characteristics shown in Table.\n\n| Component          | Specification |\n| ------------------ | ------------- |\n| Thread(s) per core | 4             |\n| NUMA node          | 2             |\n| Core(s) per socket | 28            |\n| Memory             | 128 GiB       |\n| CPU Architecture   | Arm64         |\n\n\n### The structural scalability of Nginx\n![image](assets/ngx_scala.png)\n### Throughput of Nginx with varied connection number\n![image](assets/ngx_conn.png)\n### Tail latency of Nginx with different throughput\n![image](assets/ngx_tail.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feecheng87%2Fsaio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feecheng87%2Fsaio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feecheng87%2Fsaio/lists"}