SpeedStep on NetBSD/xen

When you boot NetBSD/xen, you don’t get SpeedStep anymore. At least, on NetBSD 5.1, as of 2011-07-14. Some job have been done in 2009 but wasn’t kept in the sources. Check Add Intel SpeedStep and AMD PowerNow! support in Xen dom0 for more informations.
Continue reading “SpeedStep on NetBSD/xen”

Optimize PHP on NetBSD

On a NAMP (NetBSD, Apache, MySQL, PHP) server, you can get a faster PHP rendering using eAccelerator.

First of all, install the php53-eaccelerator package.
Then, configure PHP to use it and the system to allow memory allocation:

# vi /usr/pkg/etc/php.ini
(...)
extension=eaccelerator.so
[eaccelerator]
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.shm_only="256"
eaccelerator.debug="0"
(...)
# sysctl -w kern.ipc.shmmax=536870912
# vi /etc/sysctl.conf
kern.ipc.shmmax=536870912
# /etc/rc.d/apache restart

According to ApacheBench, the initial “Time per request” was 3 sec. Using eAccelerator, it goes down to 1.9 sec.

Source: Optimize PHP

LAMP/NAMP/OAMP with WordPress just needs CPU

According to the Google robot, my actual configuration serves WordPress pages in about 1-2 seconds. I was looking on improving this a bit.
So I tried various OSes on various machines:

  • A VIA Nehemiah @1GHz
  • An Intel Atom N450 @1.66GHz
  • An Intel Core2Duo T7300 @2.00GHz
  • NetBSD 5.1
  • OpenBSD 4.9
  • Debian GNU/Linux 6

I tried using the same software with no particular optimization (other than the system’s defaults). All of them where using Apache2 (did an extra test with Apache1 on OpenBSD), PHP5 and MySQL. I dumped my production SQL and WWW data. Then browsed a bit with Safari and Firefox to get a “human feeling” on the user experience. Then ran a ab -n 20 -c 5 "http://www.tumfatig.net/?orderby=rand" on those.

The conclusion is quite simple: You don’t really get speed improvement towards OSes. But the faster your CPU is, the faster Apache serves WordPress pages. The conclusion was a bit different on static HTML pages. Especially OpenBSD’s native Apache which was faster than lightning.

Using NetBSD as a Gnome workstation

After a quick review of OpenBSD as a workstation, I wanted to see what NetBSD was like. I’ve used NetBSD quite a lot for both servers and workstations. But since I got my MacBook Pro, two years ago, I only use NetBSD as servers.

So I’m gonna have a look at NetBSD 5.1 and see if I could give this to my daughter.
Continue reading “Using NetBSD as a Gnome workstation”