• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

cpupower Command Examples in Linux

by Deepika

The cpupower command is a utility in Linux that is used to manage and configure the CPU frequency scaling settings of a system. CPU frequency scaling is the process of adjusting the speed at which a CPU is able to process instructions in order to save energy or improve performance.

To display the current CPU frequency settings, use the following command:

# cpupower frequency-info

This will display information about the current CPU frequency scaling settings, including the current frequency, the available frequencies, and the current governor.

cpupower Command Examples

1. List CPUs:

# sudo cpupower --cpu all info

2. Print information about all cores:

# sudo cpupower --cpu all info

3. Set all CPUs to a power-saving frequency governor:

# sudo cpupower --cpu all frequency-set --governor powersave

4. Print CPU 0’s available frequency [g]overnors:

# sudo cpupower --cpu 0 frequency-info g | grep "analyzing\|governors"

5. Print CPU 4’s frequency from the hardware, in a human-readable format:

# sudo cpupower --cpu 4 frequency-info --hwfreq --human

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to uninstall jellyfish software package from Ubuntu
  2. How to re-create the yum cache (force a fetch of the cache data) from enabled repositories in CentOS/RHEL
  3. cheat: Create and view interactive cheat sheets on the command-line
  4. How to Migrate virtual machines from one host to another in the Red Hat Virtualization environment
  5. named Command Examples in Linux
  6. How to uninstall fail2ban on Ubuntu
  7. How to create partitions and file systems on DM-Multipath devices
  8. lsblk Command Examples in Linux
  9. How to Debug systemd boot process in CentOS/RHEL 7 and 8
  10. Linux OS service ‘auditd’

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright