da3937dec3f973f08b71e378cecd332bf9ae4266
[pintos-anon] / TODO
1 -*- text -*-
2
3 * Remove names from synchronization primitives?  They don't seem
4   useful in practice.
5
6 * debug_backtrace() in kernel should only dereference valid pointers.
7
8 * Mention how to use add-symbol-file in gdb.
9
10 * We need better and more example programs.
11
12   - Need an mmap example program as a replacement for the crappy mmap FAQ
13     question.
14
15   - How about `diff' and `cmp' programs?
16
17 * Threads:
18
19   - mlfqs tests suck.  They aren't even correct, e.g. the amarv
20     submission from win0405 is graded incorrectly.
21
22 * Userprog project:
23
24   - Don't emphasize that stuff needs to be copied from user space to
25     kernel space.  Instead, emphasize validation and suggest that
26     copying is a common solution and that it will be necessary in
27     project 3 and in real OSes.  Also revise the grading criteria to
28     match.
29
30   - Mark read-only pages as actually read-only in the page table.  Or,
31     since this was consistently rated as the easiest project by the
32     students, require them to do it.
33
34   - Don't provide per-process pagedir implementation but only
35     single-process implementation and require students to implement
36     the separation?  This project was rated as the easiest after all.
37     Alternately we could just remove the synchronization on pid
38     selection and check that students fix it.
39
40 * VM project:
41
42   - Discuss the perils of mixing dirty bits between kernel and user virtual
43     memory.
44
45   - Sample solution.
46
47   - Update grading/vm to reflect new mmap, munmap forms.
48
49 * Filesys project:
50
51   - Increase maximum disk size from 8 MB to something that actually
52     requires doubly indirect nodes.  There is a negative pressure here
53     from the bitmap object--perhaps we need a specialized bitmap that
54     doesn't have to be all in-memory at once.
55
56     Alternatively, shrink the inode size.
57
58   - Add option to disable buffer cache.
59
60   - Sample solution.
61
62   - Need a better way to measure performance improvement of buffer
63     cache.  Some students reported that their system was slower with
64     cache--likely, Bochs doesn't simulate a disk with a realistic
65     speed.
66
67   - Clarify effect of remove(cwd).
68
69 * Documentation:
70
71   - Finish writing tour.
72
73   - Add "Digging Deeper" sections that describe the nitty-gritty x86
74     details for the benefit of those interested.
75
76   - Add explanations of what "real" OSes do to give students some
77     perspective.
78
79   - GNU make 3.80 or later is required.
80
81 * Assignments:
82
83   - Add extra credit:
84
85     . Low-level x86 stuff, like paged page tables.
86
87     . Specifics on how to implement sbrk, malloc.
88
89     . Other good ideas.
90
91     . opendir/readdir/closedir
92
93     . everything needed for getcwd()
94
95 * Tests:
96
97   - Release some of them.
98
99   - The threads, userprog, vm test source files could use
100     factorization and cleanup along the lines of fslib in the filesys
101     tests.
102
103   - The p1-4.c testcase needs significant tuning.  Currently it takes
104     too long (especially when SHOW_PROGRESS is turned on) and doesn't
105     show significant improvement.
106
107 * Code:
108
109   - Need an optimization barrier and an explanation of it in the
110     documentation.
111
112   - Need to check the wait system call more thoroughly.