Improving network performance using network I/O control