1. Operating Systemhistorical

    Operating systems manage processes, memory, devices, and files. This page organizes those functions and links practical Linux notes.

  2. Linuxhistorical

    This page collects Linux notes on usage, processes, I/O, memory, and performance tuning as an entry point to operating-system practice.

  3. 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.

  4. 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.

  5. Process Managementhistorical

    Process management involves communication, synchronization, and deadlocks. This page links those topics and comparisons among programs, processes, and threads.

  6. IPChistorical

    IPC lets processes with separate address spaces exchange information. These notes examine communication methods through the limits of direct memory access.

  7. Synchronizationhistorical

    Synchronization coordinates execution order, while mutual exclusion restricts concurrent entry into a critical section. These notes compare those coordination needs.

  8. Deadlockhistorical

    Deadlock can occur when processes hold locks each other needs while waiting for one another. These notes organize its conditions and handling approaches.

  9. 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.

  10. 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.

  11. Storage Managementhistorical

    Memory management organizes and uses computer memory. These notes link allocation, virtual memory, segmentation and paging, and page replacement.

  12. Virtual Memoryhistorical

    Programs may require more space than physical memory provides. These notes examine virtual memory through address mapping and swapping.

  13. 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.

  14. 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.

  15. 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.

  16. 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.

  17. System Callshistorical

    System calls let programs access operating-system capabilities through a function-like interface. These notes compare their execution with ordinary function calls.

  18. 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.

  19. 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.

  20. 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.

  21. 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.

  22. 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.

  23. tophistorical

    Top displays process resource usage dynamically. These notes start with the help menu and record interactive commands for inspecting CPU and other metrics.

  24. Memory Tuninghistorical

    Memory analysis distinguishes used and available space. These notes examine memory tuning through usage figures and related metrics.

  25. vmstathistorical

    Vmstat reports process, memory, swap, and CPU statistics. These notes focus on fields such as buffer and cache.

  26. Disk Tuninghistorical

    Disk tuning involves capacity, I/O, page cache, directory entries, and inode caches. These notes organize analysis metrics around those layers.

  27. Network Tuninghistorical

    Network tuning begins with packet encapsulation, addressing, routing, and transmission, followed by throughput and latency measurements to locate problems.

  28. iostathistorical

    Iostat's default output includes statistics since system startup. These notes examine CPU and device fields for inspecting I/O activity.

  29. Linux Performance Tuninghistorical

    Linux performance tuning can be approached through CPU, memory, disk, and networking. This page links the related topics.

  30. Flame Graphhistorical

    Flame graphs visualize sampled call stacks. These notes begin with perf collection and record how to generate and read the resulting graph.

  31. ulimithistorical

    Ulimit sets process resource limits within the current shell. These notes distinguish soft and hard limits and record related commands.

  32. tcpdumphistorical

    Before capturing packets with tcpdump, available interfaces can be inspected. These notes record interface selection and capture commands.

  33. 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.

  34. sarhistorical

    These notes record interval sampling with sar and interpret fields such as network-interface statistics.

  35. pidstathistorical

    These notes record pidstat sampling commands and output fields for observing process resource usage over time.

  36. stracehistorical

    Strace inspects system calls made by a process. These notes preserve tracing commands for analyzing interactions between programs and the kernel.

  37. Linux Namespacehistorical

    Namespaces give processes isolated views of system resources. These notes record Linux version support and the roles of different namespace types.

  38. Linux cgrouphistorical

    Cgroups evolved from process containers to organize processes and control resources. These notes begin with that history and record Linux usage.

  39. chroothistorical

    Chroot makes a chosen directory the root seen by a process. These notes record its usage for isolating the file-system view.

  40. dfhistorical

    Command examples record df usage for inspecting file-system capacity, used space, and available space.

  41. dighistorical

    DNS query examples explain dig output, including answers, authoritative servers, response time, and record types.

  42. freehistorical

    These notes record free usage and output fields for inspecting system memory through totals, available memory, and related figures.

  43. ifconfighistorical

    These notes use ifconfig output to identify network-interface names and information during basic network inspection.

  44. ifstathistorical

    These notes record ifstat commands, output, and field meanings for observing network-interface traffic.

  45. lsofhistorical

    These notes record lsof commands and output interpretation for examining resources through files opened by processes.

  46. nethogshistorical

    Nethogs displays network traffic by process. These notes preserve usage examples for identifying bandwidth-consuming processes.

  47. netstathistorical

    These notes record netstat commands for inspecting TCP connections and counting connections by state.

  48. nslookuphistorical

    Nslookup output includes the DNS server address and query response. These notes distinguish server information and non-authoritative answers.

  49. pshistorical

    These notes record common ps commands for inspecting processes and threads from the command line.

  50. pstreehistorical

    Pstree displays process relationships as a tree. These notes use options such as -p to inspect process IDs and parent-child relationships.

  51. rsynchistorical

    This note preserves rsync examples and references for local and remote file synchronization.

  52. traceroutehistorical

    Traceroute displays each hop on the path to a destination. These notes interpret output fields for inspecting routes and latency.

  53. Linux AUFShistorical

    AUFS implements union mounting on Linux to combine multiple directory layers. These notes introduce it through the background of UnionFS.