From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 4 15:02:31 2005
Return-Path:
X-Original-To: freebsd-hackers@FreeBSD.org
Delivered-To: freebsd-hackers@FreeBSD.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP id E445916A41F;
Fri, 4 Nov 2005 15:02:31 +0000 (GMT)
(envelope-from netchild@FreeBSD.org)
Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246])
by mx1.FreeBSD.org (Postfix) with ESMTP id 6451743D45;
Fri, 4 Nov 2005 15:02:29 +0000 (GMT)
(envelope-from netchild@FreeBSD.org)
Received: from Andro-Beta.Leidinger.net (p54A5E2E2.dip.t-dialin.net
[84.165.226.226]) (authenticated bits=0)
by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id
jA4Eeeeh039515; Fri, 4 Nov 2005 15:40:41 +0100 (CET)
(envelope-from netchild@FreeBSD.org)
Received: from localhost (localhost [127.0.0.1])
by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id
jA4F22Ic016879; Fri, 4 Nov 2005 16:02:02 +0100 (CET)
(envelope-from netchild@FreeBSD.org)
Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by
netchild.homeip.net (Horde MIME library) with HTTP; Fri, 04 Nov 2005
16:02:01 +0100
Message-ID: <20051104160201.fpz6q922g44800ws@netchild.homeip.net>
X-Priority: 3 (Normal)
Date: Fri, 04 Nov 2005 16:02:01 +0100
From: Alexander Leidinger
To: Max Laier
References: <436A7474.4040501@sh.cvut.cz>
<20051103.214104.62371333.imp@bsdimp.com>
<20051104094643.S9692@fledge.watson.org>
<200511041508.32729.max@love2party.net>
In-Reply-To: <200511041508.32729.max@love2party.net>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_5g1a28rshqg4"
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11
X-Virus-Scanned: by amavisd-new
Cc: freebsd-hackers@FreeBSD.org, Robert Watson ,
brueffer@FreeBSD.org
Subject: Re: Kernel source hacking
X-BeenThere: freebsd-hackers@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Technical Discussions relating to FreeBSD
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Fri, 04 Nov 2005 15:02:32 -0000
This message is in MIME format.
--=_5g1a28rshqg4
Content-Type: text/plain;
charset=UTF-8;
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Max Laier wrote:
> On Friday 04 November 2005 10:47, Robert Watson wrote:
>> On Thu, 3 Nov 2005, M. Warner Losh wrote:
>> > : Also, is there a page with other tasks for kernel neophytes like me? I
>> > : looked for some such page but I couldn't find any.
>> >
>> > phk used to have a /jkh/ page, or Junior Kernel Hacker page. Don't know
>> > if that's still that way or not.
>>
>> Now that we have a FreeBSD Developer wiki, it may make sense to move the
>> page there so it can be more easily reached and maintained by a broader
>> set of developers?
>
> http://www.freebsd.org/news/status/report-mar-2005-june-2005.html#TODO-list-for-volunteers
>
> Not sure what the current status of the above is ...
A version of the TODO list for volunteers is scheduled to be
reviewed/reformatted by brueffer after 6.0-RELEASE (and I already have
several things I want to add to it after it's reviewed). I don't think he
will mind if someone else with doc-Fu is willing to pull this item from his
TODO list.
My intend is to make the page available parallel to the SoC page, so every
committer can modify it. I didn't do the work in the wiki, since the wiki
has some kind of test-status. The wiki is also not visible from
www.freebsd.org (linking to the wiki from internal/developer.html doesn't
count here in my eyes), so listing nice TODO items there isn't the way to go
for something which is suppoosed to lure people into producing shiny
features.
I've attached the version which is available to brueffer for review (the
other items I want to add are spread as "idea snippets" over my mailbox
folders somewhere). If someone is willing to take one of the items, the
"Port DragonFly's IP checksum code" is done and will be committet (RSN, I
think).
Bye,
Alexander.
--
http://www.Leidinger.net/ Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org/ netchild @ FreeBSD.org : PGP ID = 72077137
Ignorance is bliss.
-- Thomas Gray
Fortune updates the great quotes, #42:
BLISS is ignorance.
--=_5g1a28rshqg4
Content-Type: text/plain;
charset=UTF-8;
name="volunteerTODO.sgml.txt"
Content-Disposition: attachment;
filename="volunteerTODO.sgml.txt"
Content-Transfer-Encoding: 7bit
%includes;
%developers;
]>
&header;
Project Ideas
Userland / Installation Tools
Bundled PXE Installer:
It would be great to
have a bundled PXE installer. This would allow one to boot an
install server from a FreeSBIE live CDROM on one box, set the BIOS
on subsequent boxes to PXE boot, and then have the rest happen by
magic. This would be very helpful for installing cluster nodes,
etc.
Requirements:
Improve our regression testing system:
Nik Clayton has written a regression test infrastructure using Perl.
More of the regression tests should be made to work with libtap.
- Many of the existing tests should be moved from using assert()
to using ok() and friends from libtap.
- More regression tests should be written.
Requirements:
- Good knowledge of scripting languages (perl preferred).
- Good knowledge of software testing.
Willing to mentor: &a.nik;
Tracking performance over time:
One of the major
issues in a project the size of FreeBSD is monitoring changes in
performance characteristics over time. Doing this requires several
things. Those include a suite of appropriate tests, hardware to run
the tests on, a database to store results in, and software to
extract intresting results and display them. Solving the whole
problems is probably beyond the scope of one summer's work, but an
intresting subset should be managable.
Willing to mentor: &a.brooks;
Filesystem
- Autofs:
Create the autofs filesystem from a
specification. Most of this work is done,
however kernel transport and interaction with the "amd"
automounter needs to be completed.
Requirements:
- Knowledge of filesystems and network filesystems.
- Good knowledge of C.
Willing to mentor: &a.alfred;
- Logical Volume Manager
Implement Magic Symlinks:
Experimental
patches
exist against 4-STABLE, though the DragonFly implementation using the
setvar utility should be examined (interesting files in the DragonFly CVS:
sys/kern/init_sysent.c, sys/kern/kern_varsym.c, sys/kern/syscalls.c,
sys/kern/syscalls.master, sys/kern/vfs_lookup.c, sys/sys/syscall-hide.h,
sys/sys/syscall.h, sys/sys/syscall.mk, sys/sys/sysproto.h,
sys/sys/sysunion.h, bin/varsym/varsym.1, bin/varsym/varsym.c).
&a.jwd; can coordinate.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Some filesystem knowledge.
- Fix the ext2fs umount problem:
If an ext2fs is mounted at shutdown time no clean shutdown is
possible. The next boot has to fsck the filesystems. If the
ext2fs is umounted before the shutdown of the system, everything
is fine.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Implement NTFS write support:
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Very good knowledge of the NTFS.
- Fix mdfs lockups when using non-sync operation modes:
Rev. 1.115 of md.c has a discussion of the problem.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Knowledge of the VFS and VMA subsystems.
Networking
- Port DragonFly's IP checksum code:
Our current IP checksum code for x86 CPUs is written in assembly
language and has some flaws which prevent its use with Intels C/C++
compiler. Those flaws may soner or later result in broken code
with gcc too. Other architectures use C versions of the code.
DragonFly's IP checksum code is better suited for modern cpus and
should at least be as good as the previous code, while being more
portable. Interesting files to look at in the DragonFly CVS are
sys/netinet/in_cksum.c, sys/sys/in_cksum.h, sys/netinet/igmp.c,
sys/netinet/in.h, sys/netinet/ip_icmp.c and
sys/i386/i386/in_cksum2.s.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Maybe knowledge of at least i386 assembly language.
- Add zeroconf (Rendezvous/Bonjour) support to FreeBSD:
- Find/write a suitable zeroconf implementation.
- Add zeroconf support to the basesystem daemons.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Modernize ISDN4BSD:
- Refactor i4b to allow to implement locking.
- Modernize the use of kernel APIs in i4b, e.g. use busspace(9).
- Test/fix it on amd64.
- Determine the requirements of external software like asterisk and add missing interfaces.
- Write/add drivers which get recommended by asterisk.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Knowledge about ISDN.
- Knowledge about device driver APIs.
-
- A good understanding of the FreeBSD locking methods.
- Network Disk Device:
Add the ability to
remotely access devices from one system to another. The goal is
to allow remote access to resources such as disks, sound devices,
and other miscellaneous pieces of hardware over the network.
This project would be a good resume builder, but is not for the faint of heart.
Requirements:
- Understanding or interest in remote procedure call systems.
- Understanding or interest in networking (TCP/IP).
- Interest to learn how Unix device drivers work as well as process management.
Willing to mentor: &a.alfred;
- NFS Lockd (improve semantics):
- Improve the semantics of the NFS lockd in FreeBSD. Apple has made certain
enhancements that can be leveraged in our code base.
- Implement state recovery in the lockd.
Requirements:
Willing to mentor: &a.alfred;
- NFS Lockd (kernel implementation):
Moving the lockd
implementation into the kernel provides several key performance
and semantic improvements.
Requirements:
- Good knowledge of C.
- Good understanding of NFS.
- Good understanding of locking.
- Good understanding of RPC.
- Good understanding of kernel level networking.
Willing to mentor: &a.alfred;
- Web100 port to FreeBSD:
The Web100 project was created to
address the problems of TCP performance over long-fat network
pipes. They created an interesting set of tuning and monitoring
patches for Linux which enable significantly better performance
in this area. Integrating this work into FreeBSD could provide
significant benefits in terms of TCP performance in certain
environments.
Requirements:
- Good knowledge of C.
- The features of Web100 need to be mapped into
appropriate FreeBSD abstractions and integrated into the
system.
- The performance impact of these changes would have
to be quantified before the changes could be introduced.
- Good understanding of the TCP protocol.
- Good understanding of kernel interfaces.
Willing to mentor: &a.brooks;
Security
- SecureMines:
Add meta-data to the
system in order to trap intruders and provide an audit log. The
goal of this project is to create several means of marking an
event as a foreign act (such as opening a trap file) which halts
the system and provides as much information as possible,
possibilities include using extended attributes to tag such
"mines".
Requirements:
- Good knowledge of C.
- Good understanding of the Unix process model.
- Good understanding of the FreeBSD kernel.
Willing to mentor: &a.alfred;
Kernel
- Useable lock implementation with SX-semantics:
The current sx(9) implementation has several problems that make it unusable in
many areas: Might sleep (cv_wait) on the shared lock acquisition, implicit,
hardcoded priority order without starvation protection, ...
There are several handrolled lock implementations with SX-semantics in the
tree already that solve some of the problems in their specific domain: MAC,
pfil, ipfw, if_bridge, ...
- Review existing uses of non-standard sx-locks.
- Design an API useable to replace most/all of the handrolled hacks or find
an existing API to do the same.
- Write the actual code.
Requirements:
- C knowledge.
- Knowledge about shared/exclusive locking in SMP systems.
Willing to mentor: &a.mlaier;
- Document as much sysctl's as possible:
The sysctl(8) utility retrieves kernel state and allows processes with
appropriate privilege to set kernel state. On request it is able to
display description lines which document the kernel state. Unfortunately
not every sysctl is documented.
- Find every undocumented sysctl in the kernel.
- Try to determine what this sysctl is for and document it.
This task is shareable with other volunteers.
Requirements:
- Ability to read and understand foreign C code.
- Document the sound subsystem:
- Add sound subsystem related section 9 man-pages, so far no sound
subsystem related pages are there yet.
- Add an example driver in share/examples which allows to write a
new driver. For this purpose the example driver should contain
enough documentation as comments and/or pointers to documentation
in man-section 9. This work can be based upon
http://people.freebsd.org/~cg/template.c
- Rewrite the Sound subsystem chapter in the FreeBSD Architecture
Handbook. The rewrite should contain an overview of the available
parts in the sound subsystem and how they interact (data flow,
dependencies, ...) and fit together. Additionally it should
contain links to already available documentation (official
standards, section 9 man-pages, ...).
Requirements:
- Ability to read and understand foreign C code.
- Documentation writting skills.
Willing to mentor: &a.netchild;,
&a.matk;
- Syncing with the 4Front Technologies
OSS v4 API:
4Front Technologies will go live with an improved OSS API in the
near future and we're discussing syncing with this API at
multimedia@. 4Front Technologies offered assistance. A volunteer
would have to:
- Add the necessary interfaces.
- Add appropriate code to the sound subsystem/drivers where
possible.
- Document the work (man pages, maybe Sound subsystem chapter in
the FreeBSD Architecture Handbook, maybe extending the example
driver). This part overlaps with the Sound subsystem
documentation project. Maybe 4Front is willing to donate parts
of their documentation. Coordination regarding this is required.
- Use the improved API in our userland programs where it is
beneficial.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- At least one supported soundcard.
Willing to mentor: &a.netchild;
- Implement the necessary kernel interface for
4Front Technologies ALSA
to OSS wrapper (SALSA):
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- At least one supported soundcard.
Willing to mentor: &a.netchild;
- Improve the locking of the sound system:
Only parts of the sound system provide fine grained locking yet.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- A good understanding of the FreeBSD locking methods.
- Add High Definition Audio (HDA) support to our sound system:
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- HDA soundcard.
- Implement a generic input device layer:
The kernel is lacking a generic input device layer analog to
the Linux 'input core' layer. Having such a layer would make it
easy to write e.g. touchscreen support (&a.philip; has some work-in-progress
regarding pointer devices and touchscreen support, but not
enough time to also cover keyboard support or other generic features).
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
Willing to mentor: &a.philip;
- Add locking to the CAM layer
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Kowledge about SCSI.
-
- A good understanding of the FreeBSD locking methods.
- Implement iSCSI
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Kowledge about (i)SCSI/CAM.
-
- Port DragonFly's process checkpointing:
Process checkpointing allows to migrate some processes to other machines or
to let some processes "survive" a reboot (subject to some constraints). Interesting
files in the DragonFly CVS are sys/sys/ckpt.h, sys/checkpt/* and sys/kern/imgact_elf.c.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Evaluate and perhaps port DragonFly's optimized memcpy/bcopy/bzero
support subsystem (this includes a FPU subsystem overhault):
Interesting files in the DragonFly CVS are sys/i386/gnu/fpemul/fpu_system.h,
sys/i386/i386/bcopy.s, sys/i386/i386/genassym.c,
sys/i386/i386/globals.s,
sys/i386/i386/machdep.c,
sys/i386/i386/math_emu.h,
sys/i386/i386/mp_machdep.c,
sys/i386/i386/pmap.c,
sys/i386/i386/support.s,
sys/i386/i386/swtch.s,
sys/i386/i386/trap.c,
sys/i386/i386/vm86bios.s,
sys/i386/i386/vm_machdep.c,
sys/i386/include/asmacros.h,
sys/i386/include/globaldata.h,
sys/i386/include/md_var.h,
sys/i386/include/npx.h,
sys/i386/include/pcb.h,
sys/i386/include/thread.h
sys/i386/isa/npx.c,
sys/i386/i386/bcopy.s and sys/i386/i386/bzero.s. A more detailed writeup
can be found in
this compressed file. This includes a mail from Matthew Dillon with
suggestions how to do this in FreeBSD (including a small benchmark which
shows 35%-55% speed improvement for at least those benchmarks).
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Knowledge of at least i386/MMX/XMM assembly.
- A good understanding of the FreeBSD SMP system.
- Roughly 6 weeks of free time.
- Sync our i386 boot code with DragonFly's boot code:
DragonFly invested alot of time to clean-up and document it.
Additionally they fixed some bugs. Interesting files in the
DragonFly CVS are sys/boot/i386/bootasm.h, sys/boot/i386/bootasmdef.c,
sys/boot/boot0/*, sys/boot/boot2/*, sys/boot/i386/btx/*,
sys/boot/i386/cdboot/*, sys/boot/i386/libi386/amd64_tramp.S,
sys/boot/i386/libi386/biosdisk.c and sys/boot/i386/loader/main.c.
An interested volunteer has to compare both implementations and
port over interesting/good parts.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- Knowledge of i386 assembly.
- Knowledge of BIOS interfaces.
-
- Knowledge of low-level boot behavior.
- Fix the CPU usage display in top for threaded processes:
The current kernel statistics do not know how to calculate the CPU usage
of threaded processes. A volunteer has to understand the current statistics
model, design a new statistics model and implement it.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- A good understanding of the FreeBSD SMP system.
- Implement PCI-Hotplug support
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- A good understanding of low-level access of the hardware.
- A good understanding of the FreeBSD device drivers.
- Implement something similar to Solaris' dtrace
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- A good understanding of the FreeBSD kernel.
- Add amd64 native support to thee Linuxulator:
FreeBSD
provides Linux binary compatibility through a Linux system call table
that is invoked when Linux ELF binaries are executed. The
implementation on amd64 machines only provides support for 32bit (x86)
executables.
- Determine a way how to distinguish between 32 bit and 64 bit
applications when entering a system call.
- Design and implement 64 bit support while keeping 32 bit
support.
This needs to be coordinated with
the emulation mailinglistregarding the userland part of the
linuxolator.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- A good understanding of how to do a clean room
implementation of GPLed code (no copy & paste!).
- Annotate every assembler file [*.[sS]] with dwarf2 call frame information:
A debug kernel is not able anymore to show stack traces which cross exceptions.
This is because we do not emit any dwarf2 call frame information for any assembler
code, since gdb switched to the dwarf2 format.
Requirements:
- Knowledge of assembly code.
- Knowledge of ".cfa_*" pseudo-ops to insert dwarf2 frame descriptors.
- Update the Linuxulator:
FreeBSD provides Linux
binary compatibility through a Linux system call table that is
invoked when Linux ELF binaries are executed. This implementation
should be compared with an up-to-date Linux Kernel so that
important missing syscalls can be added to ensure that all
mainstream applications continue to work on FreeBSD.
Requirements:
- Ability to read and understand foreign C code.
- Ability to write C code.
- A good understanding of how to do a clean room
implementation of GPLed code (no copy & paste!).
- Implement passive cooling in ACPI thermal:
The
cpufreq interface should be used to cool the processor, based on
the various _PSV settings. Also, we need to implement variable
polling intervals for thermal zones based on both the passive
settings and polling explicitly specified in the ASL.
Requirements:
- Good knowledge of C.
- Understanding of the hardware/software interface.
- A laptop that works with ACPI.
- Kernel awareness.
Willing to mentor: &a.njl;
and &a.bruno;
- Suspend to disk:
Implement a suspend/resume
from disk mechanism. Possibly use the dump functions to dump
pages to disk, then use ACPI to put the system in S4 or power-off.
Resume would require changes to the loader to load the memory
image directly and then begin executing again.
Requirements:
- Good knowledge of C.
- Understanding of the hardware/software interface.
- A laptop that works with ACPI.
- Kernel awareness.
Willing to mentor: &a.njl;
and &a.bruno;
Additional projects may be found by browsing the FreeBSD Development Projects page (the most
prominent projects are the
FreeBSD ACPI project,
C99 & POSIX Conformance Project,
Large data storage in FreeBSD,
Network Performance Project,
Network Cleanup and Consolidation Project and the
busdma and SMPng driver conversion Project, but
don not forget to have a look at the other projects too) or by
viewing some of the recent Developer
Status Reports.
Mentors
If you are interested in working on a project not explicitly
mentioned above, you may want to contact one of the potential
mentors below about writing a proposal in one of the following broad
categories.
&footer;