This article is about monitoring NetBSD with Munin, using munin-node. I already configured a running munin-server on OpenBSD ; so I could simply use it to graph my NetBSD metrics. Here’s, we’ll go through installing both node and server on NetBSD.
ATTOW, pkgsrc provides Munin v1.3.x. So I’m gonna build
pkgsrc-wip. Once this is done, proceed to installation and configuration on the node to be monitored:
My Dell Inspiron Mini 10 ships with an Intel Atom N450. Right now, TuM’Fatig is running on an USB disk plugged in the XPS M1330. So the Mini is in testing mode. Today was the day when I checked the status of NetBSD’s SpeedStep implementation on N450.
Sadly, NetBSD 5.1_STABLE still does not support it ; NetBSD 5.99.55 knows about it though.
For quite a few days now, in my “optimize than damm WordPress” quest, I’m playing with Ubuntu, NetBSD and OpenBSD in (VMware Fusion) virtual machines and spare hardware I have. One of the idea is to optimize MySQL on those systems. The MySQL configuration file in named
my.cnf and is not located in the same place on every systems…
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.
On a NAMP (NetBSD, Apache, MySQL, PHP) server, you can get a faster PHP rendering using eAccelerator.
First of all, install the
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