How to monitor CPU or memory usage on a per-user basis

Solution Verified - Updated -

Issue

  • Need a way to determine what percentage of the CPUs and memory (RAM) each user is utilizing. Ideally, would like to have a command that printed something like the following.

    user1 13% of total cpu usage, 25% of total ram
    user2 22% of total cpu usage, 2% of total ram
    
  • Is there any command to fetch proportional set size of memory per user basis?

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content