[Paper Review] Rio: A System Solution for Sharing I/O between Mobile Systems
Rio is a system-level I/O sharing solution for mobile devices that enables unmodified applications to remotely access I/O devices—such as cameras, microphones, sensors, and modems—across different mobile systems via a split-stack architecture centered on device file boundaries. It achieves near-local performance for audio, sensors, and modems, with camera performance limited by Wi-Fi throughput, while requiring minimal code overhead (<450 lines per I/O class) for new device support.
Mobile systems are equipped with a diverse collection of I/O devices, including cameras, microphones, sensors, and modems. There exist many novel use cases for allowing an application on one mobile system to utilize I/O devices from another. This paper presents Rio, an I/O sharing solution that supports unmodified applications and exposes all the functionality of an I/O device for sharing. Rio's design is common to many classes of I/O devices, thus significantly reducing the engineering effort to support new I/O devices. Our implementation of Rio on Android consists of 6700 total lines of code and supports four I/O classes with fewer than 450 class-specific lines of code. Rio also supports I/O sharing between mobile systems of different form factors, including smartphones and tablets. We show that Rio achieves performance close to that of local I/O for audio, sensors, and modems, but suffers noticeable performance degradation for camera due to network throughput limitations between the two systems, which is likely to be alleviated by emerging wireless standards.
Motivation & Objective
- To enable unmodified mobile applications to access I/O devices on remote mobile systems.
- To expose the full functionality of remote I/O devices, including configuration and control, without application modifications.
- To reduce engineering effort for supporting new I/O device classes through a device file abstraction.
- To support I/O sharing across heterogeneous mobile systems, including smartphones and tablets.
- To address challenges such as cross-system memory access, high latency, and connection instability in wireless I/O sharing.
Proposed method
- Rio employs a split-stack I/O architecture, with the I/O stack split at the device file boundary between client and server mobile systems.
- It uses a distributed shared memory (DSM) design to enable cross-system memory mapping between processes and device drivers across separate physical memories.
- Memory operations are optimized by minimizing round-trip latency through batching and efficient coordination between client and server systems.
- It implements connection resilience by cleaning up remote I/O state on disconnection and falling back to local I/O if available.
- The system leverages device files as an I/O class-agnostic abstraction, enabling support for multiple I/O types with minimal class-specific code.
- It supports secure remote access by relying on existing OS-level protections, with future extensions for sandboxing drivers and protecting client data.
Experimental results
Research questions
- RQ1Can a system enable unmodified mobile applications to access remote I/O devices across different mobile systems?
- RQ2Can full device functionality, including configuration and control, be exposed in a transparent, cross-system manner?
- RQ3Can I/O sharing be implemented with minimal engineering effort across diverse I/O device classes?
- RQ4How does performance of remote I/O compare to local I/O, especially under wireless network constraints?
- RQ5Can the system handle dynamic network conditions, such as disconnections, without leaving residual state?
Key findings
- Rio supports unmodified applications in accessing remote I/O devices by abstracting the I/O stack at the device file boundary, ensuring application transparency.
- All device functionality—such as camera resolution, exposure, and white balance settings—can be remotely configured and accessed.
- The implementation requires only 6700 lines of code, with less than 450 lines dedicated to any single I/O class, demonstrating low engineering overhead.
- Performance for audio, sensors, and modems is close to local I/O performance, indicating effective optimization for low-latency communication.
- Camera sharing suffers noticeable performance degradation due to Wi-Fi throughput limitations, but this is expected to improve with emerging high-throughput wireless standards.
- Rio supports I/O sharing between heterogeneous mobile systems, including smartphones and tablets, and can fall back to local I/O upon disconnection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.