Compile FreeBSD Kernel
23/12/2007 14:11First of all, you need to have full FreeBSD source tree to build the kernel. If you dont, download them now.
* COPY /usr/src/sys/i386/conf/GENERIC /root/sys/TAO and ln -s /root/sys/TAO /usr/src/sys/i386/conf/TAO
* vi /root/sys/TAO, comment all the device you dont need
* Change scheduler to ULE if you are using FreeBSD 7 (experimental), as mention by Kris, new ULE scheduler has better performance than tranditional 4BSD
http://www.elian.co.uk/2007/12/22/does-freebsd-7-solve-its-mysql-problem/
* Change /etc/make.conf. As V7 support core2 CPUTYPE, so
CPUTYPE?=core2
CFLAGS=-O2 -fno-strict-aliasing -pipe
For pre 7 users, see
http://gentoo-wiki.com/Safe_Cflags#Intel_Core_2_Duo.2FQuad_.2F_Xeon_51xx.2F53xx
*Go to /usr/src/sys/i386/conf directory, and run config TAO to create a compile directory. It is very helpful if you want to keep serveral version of kernel
* Go to ../compile/Tao and run make cleandepend && make depend
* and “make”, it will take very long time and depending on the speed of your machine and your configure file
* make install and reboot your machine. If the new kernel cannot be load correctly or some devices do not function, you can use load kernel.old or kernel.GENERIC to go back to old kernel or generic kernel
N.B. here is my kernel configure file
http://www.elian.co.uk/2007/12/23/taos-kernel/
* After installing new kernel, you have to rebuild your world, otherwise, many program cannot run correctly(To me, sockstat -cl cannot should TCP ports listening)
cd /usr/src
make buildworld (took about two hours)
reboot into single user mode
mergemaster -p
make installworld
mergemaster
reboot
Tags: cflags, Computing, freebsd, kernel, OS, ule
Categories: Computing, OS, FreeBSD
No Comments »
Does FreeBSD 7 solve its MySQL problem?
22/12/2007 19:19A very famous article by Jeremy pointed out the reason mysql database had lower performance on BSD system which is my most preferred OS (http://jeremy.zawodny.com/blog/archives/000203.html). Although, there is a work-around by using LinuxThread (http://pauillac.inria.fr/~xleroy/linuxthreads/), it cannot satisfy all the pure BSDers.
Since the annoucement of V7, many people are exciting for its new features. Especially, the improvement of scheduler, both 4BSD and ULE. But the question is does V7 really solve the MySQL problem? what is the performance of MySQL on FreeBSD 7. I read Kris’ “7.0 Preview” today, it really makes believe so.
http://people.freebsd.org/~kris/scaling/7.0%20Preview.pdf
Tags: 4bsd, 7, Computing, freebsd, mysql, Networking, new features, OS, performance, ule
Categories: Computing, OS, Networking, FreeBSD
No Comments »

