Join fachinformatiker.de Forum Now
Ergebnis 1 bis 7 von 7

Linux 'top' verwirrende anzeige / interpretation

Diskussion über Linux 'top' verwirrende anzeige / interpretation in Rootserver - Vserver - Webspace der Kategorie Fachliches; hu ich habe zwei Server. (physikalisch auch getrennte rechner, andere Rechenzentren unsw., andere Hardware) auf beiden läuft die gleiche software. ...

  1. #1
    Reg.-Benutzer
    Reg.-Datum
    26.04.2005
    Beiträge
    1.090

    Standard Linux 'top' verwirrende anzeige / interpretation

    hu

    ich habe zwei Server. (physikalisch auch getrennte rechner, andere Rechenzentren unsw., andere Hardware)

    auf beiden läuft die gleiche software. (PHP / Webanwendung)

    auf Server A sind derzeit viele leute drauf, Cronjobs laufen unsw.

    Auf Server B ist nur das Entwicklerteam.

    jetzt sagt mit "top" bei beiden 100% mysqld - Prozessorauslastung wenn ein größeres Script läuft.

    Die Zusammenfassung über dem Top sagt bei server A 20% us, 70% id ?

    ich hoffe ihr könnt da mal bei der interpretation helfen / tips geben

    also was nun, 100% oder 20% ?

    Der Server A ist ar**** langsam und braucht Ewigkeiten zur Antwort.
    Server B ist schnell bei der Sache.

    andere Prozesse haben nur verschwindend geringe anzeigen. Nichteinmal php schafft es in die Top-Liste.



    danke


  2. #2
    Reg.-Benutzer
    Reg.-Datum
    26.04.2005
    Beiträge
    1.090

    Standard

    keiner eine Idee ?

    Vielleicht falsches Forum für die Frage ?

  3. #3
    Moderator Linux + Unix
    Rootserver - Vserver - Webspace
    Avatar von Amstelchen
    Reg.-Datum
    08.03.2005
    Ort
    127.0.0.1
    Beiträge
    3.948

    Standard

    dein posting ist für mich irgendwie unverständlich formuliert *duck*
    Die Zusammenfassung über dem Top sagt bei server A 20% us, 70% id ?
    [...]
    also was nun, 100% oder 20% ?
    du meinst nicht zufällig mit us -> user und mit id -> idle? das ist die aufteilung der zeitscheibe auf einzelne kategorien, welche zusammen 100 prozent ergeben. dein mysqld mag zu 100% das system auslasten, daran kann was, muss aber nichts falsch sein. das hat mit den 20% nur bedingt was zu tun.

    aber vielleicht kannst du ja mal die ausgabe von top hier reinposten, sonst ist das ein ratespiel.

    s'Amstel
    Help stamp out and abolish redundancy!
    Help stamp out and abolish redundancy!

  4. #4
    Reg.-Benutzer Avatar von bigredeyes
    Reg.-Datum
    08.03.2002
    Ort
    Ulm
    Beiträge
    725

    Standard

    Zitat Zitat von Aiun Beitrag anzeigen
    hu
    ich habe zwei Server. (physikalisch auch getrennte rechner, andere Rechenzentren unsw., andere Hardware)
    schon das "andere hardware" führt zu rätselraten ohen ende.

    sind die rechner denn wenigstens "ungefähr baugleich" (mhz, ram, anzahl proz.)?

    bigredeyes
    *_*

  5. #5
    Reg.-Benutzer
    Reg.-Datum
    26.04.2005
    Beiträge
    1.090

    Standard

    naja, die andere Hardware ist mir diesbezüglich egal.
    Ich will nur wissen wie ich die Informationen im allgemeinen zu interpretieren habe.

    mal nur auf Server B bezogen:
    Dort sind 2 Doppekern-Prozessoren vorhanden. Mitlerweile habe ich in der großen tabelle auch mal 200 unter %CPU gesehen, obwohl %us nicht über 30% geklettert ist.

    Kann es sein das in der großen tabelle 100% je Prozessor möglich sind (in dem fall bis zu 400% ?) und unter der CPU(s) zusammenfassung insgesamt über alle 4 Kerne gemessen wird ?


    danke

  6. #6
    Reg.-Benutzer Avatar von Crash2001
    Reg.-Datum
    20.05.2001
    Ort
    Hamburger Speckgürtel
    Beiträge
    7.515

    Standard

    Schau dir doch mal die Manpage zu top an.

    Zitat Zitat von man top
    [...]2. FIELDS / Columns
    2a. DESCRIPTIONS of Fields
    Listed below are top's available fields. They are always associated with the letter shown, regardless of the position you may have established for
    them with the 'o' (Order fields) interactive command.

    Any field is selectable as the sort field, and you control whether they are sorted high-to-low or low-to-high. For additional information on sort
    provisions see topic 3c. TASK Area Commands.

    a: PID -- Process Id
    The task's unique process ID, which periodically wraps, though never restarting at zero.

    b: PPID -- Parent Process Pid
    The process ID of a task's parent.

    c: RUSER -- Real User Name
    The real user name of the task's owner.

    d: UID -- User Id
    The effective user ID of the task's owner.

    e: USER -- User Name
    The effective user name of the task's owner.

    f: GROUP -- Group Name
    The effective group name of the task's owner.

    g: TTY -- Controlling Tty
    The name of the controlling terminal. This is usually the device (serial port, pty, etc.) from which the process was started, and which it uses
    for input or output. However, a task need not be associated with a terminal, in which case you'll see '?' displayed.

    h: PR -- Priority
    The priority of the task.

    i: NI -- Nice value
    The nice value of the task. A negative nice value means higher priority, whereas a positive nice value means lower priority. Zero in this
    field simply means priority will not be adjusted in determining a task's dispatchability.

    j: #C -- Last used CPU (SMP)
    A number representing the last used processor. In a true SMP environment this will likely change frequently since the kernel intentionally uses
    weak affinity. Also, the very act of running top may break this weak affinity and cause more processes to change CPUs more often (because of
    the extra demand for cpu time).

    k: %CPU -- CPU usage
    The task's share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time. In a true SMP environment,
    if 'Irix mode' is Off, top will operate in number of CPUs. You toggle 'Irix/Solaris' modes with the 'I' interactive command.

    l: TIME -- CPU Time
    Total CPU time the task has used since it started. When 'Cumulative mode' is On, each process is listed with the cpu time that it and its dead
    children has used. You toggle 'Cumulative mode' with 'S', which is a command-line option and an interactive command. See the 'S' interactive
    command for additional information regarding this mode.

    m: TIME+ -- CPU Time, hundredths
    The same as 'TIME', but reflecting more granularity through hundredths of a second.

    n: %MEM -- Memory usage (RES)
    A task's currently used share of available physical memory.

    o: VIRT -- Virtual Image (kb)
    The total amount of virtual memory used by the task. It includes all code, data and shared libraries plus pages that have been swapped out.

    VIRT = SWAP + RES.

    p: SWAP -- Swapped size (kb)
    The swapped out portion of a task's total virtual memory image.

    q: RES -- Resident size (kb)
    The non-swapped physical memory a task has used.

    RES = CODE + DATA.

    r: CODE -- Code size (kb)
    The amount of physical memory devoted to executable code, also known as the 'text resident set' size or TRS.

    s: DATA -- Data+Stack size (kb)
    The amount of physical memory devoted to other than executable code, also known as the 'data resident set' size or DRS.

    t: SHR -- Shared Mem size (kb)
    The amount of shared memory used by a task. It simply reflects memory that could be potentially shared with other processes.

    u: nFLT -- Page Fault count
    The number of major page faults that have occurred for a task. A page fault occurs when a process attempts to read from or write to a virtual
    page that is not currently present in its address space. A major page fault is when backing storage access (such as a disk) is involved in mak-
    ing that page available.

    v: nDRT -- Dirty Pages count
    The number of pages that have been modified since they were last written to disk. Dirty pages must be written to disk before the corresponding
    physical memory location can be used for some other virtual page.

    w: S -- Process Status
    The status of the task which can be one of:
    'D' = uninterruptible sleep
    'R' = running
    'S' = sleeping
    'T' = traced or stopped
    'Z' = zombie

    Tasks shown as running should be more properly thought of as 'ready to run' -- their task_struct is simply represented on the Linux run-queue.
    Even without a true SMP machine, you may see numerous tasks in this state depending on top's delay interval and nice value.

    x: Command -- Command line or Program name
    Display the command line used to start a task or the name of the associated program. You toggle between command line and name with 'c', which
    is both a command-line option and an interactive command.

    When you've chosen to display command lines, processes without a command line (like kernel threads) will be shown with only the program name in
    parentheses, as in this example:
    ( mdrecoveryd )

    Either form of display is subject to potential truncation if it's too long to fit in this field's current width. That width depends upon other
    fields selected, their order and the current screen width.

    Note: The 'Command' field/column is unique, in that it is not fixed-width. When displayed, this column will be allocated all remaining screen
    width (up to the maximum 512 characters) to provide for the potential growth of program names into command lines.

    y: WCHAN -- Sleeping in Function
    Depending on the availability of the kernel link map ('System.map'), this field will show the name or the address of the kernel function in
    which the task is currently sleeping. Running tasks will display a dash ('-') in this column.

    Note: By displaying this field, top's own working set will be increased by over 700Kb. Your only means of reducing that overhead will be to
    stop and restart top.

    z: Flags -- Task Flags
    This column represents the task's current scheduling flags which are expressed in hexadecimal notation and with zeros suppressed. These flags
    are officially documented in <linux/sched.h>. Less formal documentation can also be found on the 'Fields select' and 'Order fields' screens.
    [...]
    MfG Crash2001
    Love me or let it be, but don't play with me! |-| <O| mein IRC-Channel |O> |-| CCNA und FIAE

    if (!$knowledge) { if(!res_search($foo)) { post($question); } else { use_output_as_input($search); } } else { start_working(); }

  7. #7
    Reg.-Benutzer
    Reg.-Datum
    14.02.2007
    Beiträge
    77

    Standard

    Ich empfehle htop. Ist übersichtlicher und hat sogar maus unterstützung

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Ähnliche Themen

  1. Hylafax > Suse 9 > Logfile > hint: lcr:failed ?
    Von lin4ever im Forum Linux + Unix
    Antworten: 1
    Letzter Beitrag: 03.05.2005, 15:05
  2. ISDN Fehlermeldung (Suse 7.3)
    Von Jessi151 im Forum Linux + Unix
    Antworten: 8
    Letzter Beitrag: 23.11.2004, 11:54
  3. Linkliste Linux (Update 20.03.2007)
    Von Wolle im Forum Linux + Unix
    Antworten: 0
    Letzter Beitrag: 08.08.2003, 21:42
  4. Linux?
    Von gealany im Forum Linux + Unix
    Antworten: 14
    Letzter Beitrag: 09.09.2002, 18:30
  5. SuSE's Statement zu Kleinweich's Linux-Whitepaper
    Von DocMartens im Forum Daily Talk
    Antworten: 12
    Letzter Beitrag: 15.05.2001, 12:57