FreeBSD FIFO resource leak

Researches Chitti Nimmagadda and Dorr H. Clark of Santa Clara University seem to have discovered and reported a bug in usr/src/sys/fs/fifofs/fifo_vnops.c of FreeBSD 8.0-STABLE release as reported on the FreeBSD bugs mailinglist.

We believe we have identified a significant resource leak present in 6.x, 7.x, and 8.x. We believe this is a regression versus FreeBSD 4.x which appears to do the Right Thing ™.

We have a test program (see below) which will run the system out of sockets by repeated exercise of the failing code path in the kernel.

Our proposed fix is applied to the file usr/src/sys/fs/fifofs/fifo_vnops.c

If interested in (FreeBSD) code, have a look here for more info.

LIOKS’ FreeBSD tutorials & tips for beginners

Liok has put 3 tutorials together for FreeBSD novices:

I often hear from people who don’t use FreeBSD that it’s an operating system only dedicated to server/production purposes.
In a way, yes, FreeBSD is not as user-friendly than popular Linux distributions and it’s sometimes hard to get what you want working the way you want but I don’t think that people who use FreeBSD would be satisfied with an apt-get everything_you_need-any-version ;)
Computers are now expected to browse the web correctly, allowing you to watch youtube video, play flash games and be flooded by plugin-based ads..
Of course, FreeBSD can!

On taking FreeBSD seriously

freebsd_logo-100x100Pongoewin found himself frustrated with Windows 7 at work and decided to take FreeBSD for a spin:

I found myself frustrated with Windows 7 at work. It’s a fairly decent system, and a craptonne better than Vista in both performance and resource usage on the old desktop I have (a Pentium 4/2.66 with a gig of RAM). But it was still slow, and I had heard that FreeBSD was fast approaching the ‘usable’ state for a desktop role. So, I decided to take it for a spin.

Firstly, your experience may vary wildly from mine; I spent the entire weekend compiling everything (including the kernel and all of KDE) to my own liking (and optimisation). And disclaimer: this is on a new ATA-133 drive that actually beats older SATA drives on sustained speed (the very definition of ‘win’).

He goes on comparing Windows – FreeBSD with regards to the following topics:

  • Installation
  • Productivity
  • Office Stuff
  • Email
  • Media
  • IM
  • Other stuff

He concludes by saying:

It’s not really different from Windows, but it’s free and you have more options.

Windows has buggy apps. OS X has buggy apps. FreeBSD has buggy apps. It’s all really a matter of preference. Windows is more tweaked for the beginning computer user, and as such has a lot of safeguards built-in. This is a Good Thing(TM) for new users, but it gets dreadful and annoying to people like me. OS X has its strong points, but it can be wildly random. And randomness is one thing all IT people hate — because it’s nigh-on-impossible to pin down exactly where the problem lies. FreeBSD…what can I say. It’s grown so much from the days of 5.x when I started to run it on servers. And overall, though it may not be as user-friendly as Ubuntu, it certainly packs a mean punch, and anyone who isn’t afraid to learn, is able to devote a bit of time to read the FreeBSD Handbook and other interesting manuals, and get their hands a bit “dirty” with computer knowledge should seriously consider using it as a desktop — especially Linux users looking for more. I’d liken running FreeBSD on a computer to performing maintenance on your car; most people don’t want to do it, but the ones who do save time, money, and have the feeling of a job well done.

Well, that’s Pongoewin’s verdict. What are your experiences with FreeBSD on the desktop, or with PC-BSD, that’s especially geared for desktop use?

Portmaster funding proposal

Doug Barton wrote in the @announce mailing list,

I have launched an initiative to give the community the opportunity to fund further development work on portmaster. As much as I love doing this work I need to be able to support myself and my family and the kinds of features that users have requested (such as package support) will take a lot of time to implement correctly.

The URL is here: http://dougbarton.us/portmaster-proposal.html

Several users have been kind enough to send donations and I have updated the web page to indicate the work that has been completed, and that which is in progress.

If you have any interest in funding this project take a look at that web page. Of course additional ideas for features are also welcome.

Have a look at or download portmaster here

11 BSD Success Stories

O’Reilly has a free PDF article with 11 BSD success stories

Adventures in BSD
How BSD Keeps Me Sane
FreeBSD at Shannon Medical Center
BSD in a Panic
You Haven’t Had E-mail Since When? FreeBSD
saves a dot-org, and maybe me, too!
A FreeBSD Success Story
(and Dragon?yBSD too)
BSD In a Microsoft Of?ce
Museum Guardian
OpenBSD Saves the Day
A FreeBSD Implementation
Open Source Software in
Co-operation Ireland
  1. Adventures in BSD
  2. How BSD Keeps Me Sane
  3. FreeBSD at Shannon Medical Center
  4. BSD in a Panic
  5. You Haven’t Had E-mail Since When? FreeBSD saves a dot-org, and maybe me, too!
  6. A FreeBSD Success Story (and Dragon?yBSD too)
  7. BSD In a Microsoft Of?ce
  8. Museum Guardian
  9. OpenBSD Saves the Day
  10. A FreeBSD Implementation
  11. Open Source Software in  Co-operation Ireland

Read/Download the article

(via – freebsd.lt)

Development Release: FreeBSD 8.0-RC2

Ken Smith announced on 28/10 the availability of the second release candidate for FreeBSD 8.0:

The second of the release candidates for the FreeBSD 8.0 release cycle is now available. At this point we feel most of what has been discovered during public testing that is feasible to fix as part of the release process has been addressed. So the current plan is to have 8.0-RC3 in about two weeks. ISO images for all supported architectures are available on the FTP sites, and a ‘memory stick’ image is available for amd64/i386 architectures. For amd64/i386 architectures the CD-ROM and memory stick images include the documentation packages but no other packages. The DVD image includes the packages that will probably be available on the official release media.

Announcement | Download | Website

New FreeBSD Foundation Project: Flattened Device Tree

FreeBSD foundation logoThe FreeBSD Foundation has announced another funded project!

“Rafal Jaworowski and Semihalf has been awarded a grant to provide FreeBSD with support for the flattened device tree (FDT) technology. This project allows for describing hardware resources of a computer system and their dependencies in a platform-neutral and portable way.

The main consumers of this functionality are embedded systems whose hardware resources assignment cannot be probed or self-discovered.

The FDT idea is inherited from Open Firmware IEEE 1275 device-tree notion (part of the regular Open Firmware implementation), and among other deployments is used as a basis for Power.org’s embedded platform
reference specification (ePAPR).

Rafal JaworowskiThanks to this project, embedded FreeBSD platforms will grow in a uniform and extensible way of representing hardware devices, compliant with industry standards (ePAPR, Open Firmware), independent of architecture and platform (portable across ARM, MIPS, PowerPC etc.),

said Rafal Jaworoski, FreeBSD Developer.

Semihalf is a privately owned company, based in Krakow, Poland. They specialize in embedded systems design and development, with expertise in both software and hardware. Among their portfolio are FreeBSD ports to high-end embedded processors (including multi-core) with a wide range of peripheral drivers (storage, networking, pattern matching, security engines etc.); most of this work is publicly available from the FreeBSD repository.

You can find out more about the project at http://wiki.freebsd.org/FlattenedDeviceTree.

This project will complete by February 2010.”

If you want, you can support this project too.