Trampoline Page + Compressed swap device
[ikiwiki.git] / docs / developer / ProjectsPage.mdwn
8c0cdf29 1# DragonFly Projects
b790f880 2
8c0cdf29 3This page shall serve as a common place to look if you're in search of a DragonFly related project. It's also the place to check if someone else is already working on it (to prevent project collision) or should be contacted.
b790f880 4
8c0cdf29 5[[!toc levels=3 ]]
b790f880 6
8c0cdf29 7## Website projects
b790f880 8
06d07101 9### One-liners
8753e704 10* Add traffic report, especially to lists requests that cause 404s
11* Add the mail archive to the search index
12* Download link right on the main page.
13* Fix [[RecentChanges]] page to have correct links back to git repo
14* Fix RSS feed to have correct links
15* Create layout for that matches the main site.
16* Create short list of tasks for a new DragonFly user
17* how to upgrade the operating system
18* how to get to a working desktop
19* and where and how to report issues.
06d07101 20
21### Post papers in the proper locations on the website
8753e704 22* Format conversion may be necessary
23* Aggelos's papers from [] ( (netmp-paper.pdf and netmp.pdf) to Presentations
24* ["A Peek at the vKernel" article]( from old site
b790f880 25
8c0cdf29 26## Documentation projects
b790f880 27
06d07101 28### One-liners
8753e704 29* Reorder `/usr/src/UPDATING` to put more relevant information at top; remove data no longer relevant.
30* Help out in []( (try to reproduce, diagnose, propose fixes ...)
31* Organize, contribute to, and finish the C book project.
06d07101 32
33### Handbook maintenance
8753e704 34* Check if the content applies to DragonFly. If not, change it.
35* Add new content and enhance the previous chapters
36* Check for syntax error, typos and wiki errors.
37* Add prev/next buttons to all pages.
193c08af 38
87bf445d 39### Write manpages
40* sysref
8c0cdf29 42## Userland projects
b790f880 43
06d07101 44### One-liners
8753e704 45* Update the [[contributed software|docs/user/ContribSoftware]] which is out-of-date.
46* Remove `NOINET6` build option
47* `WARN` corrections to utilities
48* Bring in code from other *BSDs:
49* smbfs changes from FreeBSD
8753e704 50* Add extended slice support to `fdisk`
51* Install Coverity and fix the FreeBSD bugs that were uncovered by Coverity, but do not just blindly pull over the FreeBSD patches. Make sure that you first understand what the patch does.
52* C99 Standards Conformance. The todo list is on [[/docs/developer/StandardsConformanceProject]]
53* Setup a regression testing machine/system to register and find problems and new improvements..
54* Networking performance / scalability
55* [[RegressionTest|/docs/developer/RegressionTest]]
56* also check [[HowToStressTest|/docs/developer/HowToStressTest]]
57* Add lwp support to ptrace/gdb/core dumps.
8753e704 58* Bringing in version 2.0 of the BSD Installer
59* UTF8 support in the console
06d07101 60
61### Scalability (algorithmic performance)
8753e704 62* [](
63* [](
06d07101 64
06d07101 65### Clean our code to make it [style(9)]( compatible.
8753e704 66* Compile and test your changes.
67* Verify that the checksum (sha(1)) of the unmodified object matches the checksum of the cleaned object. Check also with strip(1)+sha(1)
06d07101 68
69### Port BSD-licensed tools (ex: `grep`, `diff` and `sort`)
8753e704 70* The OpenBSD guys already did some work related to that.
71* If you manage to bring the tools to DragonFly, check if everything works as expected (e.g. rc.d scripts, make world runs, ...).
72* The new tools need to have at least all the features of the old GNU tools.
06d07101 73
74### Randomize mmap() offsets
8753e704 75* [](
06d07101 76
99e24f21 77### GDB
8753e704 78* ptrace/gdb follow-fork-mode support and more (peek at linux)
79* Change the build to create one libbfd for gdb and binutils
80* Separate RPC code from NFS into separate library.
82### I/O diagnostic utilities
83* A utility similar to top which displays I/O usage on a per-process basis
84* Network, Disk
8c0cdf29 85
05f26292 86### SMART capabilities
87* Add to natacontrol (see NetBSD's atactl?)
88* Add to camcontrol
90### Disk scheduling rc scripts
91* Create a rc script to manage the disk/io scheduling system
92* Perhaps 1 entry to "enable" it, and all disks will have mode set to "auto", in auto mode smart inquiries and other heuristics could attempt to determine the best i/o scheduler
93* Per-device and device class or similar defaults should be definable in rc.conf also
dcf86f60 94* The bulk of this functionality could be implemented in a resurrected "dschedctl" utility and exposed through the rc interface using just a thin wrapper, allowing hotplug scripts and etc. an easier option to use the same facilities.
05f26292 95
3eda57ef 96### Add usage() to vkernels
97* Most userspace applications have a (traditionally) usage() routine which prints helpful information when passed -h or -? or any unknown command line argument or incorrect syntax.
98* Add a usage() to the vkernel's argument parsing.
100### libHAMMER
101* HAMMER has the capability to expose very rich information to userland through ioctl's.
102* Currently the hammer(8) utility makes use of this information in an ad-hoc manner.
103* Port this core functionality into a public libhammer library so that other base and third party utilities may take advantage of it.
8c0cdf29 105## Kernel projects
06d07101 107### One-liners
8753e704 108* Port the BSDL OSS code to DragonFly
109* Complete Path MTU Discovery by adding a host route to remember the Path MTU and setting a timer to expire old host routes. See netinet/if_ether.c for an example of this mechanism as used by ARP. Periodically increase MTU of hosts that have had its MTU decreased.
110* Look for places in the kernel that can benefit from Solaris-style caching of preconstructed slab allocator objects. If we can find enough of these uses, we can add this functionality to the kernel memory allocator.
111* Implement [`sem_open()`](, [`sem_close()`](, and [`sem_unlink()`](
112* Clean our code to make it [style(9)]( compatible. Compile and test your changes. Verify that the checksum (sha(1)) of the unmodified object matches the checksum of the cleaned object. Check also with strip(1)+sha(1)
113* Setup a regression testing machine/system to register and find problems and new improvements..
8753e704 114* Port or update drivers from other systems.
115* Port NFSv4. [This mail]( is a good starting point.
8753e704 116* clean up buildworld/kernel compilation warnings
8753e704 117* Port DTrace
52dfca9b 118* Port Linux emulation to x86-64
06d07101 119
120### Code to port/sync from FreeBSD
8753e704 121* PCI code (to take advantage of power saving features)
8753e704 122* Bring in support for UFS2, just the changes to extend the width of some fields from 32 bits to 64 bits.
123* hardware drivers.
99e24f21 124
06d07101 125### Code to port/sync from OpenBSD
8753e704 126* Add support for the NoExecute bit as described in [](
127* After that, make user stacks and data heaps non-executable. (W^X)
128* hardware drivers, specially wireless.
06d07101 129
df817d42 130### CPU scheduler
8753e704 131* A scheduler API supporting multiple scheduler implementations already exists
132* Add a Solaris-like dispatcher framework that can handle more than one installed scheduling policy
06d07101 133
134### I/O scheduler
df817d42 135* A pluggable kernel I/O scheduler already exists
136* Implement additional disk scheduling policies
8753e704 137
1ac22aa1 138### Modify firmware framework
139* We currently use the firmware(9) FreeBSD also uses
140* It would be more appropriate to avoid future problems with redistribution problems, etc, to adapt the wifi firmware stuff to use the firmware(9) we used to have before, which was able to load firmware files from userland (/etc/firmware).
141* See "firmware discussion" thread on kernel@ mailing list, March-May 2010.
ca622843 142* Since it's not desired to just add another way of doing it, this project should include getting rid of loading firmwares as modules
1ac22aa1 143
8753e704 144### Work relating to LWKT (LightWeightKernelThreading)
145* Implement lazy IPI cross-processor lwkt message passing.
146* Add timeout functionality to lwkt_waitmsg().
147* Write man pages for the lwkt message passing API.
149### Filesystem extended attributes
150* Generic VFS attributes layer
151* Emulate attributes ala Darwin
152* Allow filesystems to define their own attribute vop ops
153* QUESTIONS: Attributes or subfiles? The consensus is that subfiles are better?
b6a0e48f 155### Capabilities
156* Implement something resembling or inspired by POSIX.1e
157* This implementation could possibly exist in userland and interlock with the kernel via a VFS Journal or HAMMER mirroring ioctl's.
158* These should be capable of supporting NFSv4 capabilities.
159* References: [1](
8753e704 161### Hardware virtualization extensions
162* Increase performance of virtual kernels
163* Make use of hardware virtualization extensions, if supported, to manage vmspaces
0b48e63b 164* Implement a KVM-compatible virtualization device to support qemu
8898930f 165* Hardware IOMMU support is not a priority and if implemented must be strictly optional.
8753e704 166
f1dc70a1 167### Remove zalloc
168* zalloc is a deprecated kernel interface and all current consumers can be ported to objcache, with varying levels of difficulty.
169* Easier: kqueue, nfs nodes, ufs dirhash, aio, crypto, vm_map_entry
170* Harder: zlib, pv entries
171* Once all consumers are ported, zalloc can be removed.
97f327a5 172
b6a0e48f 173### Document all sysctl's
174* The description of sysctl's can be provided when the sysctl is declared and displayed in userland by passing the -d flag to the sysctl utility.
175* Document all undocumented sysctl's
176* Verify that the description of documented sysctl's is correct.
178### Convert kprintf-enabling sysctl's to KTR's
179* Many sysctl's simply enable one or more kernel kprintf's
180* This can be very easy, or can be very unwieldy
181* Convert all of these cases to ktr's, while slightly less easy they are far easier to wield in all cases.
bd0ac588 183### Tear out C/H/S disk reporting
184* Cylinders/Heads/Sectors are an outdated concept and the system doesn't rely on them anymore.
185* Verify the assumption that we don't rely on them in any way, shape or form.
186* Tear the reporting out of the kernel/installer/etc.
e2952a1f 188### Change vm_map lookup algorithm
189* The vm_map lookups currently use a Red-Black tree, since 2005.
190* It has been decided that using an array'ized bucket'ized hash table is probably a better approach.
191* References: [1]( [2](
97f327a5 192
193### Trampoline Code Page instead of direct syscalls
194* Map a read/execute trampoline page into every process, which has a syscall table, i.e. is used instead of "int" to enter the kernel. This way we can easily change the kernel enter method from "int" to e.g. "sysenter" without having to recompile userland applications, or even implement some syscalls in userspace.
196### Compressed in-memory swap device
197* A device that uses physical memory as swap space, but compresses it.
198* Do we support stacking of swap space? For example, one would have this compressed in-memory swap device with highest priority. Replaced objects will be put into the next priority swap device (e.g. a SSD), and so on.
97f327a5 200For more theoretical projects and project concepts see [[ResearchProjects|/docs/developer/ResearchProjectsPage]]