NetBSD

NetBSD 5.0.1 siginfo_t struct compile errors

Submitted by Anonymous
on September 21, 2009 - 12:27pm

Hi,

When I define any structure member variable with either si_signo, si_code, or si_errno, I got a compiler syntax error. The workaround is to undef these member variables. These variables are posix standard variable for siginfo_t struct. But since I define my own struct tag the compier is not suppose to complaint about it.

#include
#include

BSDCan 2008: Hardware Sensors Framework

Submitted by Jeremy
on June 7, 2008 - 2:09pm

Constantine Murenin offered a history of the OpenBSD hardware sensors framework during his talk at BSDCan 2008, describing how it was originally based on a port from NetBSD, then evolved and was eventually ported to all the BSDs. He also discussed his own involvement with the framework, having ported it from OpenBSD to FreeBSD as a Summer of Code project, and how his port was merged into DragonFly BSD. At the end of the talk, there were some interesting ecxhanges between Constantine and Poul-Henning Kamp, the latter explaining why he'd had the code backed out of FreeBSD and why he continues to oppose it being merged back in.

BSDCan 2008: Google Summer of Code

Submitted by Jeremy
on May 17, 2008 - 11:24am

Leslie Hawthorn, a Program Manager in Google's Open Source team, gave a talk at BSDCAN 2008 on Google's ongoing Summer of Code project. She started by explaining what the open source team does, including enforcing license compliance, hosting over 700,000 open source projects with Google Code, academic research, funding open source development, and community outreach including the sponsorship of conferences such as BSDCan. She went on to discuss how she got started running the project after its initial launch in 2005.

Having sponsored four summer of code's now, Leslie noted that Google has had over 1,500 "graduates" and over 2,000 mentors involved, coming from over 98 countries and working with over 175 open source projects. By the end of the currently in progress 2008 Summer of Code, the project will have provided over 10 million US dollars in funding, generating over 6 million lines of code.

BSDCan 2008

Submitted by Jeremy
on May 14, 2008 - 10:02pm

KernelTrap is excited to be able to offer live coverage of this year's BSDCan 2008 in Ottawa, Canada on May 16th and 17th. The two day conference takes place at the University of Ottawa, and was organized for the fifth consecutive year by Dan Langille who has also made it possible for me to attend and cover the event on KernelTrap. I spoke with Dan to get some background information on the conference, and learn about some of the upcoming highlights.

The event's webpage explains:

"BSDCan, a BSD conference held in Ottawa, Canada, has quickly established itself as the technical conference for people working on and with 4.4BSD based operating systems and related projects. The organizers have found a fantastic formula that appeals to a wide range of people from extreme novices to advanced developers."

Google's Summer of Code 2008

Submitted by Jeremy
on March 24, 2008 - 7:58am

"Google Summer of Code 2008 is on! Over the past three years, the program has brought together over 1500 students and 2000 mentors from 90 countries worldwide, all for the love of code. We look forward to welcoming more new contributors and projects this year," begins a page listing all the projects planning to participate in this year's GSoC. Among the numerous planned participtants there are many kernel projects, including DragonFly BSD, FreeBSD, Git, GNU/Hurd, Linux, Minix, and NetBSD.

Student applications for GSoC projects begin today, running through the end of the month. Read on for many of the participation announcements from the above projects. For more information about the GSoC, the program's FAQ explains:

"Google Summer of Code (GSoC) is a program that offers student developers stipends to write code for various open source projects. Google will be working with a several open source, free software, and technology-related groups to identify and fund several projects over a three month period. Historically, the program has brought together over 1,500 students with over 130 open source projects to create millions of lines of code. The program, which kicked off in 2005, is now in its fourth year."

NetBSD Summer of Code Summary

Submitted by Jeremy
on October 9, 2007 - 7:22am

Mark Weinem offered a summary of NetBSD's six 2007 Summer of Code development projects. The projects included: the Automated Testing Framework, "the goal of the ATF project was to develop a testing framework to easily define test cases and run them in a completely automated way"; porting ZFS, "the primary goal of this project was to port volume emulation (ZVOL) functionality in order to mount ZFS file systems"; QoS framework for NetBSD's virtual memory system, "for delay sensitive systems such as streaming multimedia servers and back-end database systems, servicing the reader processes in a timely fashion is more important than the servicing the writers"; kernel file systems in userspace, as a result of the project, "almost all NetBSD kernel file systems can be compiled, mounted and run in userspace"; and hardware monitoring, "the aim of this project was to develop a kernel event notification framework to notify userland of hardware changes e.g. a new USB device being added". Mark added:

"NetBSD has been involved in the Google Summer of Code since its conception in 2005. This year we were glad to once again have the oppertunity to introduce six students to our operating system, to Open Source software development and get them sponsored by Google to work on projects defined by the NetBSD developers."

Threading Benchmarks, NetBSD versus FreeBSD

Submitted by Jeremy
on October 7, 2007 - 8:24pm
FreeBSD news

Andrew Doran posted some threading benchmark results to NetBSD's tech-kern mailing list, following up to some benchmarks he'd posted earlier. The results compared NetBSD -current with FreeBSD -current, and the Linux 2.6.21 kernel. Kris Kennaway was surprised by the results, and ran his own benchmarks with minimal configuration changes, summarizing, "this measurement shows that FreeBSD is performing 70-80% better than NetBSD in this 4 CPU configuration. This is in contrast to Andrew's findings which seem to show NetBSD performing 10% better than FreeBSD on a 4 CPU system (a very old one though)." He added, "the drop-off above 8 threads on FreeBSD is due to non-scalability of mysql itself. i.e. it comes from pthread mutex contention in userland."

Kris ran additional benchmarks with PostgreSQL instead of MySQL, showing much improved scalability above 8 threads, "postgresql is much more scalable than mysql on this workload and doesn't have silly scaling bottlenecks inside the application (cf the tail of the FreeBSD curve for mysql which is where pthread mutex contention kicked in)." He continued his testing, and found that on older 4CPU P3 hardware NetBSD did outperform FreeBSD, "but only by 3-4% (in particular I am not seeing the ~10% difference that Andrew observes on his 4*p3 700MHz). Given the age of the hardware and the fact that I am not seeing it on other workloads or on modern hardware it might just be due to a small scheduling difference on this configuration."

NetBSD 4.0 Release Candidate 2

Submitted by Jeremy
on October 4, 2007 - 3:03am
NetBSD news

"On behalf of the NetBSD Release Engineering team, I am happy to announce the availability of NetBSD 4.0 Release Candidate 2," stated Pavel Cahyna on the NetBSD -announce mailing list. The lower portion of the changelog lists numerous bug fixes since Release Candidate 1, the most important ones highlighted as: "ICH9 support in wm(4); Enhanced Speedstep support for VIA C7/Eden and amd64; many bugfixes for IPF; FAST_IPSEC fixes; wpi(4) bugfix; proplib local DoS fix; fix procfs exposing the real path of an executable inside chroot; msdosfs bugfix; fix of crash dumps on sparc64; ACPI SCI (system control interrupt) bug fix, addresses interrupt storms seen on some machines."

Pavel went on to note, "please note that in this release candidate, the sparc platform has been accidentally omitted. This will be corrected in the next RC cycle. We plan to release another release candidate next week." He concluded, "please help us test these release candidates as much as possible to make NetBSD 4.0 a solid release."

KernelTrap Mailing List Archives

Submitted by Jeremy
on September 24, 2007 - 1:35pm

KernelTrap now provides a useful interface for reading numerous kernel-related mailing lists. At this time, we are actively archiving multiple Linux, OpenBSD, DragonFlyBSD, FreeBSD, and NetBSD mailing lists. In addition to providing a simple online browsing interface, we also provide multiple RSS feeds for each of our archived mailing lists.

The BSD License

Submitted by Jeremy
on September 6, 2007 - 12:03pm
OpenBSD news

During the continuing debates regarding the legality and fairness of re-licensing BSD licensed code, it was asked why the BSD license couldn't be extracted from Windows applications known to include BSD licensed code. OpenBSD creator Theo de Raadt explained, "what you ran strings on is not 'source code'. It was the binary," pointing to the first clause of the BSD license used by the code in question which says, "redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer." He then quoted the second clause of the BSD license, "redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution," and added, "if you take your Microsoft documentation, and dig really deep, you will find the whole notice copied into it there. Go ahead, you'll find it."

Theo continued, explaining that earlier versions of the BSD license used in OpenBSD and other BSD projects still had the advertising clause which required all advertising materials for products using their code to include a notice stating, "this product includes software developed by the University of California, Berkeley and its contributors." He added, "and.. once again, older copies of Windows DID follow that rule, too, just like Sun and everyone else," noting that one exception was AT&T and the Unix System Laboratories, "who included modified BSD manuals in their Unixware commercial distributions, and that mistake resulted in USL losing the USL v BSDI & University of California lawsuit. (I have simplified the situation, s/losing/settling at a serious loss/)."

NetBSD: 4.0 Release Candidate 1

Submitted by Jeremy
on September 5, 2007 - 5:07am
NetBSD news

"On behalf of the NetBSD Release Engineering Team, it is my pleasure to announce that the first release candidate for NetBSD 4.0 has been released," Liam Foy posted to the NetBSD -announce mailing list. The release has been a long time coming, first announced in August of 2006 by Jeff Rizzo, "NetBSD 4.0_BETA was branched on August 8, 2006 (UTC), and the beta-testing process has officially begun." Shortly after that, Charles Hannum, one of the NetBSD creators, posted an email self-described as a possible eulogy and calling into question the future of the NetBSD project. Updates regarding NetBSD 4.0 were posted in November and December of 2006 regarding delays resulting from two IRC hackathons which caused "a huge flurry of bug-fixing activity, which improved the quality of NetBSD-current a huge amount." This led to NetBSD 4.0 being rebranched from -current to preserve the large number of bug fixes that were made there.

The project's website maintains a comprehensive list of changes in NetBSD 4.0 as compared to the current stable 3.x branch. Liam continued in the release announcement, "we expect to release a second release candidate in about two weeks. Please help us test these release candidates as much as possible, to make sure NetBSD 4.0 will be a solid release.".

OpenBSD: Software Freedom

Submitted by Jeremy
on August 27, 2007 - 3:27am
OpenBSD news

OpenBSD creator Theo de Raadt highlighted a recent commit to the NetBSD source tree saying, "if anyone had any doubt that our insistence on freedom was important, just read this." The referenced commit message describes an effort to work around issues with a blob that is included with NetBSD, something strongly avoided by the OpenBSD project. The commit message states:

"The Atheros HAL on MIPS uses %s7 as a general purpose register, but the rest of the kernel uses it to store the value of curlwp. Sam won't recompile the HAL for us (fair enough), and we can't modify the HAL to use another register because doing so could put us in breach of the license (v. crappy). So, do a save/set/restore on %s7 in KernIntr() and in the stubs that the HAL uses to call back into the kernel.

"Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files."

Feature: Porting The PF Stateful Packet Filter

Submitted by Jeremy
on April 8, 2003 - 5:52pm

The upcoming release of OpenBSD 3.3 on May 1'st will include, among many other improvements, a notably enhanced version of PF, OpenBSD's stateful packet filter. Some of the more significant enhancements to PF include: 'queues', allowing for per-rule bandwidth control [story]; 'pool options', allowing one to utilize multiple uplinks and to intelligently redirect traffic to multiple servers; 'anchors', which allow one to divide packet filtering rule lists into logical pieces; 'tables', efficiently allowing for very large lists; and other parser improvements that make an already friendly syntax more human readable.

PF replaced its predecessor, IPF, with the release of OpenBSD 3.0 in December of 2001. Since that time, this impressive and relatively new packet filter has grown a faithful following (myself included), and continues to evolve rapidly with each new OpenBSD release. Perhaps the greatest compliment, developers have begun to port PF to other operating systems. Back in January, Joel Wilsson announced his effort to port PF to NetBSD. And more recently, Pyun YongHyeon announced his port for FreeBSD.

I approached Pyun to learn more about his recent porting efforts. In the following article he explains why he began working on this port, and what FreeBSD users can expect from the project. Additionally, I spoke with PF creator Daniel Hartmeier [interview], PF developer Henning Brauer, and OpenBSD creator Theo de Raadt [interview]. They all reflect on these recent porting efforts, as well as the exciting new features found in OpenBSD's PF.