The December issue of the Technology Innvation Management Review is out, with the theme of Intellectual Property Rights. Patents get used for Internet Outrage – read this and be better informed.
The FreeBSD Foundation is putting out their end of year donation notice. Donate if you can; the support for active developers there helps everyone.
Two tips for working with pkgsrc, derived in part from this mailing list post on users@ (follow the thread) and from my own experience. If you put WRKOBJDIR=/usr/obj/pkgsrc into /usr/pkg/etc/mk.conf :
- You can clean up any leftover package building files by deleting the files in that directory and leave your pkgsrc files untouched.
- You can have a read-only /usr/pkgsrc, which means it can be shared over NFS (or SMB?) between multiple machines, DragonFly or otherwise.
I’ve had a bunch of posts like this so far, but that’s not a bad thing. Sepherosa Ziehau has a pair of optimizations that appear to make performance with big pipes (1G) and tiny packets (18b, if I read correctly) reach near the physical maximum for 1000-base-T Ethernet.
Another week, another linkpile.
- Here’s some old software. I’ve got something older sitting on my shelf here, though.
- A patch to DragonFly, taken from OpenBSD, submitted by Loganaden Velvindron and committed by Venkatesh Srinivas. The patch isn’t that exciting, but it makes me feel cool to namedrop non-Americanized names. If only I could pronounce them!
- Speaking of which, there isn’t always a lot of comments on this Digest (which is good; a long series of comments on the Internet tend to be the result of trolling or inanity.), but the recent strlen() story led to some juicy details.
- Man, I wish this NoteSlate device existed. There’s the BoogieBoard, but it’s not quite the same.
I’ll make up for my relatively low number of links by asking a question: Where do you go for your end of year gift giving? Where do you wish people would go to buy you gifts? I’m looking for suggestions for a gift guide.
Your unrelated comics link of the week: Gun Show. This one and that one are my favorites.
I think a lot of people don’t realize rcrun exists, and run files in /etc/rc.d directly. If you’re one of those people, read the rcrun(8) manpage. Then, notice that Sascha Wildner has extended rcrun to work with the etc/rc.d in /usr/local and /usr/pkg too.
Francois Tigeot has been working for quite a while on a VFS accounting system. It doesn’t restrict to a quota (yet), but it will give you byte totals for each mounted filesystem. It has been committed, so it looks like a good way to tell which PFS is eating your disk.
Update: Francois pointed out he’s still adding parts for this. So it’s not quite done yet, but soon.
Buildworlds are now much faster, because they can run themselves in parallel. Invoke it using the -j option to make. Matthew Dillon saw a 25% reduction in time when using ‘make -j 12 buildworld’ on a 4-core system. You may need to manually update xinstall and mkdir:
cd /usr/src/usr.bin/xinstall make clean; make obj; make all install cd /usr/src/bin/mkdir make clean; make obj; make all install
It’ll also use more memory than a non-parallel build, but heck, that’s cheap these days.
Venkatesh Srinivas made a minor change to a ddb backtrace – it now prints the raw instruction pointers. On x86_64, a backtrace would not print the correct objects out, so this is better. It’s a minor change, but I’m pointing it out because it totally helped solve a problem for me on a package-building machine.
The general rule of thumb is that if you have a function written in an interpreted language (Perl, Python, etc.), it’ll be faster in C. If you need it faster than that, you go to assembly. Prepare to have your world rocked: Venkatesh Srinivas found that strlen() in libc was actually slower written in assembly than in C. His commit message has numbers to back that up.
Adrian Chadd showed up on the DragonFly kernel@ mailing list, offering some help in keeping things compatible with FreeBSD and 802.11 networking. That’s quite neighborly of him, especially since his hands are already pretty full.
It’s another throughput tweak from Sepherosa Ziehau: soaccept is run differently when pulling in network data from a socket. The commit message once again shows the results of the change using httperf.
As Brooks Davis kindly posted to users@, FOSDEM 2012 will have a “BSD Licensed Operating System Developers Room”. This has the most value to you if you’ll be near Brussels, February 4th and 5th.
Siju George asked about how he could figure out which serial number (in /dev/serno) maps to which disk. Tim Darby posted a script he used for it, or you can just use devattr(8). There’s also a linking trick described by Chris Turner to remember how the names map.
Happy (post) Turkey Day for the U.S. readers! A light link week this week.
- Facebook is bad for the Internet. ‘Gaslighting’ is a new term to me. As that article points out, I can’t even put my posts to the Digest onto Facebook in any sort of automated way. Facebook suggests that of course I’d love to retype them all by hand. That’s not realistic. Facebook doesn’t want any sort of useful external link to be visible to their customers. Customers isn’t actually the right word; the customers are the advertisers. What would be a better word for the users? Crop?
- “the internet is above and beyond all else a resentment machine.” It’s a very long essay that points out people are confusing brand identity with personal identity. (via)
- You know what would be good? More conversations about games on BSD, cause it could use some attention. Oh hey there you go.
- A Dragonfly lamp (via Julian Gehtdichgarnichtsan)
Your unrelated link of the week: Animals Talking In All Caps. It is what it says it is.
Binutils in DragonFly is now up to version 2.22 – the commit linked is one of several.
Francois Tigeot has updated his PDF of Postgres benchmarks with some OpenIndiana results. They’re crazy high, though he reported some freezes too, as with Linux.
BSDTalk 208 is out, where Will Backman talks for 15 minutes about how he uses BSD in his University of Maine UNIX class.
Some time ago, Matthew Dillon worked on a bulk build system that built as much of pkgsrc in parallel as possible. It’s in the tree now as ‘fastbulk‘, for anyone wanting to try it out. I used it a bit; I didn’t measure the degree of speed increase, but was able to get about 70% of the packages built.
