I was asked to write a script that could be run from cron that would prioritize processes running on an application server running Oracle Unbreakable Linux v.5. The intention was to increase application performance.
I wrote a simple script to ‘re-nice’ select processes. Nice and Renice operate on the principal that the lower the value of the process (the scale is from -20 to +19), the higher the priority the process has on CPU time. In other words, a process that is nice to others, is +19. One that isn’t so nice is at -20. In function then, a process that requires lots of immediate CPU time such as an RTP-specific application running voice-related services (as was the case in this example), may benefit from running at a higher priority (thus as a negative on the niceness scale) than, say, sendmail, which can queue and resend without, necessarily, a degradation in service.



