Odds and ends

To content | To menu | To search

Sunday 21 October 2007

Power use

The other day I bought one of those power consumption monitors (only 12 Euro at an electronics outlet). Some results:

  • My Dell OptiPlex GX240 with an 1.5 GHz server with ondemand cpufreq (with p4-clockmod) and a tickless kernel: 38W (Idle) to ~80W (compilation). This suprised me, it uses a Netburst-based P4 CPU, so I was kinda wary to keep this machine running most of the day. But at 38W most of the day it is doing quite well, and it is still a pretty powerful machine (for e-mail, file, and shell serving).
  • My main work machine with a Core2 Duo CPU clocking at 1.8GHz, 1GB RAM, onboard video chipset (nVidia), and a 240GB harddisk uses ~120W with a 17" TFT monitor.
  • An eBox, with a VIA C3 800MHz CPU, and 256MB RAM, on-board video chipset (VIA) with an external USB consumes about 24W. This was intended to be my lightweight low-wattage mail server. Unfortunately, it overheats with an internal disk, and doesn't boot from some external USB disks.
  • Lamp in my living room: 0W to more than 200 Watt, depending on the slider setting. While it strong enough to light my living room, this one definitely needs to go.

I still haven't tested the NSLU2. Conclusion: I'll replace the lamp by one or two low-power lamps. The (low) power use of Optiplex was really suprising, and will be my permanent server replacing the NSLU2 (to slow) and the eBox (to many hassles/unreliable).

Monday 15 October 2007

T-DOSE impressions

T-DOSE was very nice. It's a great opportunity to meet up again with other CentOS contributors, and talk to a lot of people (some of which I have known for years through Internet fora and/or IRC). Some impressions:

  • T-DOSE was nicely organized, hopefully next year will even bring more people, booths, and talks. The location was also excellent (not too far away from the train station, modern and very functional) building.
  • Presenting stuff surely helps: some good soul pointed out that XenSource provides kernel patches against EL3 kernels. For some reason I didn't see or hear about it before.
  • I only attended one other presentation, from Wybo Wiersma of the Logi Logi foundation who has some really nice ideas about freedoms in a Web 2.0 world. While I am not sure their approach to providing more freedom is the most effective, the talk gave good food for thought, and some nice discussion.
  • For the photo addicts: there will a photo of the T-DOSE booth team :).
  • We need CentOS stickers and posters.

Thursday 11 October 2007

This weekend: T-DOSE

If you live in or near The Netherlands, don't miss out on The Dutch Open Source Event (T-DOSE) that will be held on 13 and 14 October in Eindhoven. There's an interesting schedule, various projects have booths, and of course, there will be a social event.

Thanks to the tireless effort of Dag and other volunteers almost no West-European event goes by without CentOS presence. T-DOSE is no exception: there will be a booth and talks about dstat (Dag) and CentOS Virtualization (me). We could use additional help at the booth, so if you are interested, please visit the CentOS page for this event and let us know through the CentOS-promo list.

See you this weekend!

Monday 1 October 2007

Planet CentOS moves to planet.CentOS.org

We have just moved the Planet CentOS site to http://planet.centos.org/, making this the official CentOS blog aggregation site. I will make the old site (http://centos-planet.danieldk.org/) a redirect to the new location within a few days.

This is also a call to CentOS contributors (e.g. Wiki editors): if you would like your blog to be added to the Planet CentOS site, let me (daniel at centos dot org) know!

Sunday 2 September 2007

CentOS Virtualization SIG

As of today, the first CentOS special interest group is active, the Virtualization SIG. A SIG is a smaller group within the CentOS project that focuses on a certain topic, and does promotion, support, and/or development in that area. Besides the creation of the Virtualization SIG, planning for some other SIGs is underway, e.g. an Artwork SIG.

The Virtualization SIG has various technical and support goals. As a part of the latter, the CentOS-virt list was created to discuss virtualization on CentOS and matters related to the virtualization SIG. For more information about the SIG and its goals, please read the announcement message to the CentOS-announce list.

Saturday 1 September 2007

KVM hits CentOS-extras

KVM-35 is now available through the CentOS Extras repository for CentOS 5. To use it, install the kmod-kvm package for your kernel, and reboot your system (or restart udev) to make sure that the /dev/kvm device node gets correct permissions. At boot time, the kvm-amd or kvm-intel module will be loaded, based on the CPU extensions that were found in /proc/cpuinfo. Users that should be able to use KVM should be added to the kvm group. After that, virtual machines can be created through the qemu-kvm command, which is based on QEMU and follows the QEMU syntax.

Thursday 16 August 2007

Moving

Yay, I am finally moving from a "student room" (studentenkamer) to a more spacious apartment. Fortunately, it's just across a little square that separates two buildings, so I can move all my stuff by foot. Though, my ADSL connection has to be switched over too, so I may drop off the net for a short while ;).

Wednesday 1 August 2007

KVM SRPMs

Unofficial CentOS SRPMs are now available for KVM-33. KVM (Kernel Virtual Machine) is a loadable kernel module that provides virtualization infrastructure that utilizes the VT-X and AMD-V features of modern Intel and AMD CPUs. A modified version of qemu makes use of this infrastructure to run fully virtualized guest operating systems at an impressive speed. Personally, I use it for running older CentOS versions, and occassionally to run Windows 2000 for stuff I need to test there. It's well worth looking at, if you like the ease of use and maintenance of qemu.

Wednesday 4 July 2007

Extending DocBook RelaxNG schema

A while ago I switched from DocBook 4.x DTDs to the DocBook 5 RELAX NG schema. RELAX NG supports XML namespaces, I like the compact RELAX NG syntax for its readability, and it is arguably easier to extend than DTDs. While I agree that XML can be painful to edit by hand without a proper editor, XML with proper schemas and stylesheets certainly make writing content easier, especially due to its extensibility. E.g., for a book I am working on, I wanted to extend DocBook to be able to add platform testing information to be able to see in hindsight if I tested a piece of content on every system I want to cover. E.g.:

<sect1 xml:id="somesection">
  <title>Some section</title>

  <platformtests>
      <platform os="Debian GNU/Linux" version="4.0" arch="i386" />
      <platform os="FreeBSD" version="6.2" arch="i386" />
  </platformtests>

  <!-- ... -->
</sect1>

Of course, adding the "platformtests" blocks will be invalid, because they are not described in the schema. This is easily solved by writing a small scheme on top of the DocBook schema:

default namespace db = "http://docbook.org/ns/docbook"

include "docbook.rnc"

dbx.platformtests = element platformtests {
        element platform {
                attribute os { text },
                attribute version { text },
                attribute arch { text }
        }+
}

db.extension.blocks |= dbx.platformtests

This piece of scheme includes the DocBook schema, and defines "platformtests" blocks that can be used at places where normal content blocks can be used (e.g. section bodies). With these schema you can validate DocBook documents with platform tests. Of course, platform tests are not known by the stylesheets, so you will want to modify them to handle "platformtests" elements. In this case, is just a piece of help for me, and I do not want it to show up in HTML or FO documents, so an empty XSL template for this element will handle it fine.

Of course, you can do a lot of other fun stuff with the RELAX NG schemas for DocBook. E.g. Norman Walsh has a nice recipe for making a minimal DocBook variant with relatively little work.

Saturday 30 June 2007

NSLU2

 After hearing Gideon/Etelerro's enthousiasm about the NSLU2 (Linksys Network Storage Link for USB 2.0 Disk Driver), I decided to get one myself. It is a tiny, fanless device that can be used to share USB storage devices over a network. It run's its own Linux system with a web interface, but its firmware can easily be replaced with alternative firmware. I decided to use Debian installer firmware to install Debian to the NSLU2.

The NSLU2 uses a 266MHz Intel XScale ARM processor. Of course, this CPU is fairly slow compared to modern desktop systems. Aditionally, the device has 32MB RAM. Nonetheless, it's a great system to run a minimal Debian installation for sharing file over the network (SMB/NFS), handling some mail, running a light webserver, etc. And uses far less power than the average 400MHz closet home server.

I currently have Samba and OpenSSH running, and it seems to cope well with only 32MB RAM:

daniel@slug:~$ free -m
             total       used       free     shared    buffers     cached
Mem:            29         28          1          0          2         15
-/+ buffers/cache:          9         19
Swap:         1270          2       1268

Thursday 10 May 2007

yum-metadata-parser for yum 2.4

Some CentOS 5 (or Fedora) users may have tried the new C metadata parser for yum, which is significantly faster than the Python-based parser for metadata. Yesterday, I have backported the C metadata parser to yum 2.4 for CentOS 4. It requires a relatively unintrusive patch against yum and a patch against yum-metadata-parser 1.1.0.

Of course, we all want benchmarks :). This is yum on CentOS 4 with the default repositories:

# yum clean all
# time yum whatprovides /bin/ls
[...]
real    0m45.158s
user    0m34.600s
sys     0m0.540s

and with the C metadata parser:

# yum clean all
# time yum whatprovides /bin/ls
[...]
real    0m15.580s
user    0m3.950s
sys     0m0.620s

Looking at the user/sys values, the actual CPU time spent on yum is 35.1 seconds versus 4.6 seconds.

Update: there's a patch for CentOS 3 too. Testing packages are now available through the CentOS Testing repository.

Thursday 3 May 2007

Website move

I have moved danieldk.org to a fresh new server running CentOS 5. I couple of files may still be missing in an attempt to clear up unused subdirectories a bit. My blog has changed as well, my registrar, Gandi now includes a blog service with domains. It looks quite nice, and cuts down maintenance time, so let's see how well this works :). Enjoy your day!

page 2 of 2 -