Characterization and optimization of achievable performance in general queueing systems