Skip to content

fATwaer/6.828-JOS

Repository files navigation

JOS

Writeup

JOS is operating system kernel, supporting memory management, preemptive multitasking, file system and network !

  1. boot
  2. memory management
  3. Process
  4. Multi-Tasking
  5. file system
  6. network

Make grade

Boot

running JOS: (1.5s) 
  printf: OK 
  backtrace count: OK 
  backtrace arguments: OK 
  backtrace symbols: OK 
  backtrace lines: OK 
Score: 50/50

Memory Management

divzero: OK (1.6s)
    (Old jos.out.divzero failure log removed)
softint: OK (2.2s)
    (Old jos.out.softint failure log removed)
badsegment: OK (1.9s)
    (Old jos.out.badsegment failure log removed)
Part A score: 30/30

faultread: OK (1.9s)
faultreadkernel: OK (2.1s)
faultwrite: OK (2.0s)
faultwritekernel: OK (1.9s)
breakpoint: OK (1.2s)
testbss: OK (1.8s)
hello: OK (2.1s)
buggyhello: OK (2.0s)
buggyhello2: OK (2.0s)
evilhello: OK (2.1s)
Part B score: 50/50

Score: 80/80

User Environment

divzero: OK (1.0s)
softint: OK (1.0s)
badsegment: OK (1.0s)
Part A score: 30/30

faultread: OK (1.0s)
faultreadkernel: OK (1.9s)
faultwrite: OK (1.2s)
faultwritekernel: OK (2.0s)
breakpoint: OK (1.9s)
testbss: OK (2.1s)
hello: OK (1.9s)
buggyhello: OK (2.2s)
    (Old jos.out.buggyhello failure log removed)
buggyhello2: OK (1.9s)
    (Old jos.out.buggyhello2 failure log removed)
evilhello: OK (2.1s)
    (Old jos.out.evilhello failure log removed)
Part B score: 50/50

Preemptive Multitasking

dumbfork: OK (2.1s)
Part A score: 5/5

faultread: OK (1.4s)
faultwrite: OK (1.9s)
faultdie: OK (1.9s)
faultregs: OK (2.0s)
faultalloc: OK (2.1s)
faultallocbad: OK (2.0s)
faultnostack: OK (2.0s)
faultbadhandler: OK (1.9s)
faultevilhandler: OK (1.2s)
forktree: OK (2.0s)
Part B score: 50/50

spin: OK (2.0s) 
stresssched: OK (2.4s)
sendpage: OK (2.0s)
pingpong: OK (2.0s)
primes: OK (4.4s)
Part C score: 25/25

Score: 80/80

File System

internal FS tests [fs/test.c]: OK (2.6s)
  fs i/o: OK
  check_bc: OK
  check_super: OK
  check_bitmap: OK
  alloc_block: OK
  file_open: OK
  file_get_block: OK
  file_flush/file_truncate/file rewrite: OK
testfile: OK (2.3s)
  serve_open/file_stat/file_close: OK
  file_read: OK
  file_write: OK
  file_read after file_write: OK
  open: OK
  large file: OK
spawn via spawnhello: OK (2.4s)
Protection I/O space: OK (2.4s)
    (Old jos.out.faultio failure log removed)
PTE_SHARE [testpteshare]: OK (2.3s)
PTE_SHARE [testfdsharing]: OK (1.4s)
start the shell [icode]: Timeout! OK (31.1s)
testshell: OK (4.0s)
primespipe: OK (6.7s)
Score: 150/150

Network Driver

testtime: OK (8.0s)
pci attach: OK (1.2s)
testoutput [5 packets]: OK (2.2s)
testoutput [100 packets]: OK (2.6s)
Part A score: 35/35

testinput [5 packets]: OK (2.7s)
testinput [100 packets]: OK (1.7s)
tcp echo server [echosrv]: OK (2.3s)
web server [httpd]:
  http://localhost:26002/: OK (1.4s)
  http://localhost:26002/index.html: OK (1.3s)
  http://localhost:26002/random_file.txt: OK (2.5s)
Part B score: 70/70

Score: 105/105

About

A tiny OS Supporting Preemptive Multitasking, File System and Network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published