Sec. 12 Process Monitoring Flashcards

1
Q

top

A

process activity dynamically updated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

uptime

A

how long the system is running and teh average load.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ps

A

detailed information about processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

pstree

A

a tree of processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

mpstat

A

multiple processor usage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

iostat

A

CPU utilization and I/O statistics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

sar

A

display and collect information about system activity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

numastat

A

information about NUMA ( non-uniform memory architecture)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

strace

A

information about all system calls a process makes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what filesystem can be helpful in monitoring processes ?

A

/proc filesystem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

ps is a ____________ for displaying characteristics and statistics associated with processes.

A

ps is a workhorse for displaying characteristics and statistics associated with processes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

VSZ in the ps output

A

VSZ stands for the process’ virtual memory size in KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

RSS in the ps output

A

RSS stand for the resident set size; the non-swapped physical memory a task is using in KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

STAT output for the ps command

A

the STAT area describes the state of the process;

  • < for high prority (not nice)
  • S stands for sleeping
  • R stands for running
  • N for low priority (nice)
  • L for having pages locked in memory
  • s for session leader
  • l for multi-threaded
  • + for being in the forground process group
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

-o options for the ps command followed by a comma seperated list of field identifiers, I can print out a …….?

A

-o options for the ps command followed by a comma seperated list of field identifiers, I can print out a customized list of ps fields .

  • ps fields:
    • ​pid: process ID number
    • uid: user ID number
    • cmd: command with all arguments
    • cputime: cumulative CPU time
    • pmem: Ratio of teh process’s resident set size to the physical memory on the machine, expressed as a percentage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ps field: pid

A

process ID number

17
Q

ps -A or ps -e

A

select all processes

18
Q

if the -o option is specified, followed by a _____________ list of field identifiers , you can print a customized list of ps fields.

A

comma-seperated

19
Q

process states: D

A

uninterruptible sleep

20
Q

process state: I

A

Idle kernel thread

21
Q

process state: R

A

running or runnable (on run queue)

22
Q

process state: S

A

interruptible sleep( waiting for event to complete)

23
Q

process state: T

A

stopped by debugger during the tracing

24
Q

process state: t

A

stopped by debugger during the tracing

25
Q

process state: Z

A

defunct (“zombie”) process terminated but not reaped by its parent.

26
Q

ps works by reading the virtual files in ______?

A

/proc

27
Q

ps field : uid

A

user id number

28
Q

ps field : cmd

A

command with all arguements

29
Q

ps field : cputime

A

cumulative cpu time

30
Q

ps field : pmem

A

ratio of the process’s resident set size to the physical memory on the machine

31
Q

ps

A