Processes and Data Management Flashcards
1
Q
Linux package characteristics
A
- Is a single file
- Rely on other programs to instal the software
- Contain dependency information
- Contain version information
- Contain architecture information
- Binary packages are built from source packages
2
Q
Process of package installation
A
- Command issued to install program
- Software locate all dependencies
- User issues final approval
- Software downloads all dependency packages
- Software installs the packages
3
Q
/sbin/init
A
- Initialize process
- runs when starting OS
- Programs launched by init are Children
4
Q
Parent
A
process that launched a program
5
Q
Child
A
process launched by another program
6
Q
Process ID (PID)
A
- Begin with 1
- Unique ID point to a program
- Init process ID is 1
7
Q
Parent Process ID (PPID)
A
- Points back to a parent
- Process ID of Parent process
- Process launched by init would be 1
8
Q
ps command
A
- Displays a process listing
- Pipe thorough grep to filter/query
- Provides information at a single point in time only
9
Q
top command
A
- Displays an interactive process listing
- Sorts by CPU usage like task manager
- Gives load average (how much resources process usually uses)
- M key to sort by memory
10
Q
free command
A
- return total memory status
- Mem & Swap are improtant fields
11
Q
Memory leak
A
- Bug where program consumes increasing amounts of memory, failing to return after requesting RAM.
12
Q
Mem
A
- Line in free command output that reveals total RAM statistics
- Buffer/cache line, shows the amount of memory being actively used at current time
13
Q
Swap
A
- Line in free command output that reveals how much swap space Linux is using
- Disk space that’s set aside as an adjunct to memory (virtual RAM)
14
Q
Kernel Ring Buffer
A
- Like a log file for the kernel itself
- Stored in memory rather than disk file
- dmesg to display info pipe less to display less, or grep to search
- Useful for troubleshooting hardware and driver problems
15
Q
Package software
A
- Maintains a DB about installed packages