Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Why does TOP show more than 1 user?

  1. #1
    Join Date
    Nov 2007
    Location
    UK
    Beans
    186
    Distro
    Lubuntu 13.04 Raring Ringtail

    Why does TOP show more than 1 user?

    Hi,

    I've run the TOP command in Terminal to view system processes and I have noticed that it says 4 users are logged in. I'm only logged in to one tty - tty7.

    Is this normal?


    Cosmic

  2. #2
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,330
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Why does TOP show more than 1 user?

    what does who say?
    if your question is answered, mark the thread as [SOLVED]. Thx.
    To post code or command output, use [code] tags.
    Check your bash script here // BashFAQ // BashPitfalls

  3. #3
    Join Date
    Nov 2007
    Location
    UK
    Beans
    186
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Why does TOP show more than 1 user?

    Output of TOP:

    top - 00:10:55 up 11:54, 5 users, load average: 0.60, 0.35, 0.32
    Tasks: 146 total, 1 running, 145 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 6.3 us, 1.7 sy, 0.0 ni, 90.9 id, 0.9 wa, 0.0 hi, 0.2 si, 0.0 st
    KiB Mem: 3872396 total, 1506384 used, 2366012 free, 156724 buffers
    KiB Swap: 3923964 total, 0 used, 3923964 free, 905548 cached


    Output of WHO:

    daz pts/1 2012-11-18 00:10 (:1)
    daz tty7 2012-11-17 23:49 (:1)

  4. #4
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,900
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Why does TOP show more than 1 user?

    Every terminal you open is a new pts, open 4 terminals you'll have 5 users logged in
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  5. #5
    Join Date
    Nov 2007
    Location
    UK
    Beans
    186
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Why does TOP show more than 1 user?

    I only have a single terminal open, though. I've opened others and, yes, the # of users increases. But when I close them all I'm still left with the 5 users showing on the single remaining terminal.

  6. #6
    Join Date
    Sep 2009
    Location
    Freiburg/Germany
    Beans
    1,112
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Why does TOP show more than 1 user?

    Usually there are a few processes running as system users, like root or nobody. Five doesn't seem to be unusual (it's 17 here).

    Code:
    ps ahxo user| sort -u
    lists all users currently running processes.
    ClassicMenu Indicator - classic GNOME menu for Unity
    Unsettings - configuration program for the Unity
    Privacy Indicator - easily switch privacy settings in Unity
    Arronax - create and modify app starters

  7. #7
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Why does TOP show more than 1 user?

    Quote Originally Posted by CosmicFlux View Post
    I only have a single terminal open, though. I've opened others and, yes, the # of users increases. But when I close them all I'm still left with the 5 users showing on the single remaining terminal.
    The users do not have to be logged in users (mortal users) they can be system users too. Root is one of those so is syslog, avahi and messageb on my machine.
    -BAB1

  8. #8
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    1,452
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Why does TOP show more than 1 user?

    Interesting thread. I only run Ubuntu server editions, no GUI stuff.
    I have never seen "top" or "uptime" show a different number of users than "who" . I get many listed with the command diesch listed above. So maybe it some GUI desktop thing.

  9. #9
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Why does TOP show more than 1 user?

    Quote Originally Posted by Doug S View Post
    Interesting thread. I only run Ubuntu server editions, no GUI stuff.
    I have never seen "top" or "uptime" show a different number of users than "who" . I get many listed with the command diesch listed above. So maybe it some GUI desktop thing.
    You and me both then.

    I've run both Server and Desktop versions of Ubuntu and I've always seen the output of top in regards to users being the same as the output of who.

    Intersting.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  10. #10
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,900
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Why does TOP show more than 1 user?

    +1

    I'm fairly certain top uses 'w' to figure out how many users are logged in.
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •