在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):hungys/binder-for-linux开源软件地址(OpenSource Url):https://github.com/hungys/binder-for-linux开源编程语言(OpenSource Language):C++ 64.8%开源软件介绍(OpenSource Introduction):binder-for-linuxbinder-for-linux is an experimental project to evaluate the feasibility of porting Android Binder IPC subsystem to Ubuntu Linux. Environment
Codebase
Modifications
Get StartedTo compile all from source,
Now you can install kernel modules (binder & ashmem) by,
Then run Service Manager in background,
We also prepared a benchmark program to perform correctness test and performance test,
ResultsWe found an obvious fact that when the payload size is greater than 16K, the transmission latency grows much more rapidly compared with a small payload. After tracing more source code, we inferred that this may be due to the use of the single global lock. The Binder driver heavily uses a global lock to protect the critical sections, this may lead to low utilization in high concurrency situation. Also, during the driver initialization phase, the Binder driver created a bottom half – workqueue, to handle the release of system resource and buffer. During the benchmark with larger payload and higher iterations (e.g. 10000 per test), the workqueue need to handle the release request more frequently; however, the implementation of release function also need to acquire the global lock, which leads to much lower performance for real data transmission. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论