Performance profiles: tuned, nice, renice
Sign in to read this lesson
The optimal kernel settings for a virtual server and a physical database server are different. RHEL reduces this to one command with tuned profiles. In this lesson we learn to choose a profile, find the recommended one, and manage process priority with nice/renice — both are RHCSA topics.
What you will learn
- The tuned service sets kernel, disk and power parameters all at once with ready-made profiles.
tuned-adm activeshows the current profile,tuned-adm recommendthe recommended one,tuned-adm listall of them.tuned-adm profile virtual-guestchanges the profile, and the choice survives a reboot.- The nice value ranges from -20 (highest priority) to 19 (lowest); a regular user can only raise it (lower the priority).
nice -n 10 commandwhen starting,renice -n 5 -p PIDfor a running process; theNIcolumn inps -o pid,ni,cmdandtop.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.