• Aucun résultat trouvé

Introduction to BSD Unix Introduction to BSD Unix

N/A
N/A
Protected

Academic year: 2022

Partager "Introduction to BSD Unix Introduction to BSD Unix"

Copied!
15
0
0

Texte intégral

(1)

Introduction to BSD Unix Introduction to BSD Unix

CIS 657 CIS 657

(2)

What is BSD?

What is BSD?

Version of Unix developed at UCVersion of Unix developed at UC

Berkeley, under contract from DARPA Berkeley, under contract from DARPA

BSD = Berkeley Software DistributionBSD = Berkeley Software Distribution

FreeBSD is based on 4.4BSD; all theFreeBSD is based on 4.4BSD; all the source code is available

source code is available

THETHE research OS of the 1980 research OS of the 1980’’s ands and early 1990

early 1990’’ss

(3)

Why not Linux?

Why not Linux?

Both have freely-available codeBoth have freely-available code

The BSD kernel stems from a smallThe BSD kernel stems from a small

group and a focused design philosophy;

group and a focused design philosophy;

code was only ever put in by 4 people code was only ever put in by 4 people

More modular kernel makesMore modular kernel makes

programming easier to understand programming easier to understand

(4)

Ok, Ok, But Why FreeBSD? But Why FreeBSD?

Widely available and usedWidely available and used

implementation based on 4.4BSD implementation based on 4.4BSD

Could have usedCould have used

OpenBSDOpenBSD: secure, reliable; not widely: secure, reliable; not widely usedused

NetBSD: alsoNetBSD: also widely-usedwidely-used

FreeBSD hasFreeBSD has its own version of theits own version of the book!

book!

FreeBSD used in a leading OSFreeBSD used in a leading OS

(5)

A Few BSD Innovations A Few BSD Innovations

TCP/IP networkingTCP/IP networking

Virtual MemoryVirtual Memory

the C shellthe C shell

the vi editorthe vi editor

fast file systemfast file system

freely-available Unix (non-AT&T code)freely-available Unix (non-AT&T code)

(6)

UNIX Philosophy UNIX Philosophy

timesharingtimesharing

multiple processes (processes aremultiple processes (processes are cheap)

cheap)

replaceable user interface (shell)replaceable user interface (shell)

file system is a treefile system is a tree

files are sequences of bytesfiles are sequences of bytes

``everything is a file''``everything is a file''

(7)

Unix Philosophy II Unix Philosophy II

simple priority schedulingsimple priority scheduling

swappingswapping

later versions had demand paginglater versions had demand paging

algorithms and data structures selectedalgorithms and data structures selected for simplicity

for simplicity

algorithms and data structures selected foralgorithms and data structures selected for simplicity

simplicity

algorithms and data structures selected foralgorithms and data structures selected for simplicity

simplicity

(8)

Unix Philosophy III Unix Philosophy III

build simple, basic toolsbuild simple, basic tools

construct complex tools out of simpleconstruct complex tools out of simple tools

tools

(9)

BSD Design Overview BSD Design Overview

CIS 657 CIS 657

(10)

4BSD Design Goals 4BSD Design Goals

Some of these came about in the earlySome of these came about in the early 8080’’ss

Virtual memory support: support forVirtual memory support: support for processes with large, sparse address processes with large, sparse address

spaces spaces

3rd-party device support3rd-party device support

Terminal-independent support librariesTerminal-independent support libraries for screen-based applications

for screen-based applications

(11)

4BSD Design Goals II 4BSD Design Goals II

Standardized research operatingStandardized research operating system; first DARPA, then POSIX system; first DARPA, then POSIX

TCP/IP protocol stack promoting easyTCP/IP protocol stack promoting easy sharing of resources (r-commands,

sharing of resources (r-commands, telnet, ftp)

telnet, ftp)

Modularized kernelModularized kernel

Sockets for network programmingSockets for network programming (flexible, simple base)

(flexible, simple base)

(12)

4BSD Design Goals III 4BSD Design Goals III

First, solid basic functionality, then:First, solid basic functionality, then:

Performance improvements afterPerformance improvements after

implementing basic functionality (Chapin implementing basic functionality (Chapinss law of optimization: Make it work, then

law of optimization: Make it work, then make it fast.)

make it fast.)

Diversity into heterogeneous supportDiversity into heterogeneous support (multiple processors, file systems)

(multiple processors, file systems)

(13)

FreeBSD Development FreeBSD Development

Unlike the CSRG @ UCB, FreeBSDUnlike the CSRG @ UCB, FreeBSD doesn

doesn’’t have dedicated stafft have dedicated staff

ElectedElected core members must answer tocore members must answer to committers

committers

Allows for turnover/refreshing the coreAllows for turnover/refreshing the core

New stable release about every twoNew stable release about every two years

years

(14)

BSD Layers

BSD Layers

(15)

Four Basic Facilities Four Basic Facilities

ProcessesProcesses

File Systems and devicesFile Systems and devices

CommunicationsCommunications

System StartupSystem Startup

Références

Documents relatifs

basic, APL, fortran, and SPL, experience with digital electr. Need: mass memory such as floppy disk and a hard-copy device. Designing automated Measurement system

Host Name: of the remote system that will store your backup. If the backup server is on your local network, the host name must be in your hosts file or in the database of the local

Si vous avez déjà créé un compte et que vous voulez que cet utilisateur puisse utiliser su pour devenir root, vous pouvez devenir root et éditer le fichier /etc/group , pour

The following proposition corrects the part of the proof of Proposition 5.7 of the

Subject to the conditions of any agreement between the United Nations and the Organization, approved pursuant to Chapter XVI, States which do not become Members in

Kondo explained this particular feature in terms of the exchange interaction between the spin of conduction electrons and that of magnetic impurity atoms, but the mechanism

„ For prostate, lung, and oral incidence targets and colorectal and female breast mortality targets by race: The above method resulted in projected targets that represented

Having recognized that inter-agency consultation is taking place on measures to minimize health hazards from drinking water on international flights;. URGES the