Monitoring and optimization of turning process