Development

Ruslan begins his NOFOO->NO_FOO work

| Development

Traditionally, FreeBSD has many NO_FOO knobs while it also has NOFOO knobs that is quite confusing. Today, Ruslan Ermilov (The Makefile guru at FreeBSD campaus) has started his NOFOO -> NO_FOO conversion, this will make everything consist.

参与评论

You must do mount_devfs before jailing!

| Development

Today I start to build a package set for corporation’s production servers. However, perl 5.8 build was stopped with a strange error.

I went into investigating what is happening. Finally I found that I should have mount_devfs’ed before jailing the builder :-( What a shame…

参与评论

About strict-aliasing optimization

| Development

What is strict aliasing? To make the long thing short, it means that the compiler apply strictest aliasing rules applicable to the language and having these assumptions the optimizer can do further optimizations.

To quote gcc manual:

阅读全文…( 本文约 119 字,阅读大致需要 1 分钟 )

Cleaning up FreeBSD userland to make them WARNS=6 clean

| Development

I have started to clean up certain code of FreeBSD userland I interest or use at company, to make them WARNS=6 clean. A patchset separated by categories would be posted on my home directory at freefall right after I have a preliminary test.

Ruslan has suggested that I should have used ``make universe’’ to test my patches and I’ll try this on some 1750 boxes - my laptop is too slow and its hard disk is too small to finish a full make universe build :-)

参与评论

em(4) performance issue?

| Development

Today NetApplience folks has told me that Linux performance is twice better than FreeBSD when using em(4) driver, and they pointed out that the driver FreeBSD is using does not do a good job at this time. I have tried to tune some certain part of the kernel however the result is still not so good at the time I am writing.

阅读全文…( 本文约 136 字,阅读大致需要 1 分钟 )

失之厘豪,谬以千里

| Development

Today, JINMEI Tatuya / 神明達哉 has submitted a patch against sys/kern/uipc_socket2.c, which is:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14

Index: src/sys/kern/uipc_socket2.c
diff -u src/sys/kern/uipc_socket2.c:1.138 src/sys/kern/uipc_socket2.c:1.139
--- src/sys/kern/uipc_socket2.c:1.138	Tue Oct 19 15:13:30 2004
+++ src/sys/kern/uipc_socket2.c	Wed Oct 27 05:37:58 2004
@@ -1253,7 +1253,7 @@
 
 	if (CMSG_SPACE((u_int)size) > MCLBYTES)
 		return ((struct mbuf *) NULL);
-	if (CMSG_SPACE((u_int)size > MLEN))
+	if (CMSG_SPACE((u_int)size) > MLEN)
 		m = m_getcl(M_DONTWAIT, MT_CONTROL, 0);
 	else
 		m = m_get(M_DONTWAIT, MT_CONTROL);
参与评论

HP LJ1000 USB Printer wierdness

| Development

I have fighted against the issue that LJ1000 can’t work correctly with FreeBSD however I have failed.

I got “ulpt0: Input/Output Error” when doing cat foo > /dev/ulpt0.

Of course, cups and friends won’t run with this state.

This problem exists in FreeBSD 5.3-RC, 4.10-STABLE. However, interestingly Windows works correctly.

So, why??

参与评论

RIP: GNU awk

| Development

Today DragonFly has buryed GNU awk. G’bye, amen! :-D

参与评论

Starting to use GAIM etc under FreeBSD

| Development

In order to touch more bugs in FreeBSD so I can fix it, I have switched to FreeBSD and installed GAIM, etc. Amazingly, it seems that 5-STABLE is much more stable then I expect :D

I have installed GAIM and OpenQ (Yes, thanks for all folks who ported it, while I rarely and rarely using QQ these days), and it’s quite good!

参与评论

Scott Long's em(4) super speedup patch

| Development

Scott Long have committed this which will:

阅读全文…( 本文约 92 字,阅读大致需要 1 分钟 )