title: psutil Process cpu percent greater than 100
body: <p>So, I was creating a monitor function to monitor a process for benchmarking.</p>
  
  <p>This is the function</p>
  
  <pre><code>def monitor(target):
      worker_process = mp.Process(target=target, args=(5, bounds, num_particles, max_iter, None))
      worker_process.start()
      p = psutil.Process(worker_process.pid)
      cpu_percents = []
      while worker_process.is_alive():
        test = p.cpu_percent()
        if test != 0.0:
           cpu_percents.append(test)
  
      worker_process.join()
      return cpu_percents
  cpu_percents = monitor(target=GSO)
  </code></pre>
  
  <p>i got the cpu usage of the function that i was monitoring, but the cpu percent()/number of cpus was greater than 100, i don't understand what's going on can someone explain.</p>
  
  <p><a href="https://stackoverflow.com/questions/41206809/psutil-measuring-the-cpu-usage-of-a-specific-process">reason why i have divided by number of cpus is given in this post</a></p>