TAG
Operating_System
53 notes
- Operating Systemhistorical
Operating systems manage processes, memory, devices, and files. This page organizes those functions and links practical Linux notes.
- Linuxhistorical
This page collects Linux notes on usage, processes, I/O, memory, and performance tuning as an entry point to operating-system practice.
- Threadhistorical
A thread is an execution flow within a process, and a process can have several. These notes distinguish user-level and kernel-level thread implementations.
- Processhistorical
A process is a running program, observable with ps and able to create children through fork. These notes examine address spaces and parent-child relationships.
- Process Managementhistorical
Process management involves communication, synchronization, and deadlocks. This page links those topics and comparisons among programs, processes, and threads.
- IPChistorical
IPC lets processes with separate address spaces exchange information. These notes examine communication methods through the limits of direct memory access.
- Synchronizationhistorical
Synchronization coordinates execution order, while mutual exclusion restricts concurrent entry into a critical section. These notes compare those coordination needs.
- Deadlockhistorical
Deadlock can occur when processes hold locks each other needs while waiting for one another. These notes organize its conditions and handling approaches.
- Program, Process, and Threadhistorical
A program is stored instructions, a process is a running program, and a thread is an execution flow within it. These notes compare them through examples such as a video player.
- Memory Managementhistorical
A buffer holds data not yet written to disk, while a cache holds data previously read from disk. These notes use that distinction to examine Linux memory usage.
- Storage Managementhistorical
Memory management organizes and uses computer memory. These notes link allocation, virtual memory, segmentation and paging, and page replacement.
- Virtual Memoryhistorical
Programs may require more space than physical memory provides. These notes examine virtual memory through address mapping and swapping.
- Memory Allocation and Reclamationhistorical
Operating systems allocate memory to programs and reclaim it when no longer needed. These notes examine allocation methods and their conditions and characteristics.
- Segmentation and Paginghistorical
Operating systems organize memory through address spaces, mapping process-visible logical addresses to storage. These notes examine segments, pages, and address translation.
- Linux Memory Managementhistorical
Swap space is a disk area to which Linux can move memory contents under pressure. These notes use that concept to compare swap and virtual memory.
- Page Replacementhistorical
Page Replacement: Page-replacement algorithms are similar to cache-eviction policies. The former solve a capacity problem, while the latter solve a speed problem.
- System Callshistorical
System calls let programs access operating-system capabilities through a function-like interface. These notes compare their execution with ordinary function calls.
- I/O Modelshistorical
Synchronous and asynchronous I/O concern how work proceeds and completion is reported; blocking and nonblocking concern waiting for results. These notes compare I/O models through system calls.
- select, poll, epollhistorical
Select, poll, and epoll provide I/O multiplexing. These notes compare them starting with select's descriptor copying, scanning, and count limits.
- I/Ohistorical
Files can be viewed as byte sequences, and Linux exposes many devices and kernel details through file interfaces. These notes examine I/O through that perspective.
- Zero-Copy Mechanismhistorical
Traditional I/O moves data through disks, kernel buffers, user space, and the network. These notes use that path to examine how zero-copy reduces overhead.
- CPU Tuninghistorical
CPU utilization measures non-idle time and can be broken into user, system, I/O-wait, and interrupt categories. These notes organize tuning metrics around those parts.
- tophistorical
Top displays process resource usage dynamically. These notes start with the help menu and record interactive commands for inspecting CPU and other metrics.
- Memory Tuninghistorical
Memory analysis distinguishes used and available space. These notes examine memory tuning through usage figures and related metrics.
- vmstathistorical
Vmstat reports process, memory, swap, and CPU statistics. These notes focus on fields such as buffer and cache.
- Disk Tuninghistorical
Disk tuning involves capacity, I/O, page cache, directory entries, and inode caches. These notes organize analysis metrics around those layers.
- Network Tuninghistorical
Network tuning begins with packet encapsulation, addressing, routing, and transmission, followed by throughput and latency measurements to locate problems.
- iostathistorical
Iostat's default output includes statistics since system startup. These notes examine CPU and device fields for inspecting I/O activity.
- Linux Performance Tuninghistorical
Linux performance tuning can be approached through CPU, memory, disk, and networking. This page links the related topics.
- Flame Graphhistorical
Flame graphs visualize sampled call stacks. These notes begin with perf collection and record how to generate and read the resulting graph.
- ulimithistorical
Ulimit sets process resource limits within the current shell. These notes distinguish soft and hard limits and record related commands.
- tcpdumphistorical
Before capturing packets with tcpdump, available interfaces can be inspected. These notes record interface selection and capture commands.
- Common Linux Commandshistorical
Linux commands inspect and manipulate files directly. These notes begin with text viewers such as cat and more and record common behavior and options.
- sarhistorical
These notes record interval sampling with sar and interpret fields such as network-interface statistics.
- pidstathistorical
These notes record pidstat sampling commands and output fields for observing process resource usage over time.
- stracehistorical
Strace inspects system calls made by a process. These notes preserve tracing commands for analyzing interactions between programs and the kernel.
- Linux Namespacehistorical
Namespaces give processes isolated views of system resources. These notes record Linux version support and the roles of different namespace types.
- Linux cgrouphistorical
Cgroups evolved from process containers to organize processes and control resources. These notes begin with that history and record Linux usage.
- chroothistorical
Chroot makes a chosen directory the root seen by a process. These notes record its usage for isolating the file-system view.
- dfhistorical
Command examples record df usage for inspecting file-system capacity, used space, and available space.
- dighistorical
DNS query examples explain dig output, including answers, authoritative servers, response time, and record types.
- freehistorical
These notes record free usage and output fields for inspecting system memory through totals, available memory, and related figures.
- ifconfighistorical
These notes use ifconfig output to identify network-interface names and information during basic network inspection.
- ifstathistorical
These notes record ifstat commands, output, and field meanings for observing network-interface traffic.
- lsofhistorical
These notes record lsof commands and output interpretation for examining resources through files opened by processes.
- nethogshistorical
Nethogs displays network traffic by process. These notes preserve usage examples for identifying bandwidth-consuming processes.
- netstathistorical
These notes record netstat commands for inspecting TCP connections and counting connections by state.
- nslookuphistorical
Nslookup output includes the DNS server address and query response. These notes distinguish server information and non-authoritative answers.
- pshistorical
These notes record common ps commands for inspecting processes and threads from the command line.
- pstreehistorical
Pstree displays process relationships as a tree. These notes use options such as -p to inspect process IDs and parent-child relationships.
- rsynchistorical
This note preserves rsync examples and references for local and remote file synchronization.
- traceroutehistorical
Traceroute displays each hop on the path to a destination. These notes interpret output fields for inspecting routes and latency.
- Linux AUFShistorical
AUFS implements union mounting on Linux to combine multiple directory layers. These notes introduce it through the background of UnionFS.