+ All Categories
Home > Documents > Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang...

Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang...

Date post: 12-Aug-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
31
CSE 506: Opera.ng Systems Welcome to CSE 506 Introduc)on & Review Don Porter 1
Transcript
Page 1: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

WelcometoCSE506Introduc)on&Review

DonPorter

1

Page 2: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

WhyGradOS?•  PrimaryGoal:Demys)fyhowcomputerswork

2

Page 3: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Anexampleprogression•  UndergradOS:–  High-levelunderstandingofpaging–  Theore)calissueslikefragmenta)on

•  GradOS(506):Buildapager–  SolidunderstandingofhowpagingSW+HWwork

•  AdvancedGradOS(624):Readnovelresearchpapers–  Docrea)vethingswithpaging:virtualiza)on,security,etc

3

Page 4: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

506:Learnbydoing•  YouwillwritemajorchunksofyourownOS– Memorymanagement,contextswitching,scheduler,filesystem,IPC,networkdriver,shell,etc.

–  Linuxscheduler:•  Difficulttounderstandjustbyreadingsource•  Smallmodifica)onsrequirefirstunderstandingthecode•  Impossibletoreplace/reimplement

–  Nosubs)tuteforbuildingityourself!

4

Page 5: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Alogicalviewofhardware

CPU(s) RAM PCI-XBus

PCIBusSATABIOS

NorthBridge(Fastdevices:e.g.,GPU)

SouthBridge(“Slow”Devices:e.g.,Disk,USB,Mostnetwork)

5

Page 6: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

FewerBridges•  Newersystemorganiza)onsaremovingmoredevicestotheNorthbridge,andconsolida)ngmorethingsontheCPUitself.

6

Page 7: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

AlogicalviewoftheOS

MemoryManagement

CPUScheduler

User

Kernel

Hardware

BinaryFormats

Consistency

SystemCalls

Interrupts Disk Net

RCU FileSystem

DeviceDrivers

Networking Sync

MemoryAllocators Threads

7

Page 8: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Labs,cont.•  Thiscourseiscodingintensive–  YoushouldknowC,orbepreparedtoremediatequickly–  Youwilllearnbasic,inlinex86assembly–  Youmustlearnonyourown/withlabpartner

•  Thelabisdifficult,butworthwhile–  Youwillwanttocommemorate,withaT-shirt,tajoo,etc.

8

Page 9: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

JOS•  DevelopedatMIT,usedatseveraltopschools–  The“J”isforJoshCates,notJava

•  InCandAssembly,bootsonrealPChardware–  Yougettheskeletoncode,fillininteres)ngpieces

•  Buildtherightintui)onsaboutrealOSes–  butwithmuchsimplercode

9

Page 10: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

JOS64•  Youwillactuallyimplementa64-bitvariantofJOS•  DevelopedatStonyBrook!–  PrimarilybyAmitAryaandAbhinandPalicherla–  Contribu)onsalsoby:VivekKulkarni,VarunAgarwal,Chia-CheTsai,TaoZhang,SagarTrehan,JiahongHuang…•  Someofthesefinalprojectsorjustcontribu)onsfromaprevious506course

•  Seeyournameherenextyearifyouaddapar)cularlyusefulfeature!

10

Page 11: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

JOSLabs

MemoryManagement

CPUScheduler

User

Kernel

Hardware

BinaryFormats

Consistency

SystemCalls

Interrupts Disk Net

RCU FileSystem

DeviceDrivers

Networking Sync

MemoryAllocators Threads

2

3

4

5

6

11

Page 12: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Lab6•  3Op)ons

1)  Networkdevicedriver(guidedassignment)2)  MakeJOSahypervisor(guidedassignment)3)  Open-endedproject

•  AddasignificantfeaturetoJOS•  Aresearchtaskonanothersystem

12

Page 13: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

ChallengeProblems•  Eachlabincludeschallengeproblems,whichyoumaycompleteforbonuspoints(generally5—10pointsoutof100)–  Unwisetoturninalablatetodochallengeproblems–  Cancompletechallengeproblemsatanypointinthesemester---evenonoldlabs

•  Indicateanychallengeproblemscompletedinchallenge.txtfile

13

Page 14: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

CSE522•  ThiscoursecanalsocountasyourMSprojectcourse(CSE522)

•  Requirements:Sameas506,except:–  Youmustdothelabsalone–  Youmustcomplete1challengeproblemineachlab

14

Page 15: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

NoTextbook•  You’rewelcome•  Severalrecommendedtexts–  SeveralfreeonSBUsafarionlinesite–  Othersonreserveatlibrary–  Requiredreadingswillmainlybepapersyoucanprintout

15

Page 16: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Lectures•  CompareandcontrastJOSwithreal-worldOSes– MostlyLinux,someWindowsorOSX,FreeBSD,etc.

•  Supplementbackgroundonhardwareprogramming–  Commoneduca)onalgapbetweenOSandarchitecture

16

Page 17: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

MyLectureStyle•  Ilikepar)cipa)onandques)ons•  Icanexplainanyconceptinmanyways,andexplainmissingbackgroundonthefly–  …butIcan’treadyourmind---Ineedtoknowifyoudon’tunderstandsomething!

17

Page 18: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

SBUCapture•  Experiment:TLTwillberecordingtheprojec)onandaudio(novideoofme,sadly)–  Recordingswillbeautoma)callypostedtoBlackBoard–  Intendedtohelpyoustudy–  EspeciallyhelpfulforpeoplewithoutstrongEnglish

•  Thisisbesteffort–  Noguaranteealllectureswillberecorded

•  Thisisnosubs.tuteforlectureaBendance–  Can’taskques)ons

•  IfaBendancesuffers,Iwillstoprecordinglectures

18

Page 19: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

GuestLectures•  Seniorgraduatestudentswillgivesomelecturestogainteachingexperience–  Includingtoday!

•  ProfessorPorterwillreviewandcri)queguestlectures(inpersonorrecorded)withguests

•  Please:–  Askques)onsifsomethingisunclear:inclassoronpiazza–  GiveProf.Portercommentsonguests(andhislectures)---posi)veandnega)ve

19

Page 20: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Prerequisites•  UndergradOS–  Insomecases,industryexperienceisok– Worthbrushingupifithasbeenawhile–  In-classquiz,duebeforeyouleave

•  Ifyoucan’tanswer50%oftheseques)ons,considerugradOS

•  Cprogramming•  BasicUnixcommand-lineproficiency•  SeemeifyouhavealreadydonetheJOSlab,orsimilar

20

Page 21: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Piazza•  Thisistheprimaryannouncementmedium•  Andfordiscussionsaboutcoursework–  Donotpostcodehereorothersolu)ons–  Goal:Everyonecanlearnfromgeneralques)ons

•  Materialdiscussedonpiazzacanbeanexamques)on

•  Detailsforpiazzaforumareonthecoursewebsite

21

Page 22: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Otheradministra)venotes•  Readsyllabuscompletely•  2examscover:lectures,labs,mailinglist•  EverystudentwillgetaVMforlabwork–  Youmayuseyourowncomputer,staffcan’tsupportit

•  [email protected]–  Exceptprivateissuesforinstructoronly

22

Page 23: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

VMAssignments•  YourVMiscse506-USER,whereUSERisyourne)d•  EachVMishostedontheserveresx1sc---esx4sc–  Youshouldreceiveanemailwithyourserverandini)alpassword

•  Theaccountiscse506•  Onceitispoweredon,itwilllistenforsshonport130

•  Changethepasswordimmediately•  Also,checkpointyourVMbeforeyouchangethings

23

Page 24: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

LabPartners•  Canworkalone,butbejerwithhelp–  SomeexcellentstudentsearnedA’sworkingalone– ManygoodstudentsearnedB’sworkingalone–  Noneedtobeahero

•  Chooseyourownpartners–  Labmailinglistgoodforfindingthem

•  Sameforen)recourse–  Changesonlywithinstructorpermission

24

Page 25: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

ToDo•  Emailmeyourpartnerselec)on•  Wewillthencreatethegitrepositoryyouwillusetoturninyourassignments

•  Inthemean)me,clonetheread-only,hjprepositorytogetstarted

•  Pleasedothiswellinadvanceofthedeadline

25

Page 26: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

AcademicIntegrity•  Itakechea)ngveryseriously.Itcanendyourcareer.•  Inagrayarea,itisyourjobtostayonrightsideofline

•  Nevershowyourcodetoanyoneexceptyourpartnerandcoursestaff

•  Neverlookatanyoneelse’scode(incl.otheruniversi)es)

•  Donotdiscusscode;donotdebugeachother’scode•  Acknowledgestudentsthatgiveyougoodideas

26

Page 27: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

IntegrityHomework•  Exercisesapplyingcoursepoliciesandethicstoseveralsitua)ons

•  Dueinclass2/11

27

Page 28: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Lateness•  Eachgroupgets72latehours–  Listhowmanyyouuseinslack.txt–  Eachdayaxerthesearegonecostsafulllejergradeontheassignment

•  Itisyourresponsibilitytousethesetomanage:–  Holidays,weddings,researchdeadlines,conferencetravel,Buffymarathons,releaseofthenextZeldagame,etc.

•  3Excep)ons:illness(needdoctor’snote),deathinimmediatefamily,accommoda)onfordisability

28

Page 29: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Lab1assigned(soon)•  DueFriday,2/19at11:59pm,eastern.•  Instruc)onsonwebsite•  Quickdemo

29

Page 30: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Geznghelp•  TA’s(TBD)willkeepofficehours•  Instructorkeepsofficehours–  Notethat“byappointment”meansmore)meavailableondemand

30

Page 31: Welcome to CSE 506 - Computer Scienceporter/courses/cse506/s16/slides/intro.pdf · CSE 506: Operang Systems No Textbook • You’re welcome • Several recommended texts – Several

CSE506:Opera.ngSystems

Ques)ons?

31


Recommended