Introduction to the FreeBSD Open-Source Operating System

Video description

This ten-hour video starts with an introduction to the FreeBSD community and explains how it differs from the Linux ecosystem. The video then goes on to provide a firm background in the FreeBSD kernel. The POSIX kernel interfaces are used as examples where they are defined. Where they are not defined, the FreeBSD interfaces are described. The video covers basic kernel services, locking, process structure, scheduling, signal handling, jails, and virtual and physical memory management. The kernel I/O structure is described showing how I/O is multiplexed and the virtual filesystem interface is used to support multiple filesystems. Devices are described showing disk management and their auto-configuration. Next the organization and implementation of the fast filesystem is described, concluding with a discussion of how to maintain consistency in the face of hardware or software failures. The video includes an overview of the ZFS filesystem. The video also covers the socket-based network architecture and layering along with a discussion of routing issues.

The presentations emphasize code organization, data structure navigation, and algorithms.

About the Instructor

Dr. Marshall Kirk McKusick writes books and articles, teaches classes on UNIX- and BSD-related subjects, and provides expert-witness testimony on software patent, trade secret, and copyright issues, particularly those related to operating systems and filesystems. He has been a developer and committer to the FreeBSD Project since its founding in 1994. While at the University of California at Berkeley, he implemented the 4.2BSD fast filesystem and was the Research Computer Scientist at the Berkeley Computer Systems Research Group (CSRG) overseeing the development and release of 4.3BSD and 4.4BSD. He earned his undergraduate degree in electrical engineering from Cornell University and did his graduate work at the University of California at Berkeley, where he received master's degrees in computer science and business administration and a doctoral degree in computer science. He has twice been president of the board of the Usenix Association and is currently a member and treasurer of the FreeBSD Foundation Board of Directors, a member of the editorial board of ACM's Queue magazine, a senior member of the IEEE, and a member of the Usenix Association, ACM, and AAAS.

Skill Level

  • Intermediate

What You Will Learn

  • The video starts with an introduction to the FreeBSD community and explains how it differs from the Linux ecosystem. The video then goes on to provide a firm background in the FreeBSD kernel. The POSIX kernel interfaces are used as examples where they are defined. Where they are not defined, the FreeBSD interfaces are described.
  • The video covers basic kernel services, locking, process structure, scheduling, signal handling, jails, and virtual and physical memory management.
  • The kernel I/O structure is described showing how I/O is multiplexed and the virtual filesystem interface is used to support multiple filesystems.
  • Devices are described showing disk management and their auto-configuration.
  • The organization and implementation of the fast filesystem is described concluding with a discussion of how to maintain consistency in the face of hardware or software failures.
  • The video includes an overview of the ZFS filesystem and covers the socket-based network architecture, layering and routing issues.
  • The presentations emphasize code organization, data structure navigation, and algorithms.

Who Should Take This Course

  • Applications developers, to learn how to effectively and efficiently interface with the system
  • Systems programmers without direct experience with the FreeBSD kernel, to learn how to maintain, tune, and interface with such systems
  • Those involved in technical and sales support, to learn the capabilities and limitations of the system
  • Enterprise and mobile (Android) communities needing to understand the intricacies of FreeBSD and use its advanced features

Course Requirements

This video is directed to users who have had at least a year of experience using a UNIX-like system. They should have an understanding of fundamental algorithms (searching, sorting, and hashing) and data structures (lists, queues, and arrays).

Table of Contents

Introduction to Introduction to the FreeBSD Open Source Operating System LiveLessons

Lesson 1: Introduction to the FreeBSD Community

Lesson 1 describes the way that the FreeBSD community is organized and the way in which it designs, builds, and manages its distributions. The lesson concludes by describing the best use cases for FreeBSD versus Linux.

Lesson 2: Introduction to the Kernel

Lesson 2 provides an introduction to the FreeBSD kernel. It introduces the user process as the central facility that the kernel provides. It shows how a user process communicates with the kernel through the system call interface and uses kernel-based timers to synchronize time-based events. The lesson concludes with a description of the locking mechanisms that the kernel uses to control access to its data structures.

Lesson 3: Processes

Lesson 3 begins by detailing the components that describe a user process. It then outlines the facilities that the kernel provides to support user processes. These facilities include the scheduler that controls when processes get to run, the signal infrastructure for delivering asynchronous events to processes, and the group and session mechanisms for organizing sets of related processes. The lesson concludes by explaining the use of jails as a lightweight virtualization facility.

Lesson 4: Virtual Memory

Lesson 4 explains the management of the virtual memory used by a process. It starts by describing the layout of a process in its virtual memory and shows how the virtual memory is backed by physical memory, swap space, and executable files and libraries in the filesystem. Next it describes the different types of regions that make up an address space and shows how the kernel tracks and manages these regions. It concludes by explaining how the kernel manages the physical memory both for its own use and on behalf of the user processes.

Lesson 5: I/O System Overview

Lesson 5 examines the kernel from the perspective of its I/O hierarchy. It starts by detailing the data structures used by the kernel to describe I/O requests. It then shows how the kernel exports the capability to multiplex I/O operations to user processes. It describes the data structures used to manage the socket, file, and device I/O descriptors for a process. It concludes by motivating the addition of a virtual filesystem interface and describing the virtual file (vnode) data structure and associated support facilities provided for using the virtual filesystem interface.

Lesson 6: Devices

Lesson 6 gives you an overview of how the kernel manages devices. It introduces the special device concept including the mechanisms for naming and controlling access to devices. Next it describes the volume management and disk I/O-subsystem frameworks. It concludes by showing how devices are initially identified and made available for user processes to use.

Lesson 7: The Fast Filesystem

Lesson 7 begins with a multi-decade history describing the evolution of the local FreeBSD filesystem. It reviews the kernel data structures that link from the user-process file descriptor to the local filesystem’s inode data structure used to control access to and describe the location of a file on disk. Next it describes how the kernel optimizes both the I/O to a file and the layout of the file on the disk. It concludes by describing the requirements for maintaining filesystem consistency in the face of either a hardware or a software crash and the various strategies that are used to implement these requirements.

Lesson 8: The ZFS Filesystem

Lesson 8 presents an overview of the Zettabyte filesystem (ZFS) imported from Open Solaris to FreeBSD. It introduces the modules that make up ZFS and describes their functional and structural organization.

Lesson 9: Networking and Interprocess Communication

Lesson 9 introduces the networking and interprocess communications facilities of FreeBSD. It starts by showing how data flows end-to-end between two user-process sockets through the TCP/IP protocols. It then describes the socket and network protocol structures, the mbuf data buffers used to hold the data packets as they flow through the network, and the interface to the networking hardware. Next it explains the migration from version 4 to version 6 of the IP protocol. It concludes with a discussion of the design of and strategies for routing packets through the network.

Summary of Introduction to the FreeBSD Open Source Operating System LiveLessons

About LiveLessons Video Training

The LiveLessons Video Training series publishes hundreds of hands-on, expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. This professional and personal technology video series features world-leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, IBM Press, Pearson IT Certification, Prentice Hall, Sams, and Que. Topics include: IT Certification, Programming, Web Development, Mobile Development, Home and Office Technologies, Business and Management, and more. View all LiveLessons on InformIT at: http://www.informit.com/livelessons.

Table of contents

  1. Introduction
    1. Introduction to the FreeBSD Open-Source Operating System: Introduction
  2. Lesson 1: Introduction to the FreeBSD Community
    1. Learning objectives
    2. 1.1 Understand the FreeBSD Community
    3. 1.2 Compare FreeBSD with Linux
  3. Lesson 2: Introduction to the Kernel
    1. Learning objectives
    2. 2.1 Understand process components
    3. 2.2 Optimize use of system calls
    4. 2.3 Use timers
    5. 2.4 Understand locking hierarchy
  4. Lesson 3: Processes
    1. Learning objectives
    2. 3.1 Understand process structures
    3. 3.2 Select scheduling algorithms
    4. 3.3 Handle asynchronous events
    5. 3.4 Use process groups and sessions
    6. 3.5 Operate jails
  5. Lesson 4: Virtual Memory
    1. Learning objectives
    2. 4.1 Understand virtual memory layout
    3. 4.2 Use physical memory and swap space
    4. 4.3 Understand process address space
    5. 4.4 Use kernel memory allocation
    6. 4.5 Understand types of pages
  6. Lesson 5: I/O System Overview
    1. Learning objectives
    2. 5.1 Understand kernel I/O structure
    3. 5.2 Program multiplexing I/O
    4. 5.3 Understand I/O descriptors
    5. 5.4 Connect to the filesystem interface
    6. 5.5 Understand the contents of a vnode
  7. Lesson 6: Devices
    1. Learning objectives
    2. 6.1 Understand special devices
    3. 6.2 Understand device naming and access
    4. 6.3 Use disk volume management
    5. 6.4 Use the FreeBSD disk I/O subsystem
    6. 6.5 Understand autoconfiguration
  8. Lesson 7: The Fast Filesystem
    1. Learning objectives
    2. 7.1 Understand the history of the fast filesystem
    3. 7.2 Use the current UNIX filesystem
    4. 7.3 Understand the purpose of an inode
    5. 7.4 Optimize I/O in UNIX
    6. 7.5 Optimize storage utilization
    7. 7.6 Maintain filesystem consistency
  9. Lesson 8: The ZFS Filesystem
    1. Learning objectives
    2. 8.1 Understand the Zettabyte filesystem
    3. 8.2 Understand ZFS modules
    4. 8.3 Understand the ZFS functional organization
    5. 8.4 Understand the ZFS structural organization
  10. Lesson 9: Networking and Interprocess Communication
    1. Learning objectives
    2. 9.1 Understand the flow of packets through the network
    3. 9.2 Use sockets and network protocols
    4. 9.3 Understand mbufs and data queueing
    5. 9.4 Connect to the network interface
    6. 9.5 Understand Internet addressing IP version 6 (IPv6)
    7. 9.6 Understand routing design and strategies
  11. Summary
    1. Introduction to the FreeBSD Open-Source Operating System: Summary

Product information

  • Title: Introduction to the FreeBSD Open-Source Operating System
  • Author(s):
  • Release date: September 2015
  • Publisher(s): Pearson
  • ISBN: 013430604X