CPS: Small: Statistical Performance Analysis and Resource Management for Cyber-Physical Internet of Things Systems