Saturday, April 4, 2026

Windows 11 got you down? Thinking about Linux?

There's no reason to beat around the bush - Windows 11 sucks. Windows 10 is usable but no where near as good as Windows 7 was. The problem with Windows 11 is that it so desperately tries to reinvent itself that it soiled the bed trying to show off to the user. I hated it almost instantly after trying it. I would've been impressed if Microsoft went back to a more Windows 7 way of thinking. Windows 7 was, what i concider to be, a real operating system. Windows 10 and 11 is more of an advertising platform or perpetual "shareware". Come to think of it, why does Microsoft charge money for an operating system like Windows 10 (and 11)? It's littred with sponsores software, it collects user data like nobodys business and violates the users privacy like no other operating system before it. I doubt Windows 12 will be any better, and with all the AI features showed down our throats and telemetry it's becoming increasingly stupid to actually use Windows. It is no longer a serious operating system. Linux is good enough for nearly everything so I think it's time to switch to Linux for day to day use.

HP Z820 Upgrades

Note: This text is many years old that I never got around to posting, I may have written it over 5 years ago. The Z820 is now a very old computer - I still have it but rarely ever use it.

Since I bought myself a HP Z820 Workstation I've made several upgrades to it, in fact - most of the internals are new. The first round of upgrades I did were the following:
  • Upgraded the motherboard from a REV 1.00 to a 1.03. The new 1.03 board has a more recent bootblock and supports E5v2 Xeons, Intel AMT 8.x and 1886MHz RAM.
  • Upgraded both CPU's from two Xeon E5-2690's to Xeon E5-2680v2's, improving not only core-count (4 extra cores + 8 more threads) but overall performance. The machine now has 20 cores and 40 threads. I didn't go with the 12-core E5-2697v2 option because the raw core speed (base clock and turbo boost) would be too low and the 10-core Xeon E5-2690v2 were almost double the price of the E5-2680v2's for next-to-zero gain - except in some heavily multithreaded workloads (12+ threads). The E5-2680v2's also has a surprisingly low 115W TDP which is a really nice bonus. A benefit from keeping the TDP down is that air-cooling is guaranteed to suffice so watercooling isn't necessary (required for the E5-2687Wv2's according to the specification). This will avoid certain risks a couple years down the line since HP's watercooling is more likely than air cooling to fail over time and will be much more difficult to find replacements parts for as time goes on and stocks dwindle. Another smart option would've been the E5-2667v2's but i favored the lower TDP and higher core count over the improved core speed.
  • Replaced the fan shroud with a new and unused one, lowering noise output slightly.
  • Upgraded RAM from 32GB (4x8GB) 1600Mhz Hynix with 64GB (8x8GB) 1866MHz Micron RAM.
  • Upgraded the boot drive from a HP 500GB SAS drive to a 512GB Samsung 950 Pro M.2 NVMe (that has the required NVMe OOPROM). This, along with a Aqua Computer Kryo M.2 PCIe adapter made a great combo. This should even outperform a HP Turbo Drive G1 that has the slower Samsung SM951. The HP Performance Advisor even detects the 950 Pro as an HP Turbo Drive for some reason.
  • Upgraded the Quadro 4000 with a GTX 1080 Founders Edition. Not a workstation card so it's isn't ideal for CAD work but useful for pushing high resolutions on 3 1440p displays.
  • Got myself a rather hard to get dual 6-pin to single 8-pin adapter that enables use of cards that has an 8-pin power connector such as the GTX 1080 (Update: Avoid these, system becomes unstable due to insufficient power delivery - go for a dual 6-pin to 8-pin instead).
  • Replaced both sidepanels with the more rare black ones, giving the workstation a stealthy look. This is one of the most aesthetically pleasing upgrades you can make - highly recommended these parts if you can find them.
  • Bought the slot-loading optical drive carrier option to replace the included, and rather dull, 5.25" inch DVD burner with a slot-loading Blu-ray burner.
  • Bought the Z840 Intel vPro Wireless card option - not only giving it the ability connect wirelessly but also bluetooth (I still use ethernet cables though for performance). Not sure if the Z820's AMT supports this card but I don't use AMT anyway.
In my second round of upgrades I got:
  • Upgraded the GTX 1080 Founders Edition with a Titan Xp. Titans are rediculous cards, I know, but they're also a surprisingly good fit for Z820 while being a lot cheaper than a Quadro P5000/P6000 - and if you get a second hand one for a good price? Why not. The Xp even has a slight performance edge over the P6000 in a number of cases. This is about as high as I think you should go with the Z820 in terms of graphics given the limited power delivery options you have (3x6-pin power connectors) all of which are put to use with the Titan XP. The latest high-end RTX cards require dual 8-pin power delivery which is too much for the Z820. I suppose you might be able to use a dual molex to single 6-pin adapter daisy chained with yet another dual 6-pin to 8-pin adapter and I'm still not sure the two molexes would give you enough power (you need 75w) to make it stable - the custom PSU in these machines might not follow the standards. In theory, it should work, but I wouldn't count on it and the cost of an RTX 2080 Ti card is just way too much when the Titan Xp is a perfect fit. The great thing about the Titan Xp in a Z820, however, is that the Z820's cooling augments the Xp's blower design and keeps it quiet and cool so the thermal throttling these particular cards are known for becomes a non-issue. The best conceivable card for this machine would of course be the P6000 but the price tag is just so over the top for a mere enthusiast. The RTX 2080 Ti on the other hand would probably be a better choice for a Z840 if you could track down a blower version. I suspect the Z820 would bottleneck a RTX 2080 Ti, keeping the cards from living up to it's full potential - I'm already seeing a bit of this with the Titan Xp.
  • Replaced the slot-loading Blu-ray drive with the original slot-loading dvd drive the carrier was supposed to come with. Turns out the blu-ray drive I bought was a rather shitty one, oh well.
  • Added a second Samsung 950 Pro M.2 drive. Also mounted with a Aqua Computer Kryo M.2 PCIe adapter.
  • Added a Samsung 860 Pro 500GB SATA drive, will probably be removed later due to already having two M.2's.
  • Added a 10TB HGST SAS (Helio 10) drive.
In my third round of upgrades I bought:
  • Dual Xeon E5-2667v2's, I sacrificed four cores and eight threads for higher base/turbo clocks. Performance is about equal to what you would expect from a pair of Xeon E5-2687W v2's eventhough the base clock is 100MHz lower. On UserBenchmark my personal highest CPU score was 97 and the highest anyone has achieved is a score of 100 with a pair of E5-2687W v2's and those have a higher TDP and are limited to 256GB RAM unlike the E5-2667 v2's.
  • Another 8x8GB 64GB Micron RAM Kit, topping out at 128GB total.
  • Dual HP Z Coolers, they really are better and gave me equal temperatures on the E5-2667v2's to the stock coolers with the lower TDP Xeon E5-2680v2's. My personal opinion on these though? Don't waste your money unless you absolutely need a couple of degrees of improvment. Way too expensive for what they are.
Accessories I got are
  • 3x HP Z24nq (Quad HD) IPS displays. These are 60Hz displays and might be suboptimal for gaming, but excellent for professional work.
  • A triple monitor stand.
  • Creative Katana Soundbar. Amazing sound for what it is and does not take up much space with minimal cabling - I recommend this one.
  • Corsair RGB Mechanical keyboard.
  • Corsair RGB Mouse.
  • Corsair RGB headphone stand.
  • Corsair M300 extended mouse pad.
  • Corsair HS50 headphones, as daily drivers.
  • Audio Technica ATH-M50x headphones, for professional work.

Some regrets


I regret buying a cheap triple monitor stand off eBay instead of looking around more and checking reviews. Quite frankly it was utter garbage and poorly designed. I had to get a new one and this time I followed other people's recommendations.

I regret buying so many "gamer" accessories. I don't even game all that often so they look a bit out of place hooked up to a professional workstation. Corsairs build quality is top notch and some of the best accessories I've ever used but the gamer features are silly and in some cases poorly thought out. The RGB features are proprietary on both the Creative Katana and Corsair gear so multiple softwares are required to configure lighting. The rediculously fast polling rate on the keyboard forces you to leave it in BIOS mode at all times because otherwise keystokes don't register during the early boot process, preventing you from entering BIOS, but BIOS mode also cannot be enabled when you use the iCUE software so flipping back and forth between modes still becomes a neccessary thing. The headset stand is unable to save RGB configuration on the device itself so during boot you get the default rainbow effect and the iCUE software is thus required to run at all times to sustain the RGB effect you configured (Why on the headset stand only?! Annoying as hell). Also, the headset stand apparently presents itself as an input device over USB so if it's connected and powered on during boot it might, annoyingly, cause conflict with your actual keyboard and once again make your system unable to register keystrokes. Still, I can't go back to generic OEM keyboards because the build quality of both the mouse and keyboard are just that good and the typing experience is second to none. Eventhough the headset stand is so annoying I can't complain about the excellent build quality, aesthetics and the awesome built-in DAC. This leaves me torn and longing for accessories with the same build quality yet with all the gamer features stripped out and paired with a stronger focus on compatibility with a wider range of systems.

Monday, July 24, 2017

HP Z820 Workstation & GTX 1080 - Will it work?

The short answer is: Not out of the box, but it will work with a very specific adapter.

The long answer is: To power a GTX 1080 in a Z820 Workstation a single 6pin-to-8pin PCIe power adapter will not be sufficient. There has still been some discussion about if it might work because there isn't all that much information about the PSU and how it's configured internally. Sometimes a 6-to-8pin adapter can work with certain PSU's that exceed the normal specifications of the 6pin connector - perhaps to enable use of such adapters. On the Z820 and the 1125w PSU it doesn't work.

The system boots fine and is usable until you stress the GPU at which point it will promptly bluescreen. To be fair, on paper it should not work because a 6pin connector provides only 75w and the PCIe bus gives you another 75w - amounting to 150w. The GTX 1080, on the other hand, needs about 170-180w under full load. So, how does one even use a >150w card on the Z820? You will need something like this



A dual 6pin-to-8pin adapter, but unfortunately they are about as easy to find as pink unicorns (try eBay?). These provides you with 225w of power (75+75+75w) and will make your card run stable with 35-45w overhead. Nvidia does not recommend these adapters due to "grounding requirements" of these power hungry cards - as such you will not find these being sold by Nvidia nor will you get one with your GTX 1080 purchase. These adapters do work, so if you're out of options and are willing to risk a configuration that might not be covered under warranty then a dual 6pin-to-8pin adapter is pretty much your only option. These adapters are probably difficult to find because most people would buy a new PSU to fulfill the GTX 1080's requirements. As a Z820 owner, however, you don't have that luxury because of the non-standard PSU formfactor.

Saturday, July 22, 2017

CentOS 7 & GTX 1080

CentOS 7 does not currently support Nvidia Pascal GPU's out of the box so if you are running into issues with the graphical installer then it's a safe bet that it's because you have a Pascal card in your machine. You can work around this by using the text-based installer but partitioning isn't as full-featured so you might be forced to use the automatic partitioning option.

Once CentOS is installed you can simply download the proprietary Nvidia drivers - which work quite nicely I might add - and be up and running with your desktop in no time. As long as you know how to navigate the commandline until you get the proper drivers installed then it shouldn't be much of a challange.

I have a GTX 1080 in my workstation and the graphical installer hung while systemd was initializing. You'd think at least VESA graphics would work on Pascal GPU's but it doesn't - at least not currently. Hopefully the CentOS installation disks will be updated at some point to at least include rudimentary GTX 10XX support.

Saturday, January 21, 2017

List of maker boards

Ever since the Raspberry Pi became popular several new ARM development boards have hit the market, some even predate the Pi but gained more popularity as the Pi paved the way into mainstream. It's getting to the point where it's difficult to keep track of all the new offerings so this post is a reference list for myself which i plan on updating as new interesting devices become available. It only lists hacker friendly mainboards and not ARM devices in general. It would be fun to add some MIPS based boards too - some do exist, but the ARM based devices tend to be more interesting and popular. I list only the models with the highest spec available.

With the performance boost of the Raspberry Pi 2 & 3 most alternative maker boards loose their appeal - but the various outputs or the presence of gigabit ethernet still makes some alternatives into better options. Recently Udoo has caught my attention as a project with interesting ideas and their recent x86 model has great potential for real-world deployment where the Raspberry is too limited - digital signage springs to mind. I've known about Udoo for years but now that their x86 board is on it's way I think it has excellent potential even though it's a lot more expensive than the Pi.

Board URL CPU Cores GPU RAM
Raspberry Pi 3 Website ARM Cortex A53 4@1.2GHz Broadcom VideoCore IV 1GB
Beagleboard Website ARM Cortex A8 1@1GHz PowerVR SGX530 512MB
Pandaboard Website ARM Cortex A9 MPCore 2@1.2GHz PowerVR SGX540 1GB
ArndaleBoard Website ARM Cortex A15 2@1.7GHz Mali-T604 2GB
Wandboard Website Freescale i.MX6 Quad 4@1GHz Vivante GC 2000 2GB
Udoo Website Freescale i.MX6 Quad 4@1GHz Vivante GC 2000 1GB
HummingBoard Website Freescale i.MX6 Quad 4@1GHz Vivante GC 2000 2GB
pcDuino3 Website AllWinner A20 (ARM Cortex A7 Dual Core) 2@1GHz Mali-400MP2 (Dual Core) 1GB
Banana Pi Website AllWinner A20 (ARM Cortex A7 Dual Core) 2@1GHz Mali-400MP2 (Dual Core) 1GB
Cubieboard Website AllWinner A20 (ARM Cortex-A7 Dual Core) 2@1GHz Mali-400MP2 (Dual Core) 2GB
OLinuXino Website ?? ?? ?? ??
APC Rock Website ?? ?? ?? ??
Origenboard Website ?? ?? ?? ??
ODROID Website ?? ?? ?? ??
CuBox-i Website ?? ?? ?? ??


I'll keep updating this.

Friday, January 6, 2017

How to force a downgrade of the BIOS on a HP Z Workstation

Important note: I've only done this on a HP Z820 so I cannot guarantee that it's possible on other models.

I ran into a seemingly rare problem when i upgraded to the latest BIOS on my Z820 Workstation - Intel AMT stopped working. I didn't notice this at first so I could only assume the BIOS upgrade screwed things up. My machine originally had a really old original 1.x BIOS on it and I only did one intermediate (and mandatory) BIOS update before I jumped to the very latest version and I think this huge leap between versions might have contributed to the breakage - that along with the fact that I hadn't flashed the latest Intel AMT firmware along with the newer BIOS. To my dismay the HP download page said that BIOS downgrades were no longer allowed and sure enough - you really can't downgrade - not even when flashing from inside the BIOS. It was sloppy of me not to check this beforehand.

So what was I to do? I tried everything I could think of and finally discovered how to get around this and in the end it wasn't even all that difficult, obvious even. You see, HP Z Workstations allows you to bridge some pins on the motherboard to put the machine in emergency recovery mode (look it up in the manual) to rescue the computer from a bad BIOS flash. In emergency recovery mode you bypass the BIOS entirely and use the bootblock to load an old BIOS image from a USB stick - one that doesn't prevent downgrades which then, in turn, allows you to flash any BIOS version. The emergency recovery procedure is well documented. It probably didn't occur to the HP engineers that the bootblock should be able to prevent older BIOS's from loading because that in itself would involve risks if a new and badly flashed BIOS along with the bootblock prevented you from going to an earlier (working) version.

The procedure is as follows:
  1. Bridge the emergency recovery pins on motherboard (check manual for instructions).
  2. Prepare a USB stick with an older BIOS that doesn't prevent downgrades - this is very important. Only the last couple of versions prevent downgrades so you won't have to go too far back. Changelogs will note if BIOS no longer allows downgrade.
  3. Boot your workstation with USB stick connected to a USB port, the emergency recovery mode will now start the computer seemingly like normal - except the older BIOS is now running off your USB stick and not the one flashed to your motherboard. Pay attention during boot to see which BIOS version is loaded as you boot.
  4. Download and flash any BIOS version you like once booted into your operating system, effectively downgrading the BIOS.
  5. Unbridge pins on motherboard.

As far as I know the BIOS still needs to be a signed, original HP BIOS and I assume the bootblock verifies this. Still, I haven't tried any non-official firmware so I cannot say for sure.

Anyway, Intel AMT started working again with the latest BIOS after I made smaller, incremental, updates between versions and somewhere in between I managed to flash the latest Intel AMT firmware so this little trick solved my problem. I can't remember all the BIOS versions I jumped between to get AMT up and running again but it shouldn't be difficult to figure out - just keep downgrading to older BIOS's until you find one that makes it work again and then do upgrades a bit more carefully - and don't forget to check the device manager to make sure the Intel Management Engine is still working. Regardless of what HP wants you to think you will not break the machine by going from the very latest BIOS to a much older one - older BIOS's worked just fine for me. There are also other reasons you might want to downgrade the BIOS - some applications are certified to run on very specific BIOS versions so this way you can downgrade a new BIOS to one that is certified for an application that requires it. Or maybe a newer version was just unstable? That's something I've experienced on occasion.

HP insist that "you cannot downgrade" but considering that others might run into similar problems I figured this trick could be important to share. What's interesting is that there is no way for HP to actually prevent you from doing this in the future unless they're willing to also update the bootblock and they are notoriously resistant to do this - and for good reason, because it opens up the possibility of permanently bricking a machine in the event of a bad flash of said bootblock. If, however, they did release bootblock updates with version checking many would at the same time rejoice as newer bootblocks would finally allow early revision motherboards to support v2 Xeons, which they technically can do but are not allowed to by the older 2011 bootblock. Still, my guess is that HP will never allow bootblock updates and this also means is that they can never stop you from downgrading the BIOS regardless of what they claim.

Thursday, January 5, 2017

HP Z820 Workstation Fan Inventory

I've been considering a complete fan replacement on my HP Z820 Workstation but there are some issues to be aware of. First of all there is a whopping 12 fans in total and HP uses a non-standard OEM pinout, which makes the modifier numbers especially important. The second issue is that different workstation revisions use different fans - some fan shrouds seem to be equipped with Delta fans only while others are a mix of Delta, Nidec and AVC. Surprisingly the model numbers used on individual fans is poorly documented, presumably because owners are expected to buy an entire fan shroud replacement if one or more fans go bad or a kit of front or back facing fans. If the fans go bad on the power supply you are probably meant to get a new one. When you have an expired warranty, options become a bit more limited so I find it far more compelling and cost effective to just buy the individual fans and replace them myself, and to do that you'll need to know exactly what models that work.

My goal here is to - first and foremost - identify all the fans, including their positions, in my own workstation and then all alternatives that can work as drop-in replacements. The HP Z820 seems to be able to use the exact same fans as the newer Z840 and vice versa. A number of these fans should work in the Z600/Z400-series and the older Z800. I cannot confirm this, however, as I don't have a Z800 so my main focus will be on the Z820.

Why bother with this? Delta fans, for example, have a good reputation but are unfortunately known to be noisy so owners with those might be interested in the quieter Nidec options - especially if you do audio work and need a quieter system. Those of us with Nidec fans might be interested in replacing them with Delta's for other reasons - perhaps the better longevity, price and availability are deciding factors. I wanted to document the cooling fans to make things easier for people who want to do the replacement themselves so having the exact model information should keep your workstation within HP's specifications (CFM, RPM etc.). The fan numbering scheme i use in the images is arbitrary. I think information about alternative fans to those i happen to have is somewhat complete but I have no way of knowing if I've identified all variants HP has used in these workstations. I don't have all modifier numbers yet but I will update this post when/if I do.

Update: I went with the option of replacing the entire shroud because the combined shipping costs and rarity of some fans was making things difficult. I got a great deal on eBay on a brand new shroud for the dual cpu option.

The Shroud



The Case



The Powersupply


FAN1, FAN2 & FAN4


  Dimensions: 60mm (Blower-style) 4-pin
  Model: Delta BUB0712HF
  Modifier number: -BE04
  HP P/N: 670051-001 REV 1

FAN3

Note: The AVC fan in my shroud doesn't seem to have a HP product number which suggests that the generic model might have the same pinout. I did manage to find the PN from other sources, however.

  Dimensions: 60*60*25mm 4-pin PWM
  Model: AVC DS06025B12U
  Modifier number: P063
  HP P/N: 670050-001 Rev.A

  Alternative Delta Model
  Dimensions: 60*60*25mm 4-pin PWM
  Model: Delta AFB0612EH
  Modifier number: ??
  HP P/N: ?? (PN Required for HP OEM model)

FAN5, FAN6, FAN9 & FAN10

Note: The Nidec fans are rated at ~38db while Delta's are around ~45-49db and both run at 3800 RPM. Some sources suggest the Nidec fans use sleeve bearings while others that it's a ball bearing - I'm pretty sure they're sleeve bearing. The 92mm Nidec's have a MTBF of 45.000h which is nearly equal to the 50.000h you are likely to get from the Delta. I could not find the specifications for these exact OEM fans so these are my best guesses based on the specifications of the non-OEM equivalents of the Nidec and Delta fans. In other words, I cannot guarantee the above statements about the bearing, MTBF and noise profile to be 100% correct.

  Dimensions: 92*92*25mm 4-pin
  Model: Nidec T92T12MS3A7-57A03
  Modifier number: 2223G
  HP P/N: 647113-001 REVA (or REVB)

  Alternative Delta Model
  Dimensions: 92*92*25mm 4-pin
  Model: Delta QUR0912VH
  Modifier number: -AK59
  HP P/N: 647113-001 REV 0A

  Alternative Nidec Model (New revision that should work)
  Dimensions: 92*92*25mm 4-pin
  Model: Nidec FAN A T92T12MS3A7-57A03
  Modifier number: ??
  HP P/N: 644315-001 REVB

  Alternative Delta Model (Used in Z800 that should work)
  Dimensions: 92*92*25mm 4-pin
  Model: Delta QUR0912VH
  Modifier number: -8C2T
  HP P/N: 468763-001

FAN7 & FAN8

Note: FAN7 & FAN8 come as a pair with wires going to the same proprietary 6-pin connector

  Dimensions: Dual 92*92*25mm fans to one 6-pin
  Model: Nidec FAN B T92T12MS3A7-57A03
  Modifier number: 2429H F4 / 4X30H G4
  HP P/N: 644315-001 REVB

  Alternative Delta Model
  Dimensions: Dual 92*92*25mm fans to one 6-pin
  Model: Delta QUR0912VH
  Modifier number: -BL3H
  HP P/N: 644315-001 REV 0B (or 0A)

FAN11 & FAN12

Note: The powersupply contains two identical Delta fans of the below model, these were found in the 1125W PSU and are likely also to be found in the less powerful 800W PSU. Given that Delta built these power supplies I seriously doubt any other fan manufacturers are used.

  Dimensions: 80*80*25mm 4-pin
  Model: Delta QUR0812SH
  Modifier number: -HE00
  HP P/N: None

Friday, January 4, 2013

Was udev a bad idea? Not at first.

I'm not an expert when it comes to device handling on Linux but I have written udev rules in the past (since 071 and earlier) and do have some familiarity, and at the time udev was first introduced it looked like an excellent solution. In fact, I felt it was a welcomed change from devfs. Not so long ago time came to upgrade to 105, and boy was I surprised - these days udev really looks like shit.

It sure doesn't seem like udev's design has scaled very well. For instance, udev rules you wrote even 6 month ago are unlikely to work with the most recent version because they keep changing the syntax every few releases. Why would stuff like $modalias suddenly be changed to a much uglier $env{MODALIAS}? I'm curious to know why anyone would favor such a syntax.

Also, udev 071 consisted of a fairly small set of binaries, but later releases grew to pretty much one helper program for each device class, and you are now expected to do stuff like copy pre-made symlinks and device nodes manually into the /dev directory. If anything, wasn't that supposed to be udev's job in the first place? A nice improvement is that udev 071+ completely replaces hotplug for the 2.6 kernel - which is perhaps the reason for all the helper programs.. I'm not entirely sure. I still think it could have been done a lot cleaner, though.

udev rules used to be something that could be written in a very clean and comprehensible style, but now you'll get a headache just by looking at basic examples. Quite frankly I'm starting to dislike it more and more and sometimes find myself wishing for it to just go away. After looking at FreeBSD and how clean /dev is kept I'm starting to wonder if it really was such a great idea to abandon devfs all together.

Update: The above is an old post. Since then udev was merged into systemd - a rat's nest of a init system that I'm forced to use daily, fortunately the eudev fork exists.

Friday, September 28, 2012

Good practices - A plea to open source projects

I compile, configure and test the software used on mainstream Linux distributions. I do this on a private distribution (for personal use) and at the moment it consists of slightly more than 1000 (no, this is not a typo) build scripts, which I have written myself. I maintain the init scripts and all package builds in the entire Linux distribution software stack - everything from the kernel, glibc, to the compiler toolchain all the way up to Xorg and KDE. I even wrote a scripted package manager to aid me in my task and automate the process, I haven't switched to it yet but plan to eventually. Needless to say, I know my way around Linux fairly well. Because I package so much of the Linux software stack I also know many of the dirty little secrets we hide from end users behind our crafted packages. Users are often oblivious about how much trouble package maintainers have to go through just to get their favorite application compiled, packaged and ready to be executed.

About 90% of the software projects I encounter are well behaved, well structured and well designed. It's that last 10% I spend 90% of my time with trying to get up and running, for whatever reason. This is what this post is all about - saving time and frustration.

My beef with the current state of open source/free software is the departure from traditional UNIX software engineering principles. Software projects today seem to ignore stuff like FHS (File Hierarchy Standard) and basics of the Unix Philosophy. One rule is - write simple parts connected by clean interfaces. I see this and other principles violated left and right, and blatant violations of FHS are not uncommon. Read the FHS, trust me - it won't take long. This will allow you to understand the beauty of the UNIX filesystem layout, there is practically a directory assigned for everything you might think of, and once you understand it you'll appreciate how elegant it is. People with a background on Windows systems rarely understand nor appreciate why the directory layout looks the way it does on UNIX-like operating systems but once you do I'm sure you'll grow to love the logic behind it. At first glance it looks cryptic, but there's a reason for that - and the benefits are still there today in spite of it's long history. It isn't as complex as you might think. For example, if you've written a library then it belongs in /lib or /usr/lib (depending on what kind of library it is, a core os library would belong in /lib while a less crucial library belongs in /usr/lib). Does your server program need to write data somewhere? Have a look at /var. Is your application a desktop application and need to write data somewhere? Do it in a dot directory somewhere in the users $HOME path. Do you have static data that should be availabe system-wide? Stick it in /usr/share. That's what the FHS is for - it describes the filesystem and what all these directories are meant for.

There are brilliant programmers out there who write excellent programs but some of them haven't taken the time to understand these basics, and thus their programs, brilliant though they might be, behave in undesirable ways. It isn't exactly fun to dig through someones code and patch it to conform to the FHS. For people who package software this makes your application high-maintenance. A piece of advice to software engineers - take a long hard look at the build scripts and .spec files used by distributions to build and package your program, if it's riddled with hacks just to get it packaged then you should probably consider simplifying and correcting the build framework.

If you're using the GNU autotool framework to build your software then make sure it respects all the standard configure switches, and more importantly make really sure that DESTDIR works as it's supposed to, you'd be surprised how many software projects that neglect this particular feature, but it's essential for packaging the program. For aestethic (and some practical) reasons - avoid CamelCase in program names, don't use version numbers in paths - and if you need to then opt for /usr/include/app/$VERSION rather than /usr/include/app-$VERSION, we have pkg-config for a reason - it's handy for locating package-specific directories, and simplifies management of multiple versions of a program or library on the same system - no need to clutter the top level /usr/include directory.

Use relative rather than absolute symlinks for "make install", you don't want symlinks to point to the wrong files which is what will probably happen if your application resides on a mounted filesystem, and if it doesn't then the symlink will be broken. It also makes chroot jails easier - although I wouldn't expect anyone to design their application with this in mind. In the end it's just cleaner and better to always use relative symlinks.

Do NOT change the API unless you also change the major version number. Be patient, and if you desperately want to make changes to your API then wait until you are ready to release the next major version. Why? Because that's what we (downstream) are expecting - API changes in major version changes. Let me clarify why. For example, lets assume your library is widely used by other projects, but you descide to push a major API change in a point release. Oblivious to this change downstream updates to the new point release thinking it's API compatible with the previous point release you made. It will take time before we realize a dozen other applications no longer compile due to the change. Now we have to downgrade and recompile once more. I'd love to tell you that we always read ChangeLog's but sadly some of us just don't have the time.

Do NOT use unstable, in-development libraries and core component. This causes endless misery due to constant breakage. Wait until the API and design has stabilized and please, please don't make dependencies to svn/git/cvs versions. Unless stable tarballs have been released then don't hook your code into it's API. Gnome has always been a real PITA because they do this, and I've occasionally had to pull code from CVS just to get "just the right version" to make it work. I get it - you want the latest and greatest features but please, do not torment downstream with dependencies to unreleased code.

Digitally sign your code, ALWAYS. Make this a habit. While most people who download your code probably won't verify the signature you'll be glad you signed it if your code distribution site is hacked. It happens, and when it does it's one hell of a task to figure out what was tampered with.

On a more personal note I'd want to encourage projects to stick to a single compression format for releases rather than making three or four identical tarballs compressed with different algorithms that need to be signed independently. My suggestion? Stick to gzip. It decompresses faster than any other algorithm and while it's very inefficent when compared to LZMA2 (.xz) you'll only need to do the one tarball and just about everyone will be able to decompress it. A couple of years from now xz might be widespread enough to justify the switch.

ALWAYS include a license. Preferably as file named a COPYING or LICENSE in the top-level directory. A tarball without one is like getting a wrapped present that has a suspicious ticking noise. Sure, it could be just a harmless clock but it could also be a bomb. By including a license you make your intentions clear so we don't have to worry about getting sued for packaging and distributing your program. Use a common and widely used license - legalese isn't always easy to understand so by using a common (and scrutinized) license we can be sure there aren't any hidden surprises behind the wording.

Describe your software and include an official URL for the project. As strange as this might seem a lot of projects neglect these simple details. A short paragraph in a README file is more than enough and it allows us to figure our what it's for because it isn't always obvious. It's hard to identify the purpose of program or library by a name such as libsnx. By also including an official project URL you'll also save us a lot of time trying to search for the upstream distribution website when it's time to update and we can then be sure we've got the right project. Often there are a lot of alternative programs to perform a given task.

Modularity is great. It's encouraged by standard UNIX practices, but as a project grows and becomes increasingly more complex modularity tends to show it's limitations. It isn't always practical to keep 100 modules in sync on the code level, especially if you start making API changes.

Off the top of my head, that's about it for now.

Excellent Games

I'm not what you would call a hardcore gamer, but I do play and I strongly favor the console - mostly because it's more comfortable to lie in bed with the controller rather than sitting in a chair in front of the the computer. Also, console games are more streamlined with less tweaking to be made to get the best experience, specifically the game controls are far more consistent on consoles than on the PC. To be sure, there are a few things you loose out on such as better graphics and game mods, but that's a sacrifice I gladly make. This is my list of games that I highly recommend for those who favor story-driven titles. I'm a Playstation 3 owner so unfortunately I'll only be listing games available for that console, but most of these are also avalable for the Xbox 360.

Mass Effect


The Mass Effect games are among the best RPG's ever made. These are without question the cream of the crop among modern console titles. They're extremely polished and beautiful, have an engaging story and have great replay value. (Update: The first Mass Effect was recently released for the PS3 as a PSN download, making the whole series available on the Playstation 3 console. Previously the first Mass Effect game was a Xbox 360 exclusive title)

Fallout


Fallout 3 and Fallout: New Vegas are great open-world games. The only real complaint I have about these games are how unstable they are. Fallout: New Vegas made vast improvements in stability, but Fallout 3 was horrendously unstable and buggy. That being said these games are so good that I managed to overlook these faults. You can spend hours upon hours playing these titles.

Metal Gear


While I'm reluctant to include previous gen console titles in this list the fairly recent release of Metal Gear Solid HD Collection makes the entire game series available on the PS3, including the first PSOne (PSX) Metal Gear Solid game as a PSN download. The graphics of the first game obviously doesn't live up to the standard of current titles, not by a long shot, but the story alone makes it one of the best I've ever played. The HD Collection also makes the Playstation 2 games available in HD, while still not as impressive as Metal Gear Solid 4 (visually) the story alone makes them excellent value. These games are so good they rival Fallout and Mass Effect without breaking a sweat. I have my doubts about the upcoming Metal Gear Solid Rising because Solid Snake has been replaced by Raiden as the protagonist, but I hope it'll be a good game.

Skyrim


Skyrim is simply an awesome game. Much like the Fallout titles it's an open-world game that allows you to go anywhere you feel like going and do the missions you feel like doing. This game is all about exploring and adventure, but unlike Fallout the world has an roughly estimated 12th century setting with swordplay, magic, dragons and a GREAT story. I don't recommend Oblivion though because the leveling system is, in my opinion, fundamentally broken. I didn't even finish the game because of this. A lot of people would disagree, but I would ask these people to consider all the hoops you have to jump through to get a properly leveled character. It sort of ruins the experience when you have to stand and take a beating from a mudcrab for an hour just to level up your blocking skill. Oblivion is still a good game, with plenty of exploration and adventure, but it doesn't hold a candle to Skyrim.

Dead Space


I really enjoy survival horror games and I'm a big fan of the Resident Evil series. As such I am morally obligated to recommend the Dead Space trilogy. When you play these games you turn off the lights, sit back and just enjoy the horror. These are seriously creepy games with a great story line.

Friday, March 16, 2012

Atheism and dogma

Argument: Can atheists rationally prove, absolutely, that there is no God? And if they can't, then why are they so dogmatic?

Anyone making the above argument does not understand atheism nor it's position fully. One key point is missing - the burden of proof lies with whomever is making the claim that God does exist. An atheist doesn't claim there is proof for or against the existence of God. When an atheist says there is no God what he probably means is - there is no evidence to support the claim. That is why many of us have such a strong conviction that God doesn't exist.

“That which can be asserted without evidence, can be dismissed without evidence.” ― Christopher Hitchens

Neither scientists nor Christians can prove the existence or non-existence of God due to the unfalsifiability of the claim. Scientific theories must be falsifiable to be considered valid. By proof I mean providing evidence produced by the scientific method. Falsification is an important mechanism of the scientific method to separate superstition and pseudoscience from real science.

I'm sure you can find quite a few dogmatic atheists in placs like YouTube claiming they can prove God doesn't exist by, for example, reciting news articles about a baby being struck by lightning ("If God exists, and he is good, then why did he allow this terrible thing to happen?!!".. and so on). Bad events, however, do not prove one way or the other whether God exists (e.g. consider the "God is mysterious" statement). You can't test stuff like that scientifically, you need palpable evidence. This is also when classifications like strong and weak atheism comes into play. These youtubers often have a distinct belief that god doesn't exist (strong atheism) when atheism in general (weak atheism) is defined by it's lack of belief without any claims or denials being made. It's a subtle, but important difference. Ironically, strong atheism has belief-without-proof in common with religion.

So as an atheists can I rationally prove, absolutely, that there is no God? Of course not - no one can. Atheists don't have to prove it because, as I mentioned, the burden of proof lies with the religious folk. It's not simply a matter of copping out and passing the buck either - from an atheist point of view God is a non-factor in the natural world until solid evidence to the contrary is presented, and it never has. Not even once. It doesn't make sense to make claims about something that cannot possibly be known. People can speculate, sure, but that's a far cry from truth.

On a personal note, I call myself an agnostic atheist because I find that it's the most rational position for me. For example, I answer two key questions in the following manner:

Question #1: Do you believe in God?
Answer: No - I see no reason to believe due to lack of evidence. (Atheism)

Question #2: Does God exist?
Answer: I don't know if a god exist - because God is by definition unknowable. (Agnosticism)

Which I guess qualifies me as both atheist and agnostic. There is a lot of overlap between agnosticism and atheism so they are not mutually exclusive. When casually asked if I believe in God I tend to simply say no without elaborating, just to avoid the headaches. I also skip the agnostic part when asked about my lack of faith and simply go with atheist; unless, of course, I'm invested in a deeper conversation about religion. This lazy way of labeling myself as simply an atheist is something I have in common with many others, both weak and strong atheists alike.

Saturday, July 23, 2011

About Trolls

Like many people I occasionally enjoy watching YouTube. As an atheist I particularly enjoy atheist related videos, like those made by AronRa, Thunderf00t, TheThinkingAtheist, BionicDance and philhellenes. So imagine my surprise when Thunderf00t indirectly exposed a troll with his latest video Girl prays to CAUSE Japanese earthquake (he was using bits of her video to make a point and linking to the original in the description of the video). Her video turned out to be very controversial. The only problem is that Thunderf00t happens to be very popular and his subscriber base number in the six digits. As you might imagine, TamTamPamela (the handle of the youtuber in question) got some attention. A metric crapload of attention, and more than she could handle; especially when her personal info was discovered and posted for the world to see, they call this "dropping someone's docs". People were so outraged by her that they had pizzas ordered in her name and delivered to her home, and she probably got more than a few nasty phone calls. For TamTam it was the final straw so she came clean about being a troll to put an end to the mess and shortly thereafter she closed down her YouTube account.

Now, what's interesting to me is that some youtubers rallied to her defense calling her videos satire, even though she specifically came clean as being a troll. There's a difference between satire and trolling. Satire is basically ridicule, irony and sarcasm. Sometimes subtle, sometimes blatant and typically very obvious.

If you've ever been on Usenet and frequented a major newsgroup you will almost certainly have come across more than a few trolls. But to those who are confused about what, exactly, a troll is and what they do - here's my explanation.

It's the girl who sleeps with your boyfriend not because she wants him, or even because she hates you, but because she wants to destroy your relationship. It's the guy who lets the air out of your tires just to mess with you and not out of revenge for something you might have done. It's the kind of person who throws a rock at a bird just because he thinks it's funny and he's also the guy who might enjoy poking a sharp stick at a caged animal. I'm sure most of you know the type, they're mean-spirited people you avoid on a regular basis or simply wish you didn't know. That's what a troll really is. A dictionary lookup of the term internet troll reads as follows "someone who posts controversial and usually irrelevant or off-topic messages in an online community, such as an online discussion forum or chat room, with the intention of baiting other users into an emotional response[1] or to generally disrupt normal on-topic discussion.", what the dictionary doesn't tell you is why they do it, put simply - they get off on it. The only real way to handle a troll is to ignore them, regardless of what bullshit they post. Don't even respond once, because if you give any hint they've got your attention they'll just redouble their efforts. And these assholes can stick around for years.

Why anyone would defend such a person is beyond me. Take this holier-than-thou, pretentious asshole for example. The only reason he's defending TamTamPamela is, I'm guessing, because she's cute or because he's a troll himself. So he has to be the knight in shining armor sticking it to the man (Thunderf00t). Only problem is that TamTamPamela is a troll, she even admitted so herself, and she wasn't doing satire. Way to go, asshat.

On Delphi 2010

I don't often use Windows for anything significant at home except for playing a handful of games (I generally prefer consoles like the PS3). Some odd exceptions are video editing/encoding with VirtualDub and on certain rare occasions even programming. For programming I like Delphi in particular. Not because I have any serious projects - work related or otherwise - but because I just have fun doing it. The first time I did some real programming was on MS-DOS with Turbo Pascal (BBS related hacking) and later I went on to use Delphi on Windows. Delphi 3 was the first version I used on Windows and I later upgraded to Delphi 7 after a short period of using 6 (the free version). To give you an example, my last project was a MDI code editor for programmers with a built in IRC client, mail client, hex editor and syntax highlighting for dozens of languages. It even had RSA encryption for public key cryptography and AES for symmetric encryption as well as SHA hashing (all encryption based on TPLockBox components). It was all for fun you understand, and I never really finished it, although it was perfectly usable for my own purposes. All of it contained in a single executable of about 600kb in size, it used .ini files for settings so it could carry it's configuration along on a USB thumbdrive. Fun eh? Anyway, I'm getting carried away..

Not too long ago I got my hands on a copy of Delphi 2010... interesting I thought, could it still be as good for RAD programming as I remembered it? Sadly no. Delphi 2010 doesn't have the polish 7 had. The help system, for example, is mostly useless. In Delphi 7 you could place the cursor on just about any object property, hit F1, and you would have all the information you needed instantly pop up about that particular property. Embarcadero redesigned the help system completely and now you often just get a (mostly) empty page, and sometimes the help page only shows you C++ specific information. Not too helpful if all you do is Object Pascal.

2010 also has a lot more bugs, on more than one occasion I've encountered a bug that more or less locks delphi up with an error that says something along the lines of "can't set focus on invisible Window", I've had seemingly random form errors when I've used TListView's that produce broken executables. Simply restarting Delphi and recompiling fixes the problem, embarrasing, but this is just one of several wierd bugs I never encountered in Delphi 7. 2010 also has a crapload of pointless junk added to it, like Mono and Gtk#. I've never even seen a serious attempt at making applications on the Mono platform. Embarcadero's Delphi also uses a lot more Microsoft technologies than it used to, it even installs a minimalistic version of Visual Studio for reasons I fail to understand, apparently it augments Delphi in some fashion. And the previously mentioned (and useless) help system, which I believe is based on something called Microsoft Document Explorer. Microsoft has retired the old .hlp system in Vista/7 so I understand why they've changed it, but considering how poorly the new one works, I think Embarcadero should've developed their own documentation system.

Delphi 2010 is still a fairly decent environment, but it's a far cry from the Delphi I used to know. If you're getting nostalgic and feel like doing some hacking on Embarcadero's Delphi, I'd advise you to just let it go - It'll only depress you if you came from Delphi 7 or earlier. Admittedly, Embarcadero has added some really cool features, but what use are they if they couldn't even get the basics right?

Thumbs down.

Monday, January 4, 2010

CAT-5e vs. CAT-6

In an effort to improve network performance on my home network I did some cable testing. I was curious whether or not it was worth spending a little extra money to buy CAT-6 cable instead of CAT-5e - in short, no, it isn't. On my network I have an Linksys WRT610n router, my main computer, a small Mini-ITX server and a Laptop - all of which have Gigabit ethernet interfaces. The WRT610n is a Wireless-N router equipped with a 4-port gigabit switch. My testing was done between the Mini-ITX server (a VIA EPIA m700 clocked at 1GHz on a C7 processor with a 2-port integrated VIA Velocity ethernet controller). The via-velocity driver had to be patched to add NAPI support and some other fixes. Beyond that everything was running vanilla Linux without tweaking. My main computer has a 2-port integrated RealTek 8111C/DL ethernet controller on the mobo.

The parameters I used were "spray -l 8828 -c 100000 -d 1 10.10.10.10". This command sends 100000 packets with a length of 8828 bytes and a 1 millisecond delay between packets. 8828 bytes was literally the largest packet i could send - down to the byte - without experiencing packet loss. It's worth noting that I also had to use the 1 millisecond delay to avoid packet loss. Without it the hardware simply couldn't cope.

CAT-5e

Run #1:
sending 100000 packets of length 8828 to 10.10.10.10...
        in 9.20 seconds elapsed time,
        0 packets (0.00%) dropped.
Sent:   10866 packets/sec, 95932.7 KBytes/sec
Recvd:  10803 packets/sec, 95369.5 KBytes/sec

Run #2:
sending 100000 packets of length 8828 to 10.10.10.10...
        in 9.17 seconds elapsed time,
        0 packets (0.00%) dropped.
Sent:   10901 packets/sec, 96236.3 KBytes/sec
Recvd:  10837 packets/sec, 95669.5 KBytes/sec

Run #3:
sending 100000 packets of length 8828 to 10.10.10.10...
        in 9.16 seconds elapsed time,
        0 packets (0.00%) dropped.
Sent:   10914 packets/sec, 96350.9 KBytes/sec
Recvd:  10849 packets/sec, 95782.7 KBytes/sec


CAT-6

Run #1:
sending 100000 packets of length 8828 to 10.10.10.10...
        in 9.11 seconds elapsed time,
        0 packets (0.00%) dropped.
Sent:   10976 packets/sec, 96900.9 KBytes/sec
Recvd:  10911 packets/sec, 96326.6 KBytes/sec

Run #2:
sending 100000 packets of length 8828 to 10.10.10.10...
        in 9.17 seconds elapsed time,
        0 packets (0.00%) dropped.
Sent:   10903 packets/sec, 96252.9 KBytes/sec
Recvd:  10838 packets/sec, 95685.9 KBytes/sec

Run #3:
sending 100000 packets of length 8828 to 10.10.10.10...
        in 9.24 seconds elapsed time,
        0 packets (0.00%) dropped.
Sent:   10821 packets/sec, 95536.1 KBytes/sec
Recvd:  10758 packets/sec, 94977.2 KBytes/sec

As you can see CAT-6 didn't give me a performance boost and that's probably because there are bottlenecks preventing better speeds. The bottlenecks might be anything from the router, the ethernet controllers or their drivers. So there you have it. CAT-5e should serve you just as well as CAT-6 unless you have hardware capable of reaching optimal Gigabit ethernet performance. This is very unlikely unless you buy very expensive gear. The theoretical limit of Gigabit ethernet is about 125MB/s, on my LAN I only reached about 96MB/s. These ethernet controllers were integrated on the motherboard so that's what most people would use, but you could spend some cash on expensive Intel adapters with dedicated processors for packet processing. It would probably give you a boost - but few people would do this, and I doubt many would even go as far as I did and patch the via-velocity driver (which is known to suck ass).

Even if you do spend some extra cash on high-end ethernet adapters you still have to account for disk I/O speeds which will also be a limiting factor during file transfer (but it wasn't in my test because spray doesn't read nor write to disk). I was only able to reach about 50MB/s during a file transfer which is about half of the 96MB/s I got using spray, and that's probably because of the disk I/O bottleneck on both ends.

Update1: I conducted a new test (on CAT-6) in which I replaced the Linksys router with a Netgear Gigabit switch, so now I get about 113MB/s and the test finishes about 2 seconds faster, from about 9 down to 7 seconds for transferring 100000 packets of 8828 in length. I never tested with CAT-5e to see if I've exceeded the cable limit. Here's the output:

sending 100000 packets of length 8828 to 10.10.10.10...
        in 7.84 seconds elapsed time,
        0 packets (0.00%) dropped.
Sent:   12760 packets/sec, 112645.5 KBytes/sec
Recvd:  12851 packets/sec, 113451.6 KBytes/sec

So the conclusion still stands, don't worry about CAT-5e vs CAT-6 because there are almost definitely bigger bottlenecks elsewhere.

Update2: This article summed it up very well.

Update3 (2016-09-20): I've done a lot more testing since I first published this post and since then I've bought more powerful hardware. My router is now a Ubiquiti EdgeRouter PoE, the switch is an HP 1820-8G (Layer 2) - a convenient accessory to my HP MicroServer Gen8 (dual Broadcom adapters) running CentOS 7 and LACP truncated ports. My client computer is a dual processor HP Z820 Workstation with integrated Intel adapters (only one is used in testing). This time around I did benchmarks with iperf3 rather than the aging spray and I used iperf's --format parameter to get the results in KBytes to make a comparison to the old results easier. Here's the output:

Connecting to host 10.10.10.10, port 5201
[  4] local 10.10.10.193 port 49270 connected to 10.10.10.10 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   112 MBytes  114144 KBytes/sec
[  4]   1.00-2.02   sec   115 MBytes  115755 KBytes/sec
[  4]   2.02-3.00   sec   112 MBytes  115820 KBytes/sec
[  4]   3.00-4.00   sec   113 MBytes  115781 KBytes/sec
[  4]   4.00-5.00   sec   113 MBytes  115702 KBytes/sec
[  4]   5.00-6.00   sec   113 MBytes  115769 KBytes/sec
[  4]   6.00-7.00   sec   113 MBytes  115678 KBytes/sec
[  4]   7.00-8.00   sec   113 MBytes  115793 KBytes/sec
[  4]   8.00-9.01   sec   113 MBytes  115678 KBytes/sec
[  4]   9.01-10.00  sec   113 MBytes  115769 KBytes/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1.10 GBytes  115589 KBytes/sec                  sender
[  4]   0.00-10.00  sec  1.10 GBytes  115589 KBytes/sec                  receive
r

iperf Done.

I've managed to improve performance a little by getting better hardware and still the cabling is pretty much the same (CAT-6). In my first run of tests I managed to reach about 750Mbit, the second time i reached about 880Mbit and finally in this latest test just about 950Mbit. At this point there isn't all that much more I can do and the performance gains get smaller and smaller. At work I did rudimentary gigabit performance testing over CAT-5 and managed to reach about 960Mbit (albeit with high end networking gear, far better than I have at home) so even cables that old can still stand up very well today. This time, I did get around to testing a CAT-5e cable with my current hardware and the results are as expected:
Connecting to host 10.10.10.10, port 5201
[  4] local 10.10.10.193 port 49342 connected to 10.10.10.10 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.01   sec   114 MBytes  114619 KBytes/sec
[  4]   1.01-2.01   sec   113 MBytes  115513 KBytes/sec
[  4]   2.01-3.01   sec   113 MBytes  115769 KBytes/sec
[  4]   3.01-4.01   sec   113 MBytes  115641 KBytes/sec
[  4]   4.01-5.01   sec   113 MBytes  115690 KBytes/sec
[  4]   5.01-6.01   sec   113 MBytes  115641 KBytes/sec
[  4]   6.01-7.01   sec   113 MBytes  115641 KBytes/sec
[  4]   7.01-8.01   sec   113 MBytes  115769 KBytes/sec
[  4]   8.01-9.01   sec   113 MBytes  115641 KBytes/sec
[  4]   9.01-10.00  sec   113 MBytes  115641 KBytes/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1.10 GBytes  115555 KBytes/sec                  sender
[  4]   0.00-10.00  sec  1.10 GBytes  115555 KBytes/sec                  receive
r

iperf Done.
Pretty much the same, about 950Mbit. So there you have it, confirmed several times over - hardware is generally what gets you performance, not cables. Once you get close to the gigabit speed limit there's also no point in investing in more expensive gear to get even further because you'll be paying through the nose just to get those extra few megabits - at that point the main argument for buying better gear is features (VLAN support for example) and long-term stability. Of course, 10Gbit ethernet is a different matter - old CAT-5 cabling should (in theory) start experiencing some serious packet loss but for me that remains untested.

Saturday, June 13, 2009

Mono - does it suck?

I just stumbled across an amusing rant in my RSS reader: Here we go again - Why Mono doesn't suck. Why do I find it amusing? Because this is probably the most disillusioned rant I've read in years. It goes from ranting about "anti-Mono movements", "Software Terrorism" to quoting Thomas Jefferson to accusations about persecution. Many gems in this piece I tell you. Extremist and bias is what I peg this sort of thing as, and it really is quite funny. He starts by claiming that he'll address certain points of concern like why Mono is not a threat to free software. Of course, in the end, he does no such thing.

Sunday, December 14, 2008

The hell that is Gnome and Xorg

Gnome and Xorg are fine pieces of software but they're a real pain to build. This is a rant I've been thinking about venting for a couple of years now.

First off, Xorg used to be OK when it had the monolithic build but then it split into hundreds of pieces and the maintenance overhead went up a hundredfold (for anyone who creates packages). It has become as tedious to build as Gnome.

Gnome has always been a pain, the developers say "modularity" is the brilliance underlying Gnome. Modularity is good. Modularity is excellent. Modularity makes things easier. But NOT when you break your project into a gazillion pieces. If you do that then it's just shattered. KDE understands this, their desktop is modular but "grouped" into larger packages, effectively turning it into a monolithic/modular hybrid. Basically, there is modularity within the packages while the packages themselves are monolithic. The advantage is that the desktop packages can be managed by a small group of people or even a single individual because the dependency chains become shorter. And you still get to keep modularity for developers. The disadvantage is that security patches become tougher to roll out because the packages become much bigger. With that in mind - I'll take one big package over a hundred small ones ANY day.

I am still using Xorg 6.9.0 because it's the last monolithic version of X. Why? I simply do not have the time to manage the modular Xorg - you need a team to do that or settle for a hackish build system (ala Slackware). Slackware's build system works well enough to ship modular X but if you take a closer look you'll notice the packages do not even have proper descriptions because there is simply too many of them to bother. In addition - broken down into so many small pieces it becomes much harder to understand what each piece is supposed to do. It's like puzzles - A few big pieces is easier to fit together than hundreds of very small ones.

Update: I switched to modular Xorg quite some time ago, my opinion remains the same however. In fact, to migrate I had to write a script that automatically generated the package build scripts for each tarball so I wouldn't have to do it all manually. Also interesting is that there are many bits of the modular Xorg that suffer from neglect and no longer compiles, this especially applies to drivers (there are dozens of drivers that for one reason or another has been abandoned yet is still included in the Xorg distribution).

Sunday, July 22, 2007

Gnomes and users

Recently Linus got into yet another spat on one of the Gnome mailing lists (an overblown incident IMO). It's hard not to get emotional about these things, and as someone who also gets frustrated by Gnome I can't help but cheer for Linus on this one. Feedback should be one of the most valuable sources of input Gnome could get regarding usability so you'd think they'd care, but unfortunately they don't. Instead, they hold interface guidelines (and their own conclusions about GUI design) in a much higher regard and leave a number of frustrated users behind. It's their right, of course, but perhaps also a mistake if the goal is to appeal to a wide user base. Not all of us subscribe to the Gnome project's idea of "simple is always better", and personally I doubt I'll ever learn to like it, well, at least not Gnome's approach which is to literally strip features away.

Certain Gnome developers are absolutely, positively convinced they're right too, and that's just creepy given how subjective GUI design is. In this particular case they even rationalized with an "it's been discussed before" argument. Consensus among Gnome developers translates into fact, apparently, but there's only one problem - GUI design is NOT an exact science regardless of what they might have you believe, and there is definitely a bias among Gnome regarding design.

I was also shocked when one of the Gnome developers implied that Linus was stupid because he didn't speak Spanish. I know that he (Linus) speaks at least three languages (incidentally the same ones I speak - English, Swedish and Finnish and I've heard him speak all of them) so it's not like he's linguistically challanged or anything. It can be an advantage to know several languages, true, but it doesn't make you intelligent any more than driving a porsche makes you important. We can't be expected to be sharp at all times though, and occasionally even the brightest among us make mistakes and say stupid things, so I think I'll cut the Gnome developer some slack for that reason alone. Still, the arrogance is stunning.

I wish Gnome would revert to what it used to be at around Gnome 2.6. It was OK back then. It still had it's fair share of problems but it somehow felt better and seemed less fragile. That was before they got all fanatic about interface guidelines and began copying OS X. I don't think Gnome is inherently bad. In fact, I find it quite enjoyable at times when I can bring myself to ignore certain quirks - like the supposedly "intuitive" file dialogs (a truly horrible design if there ever was one).

Monday, April 30, 2007

Open Source and the Enterprise

Here's an interesting question - is commercialization killing Open Source?. Personally, I don't believe commercialization is killing it, but it certainly has done plenty of damage. Free software OS's are thought of as products with free labor by profit-driven outfits, which is why, I think, FOSS (Free & Open Source Software) all of a sudden became so popular. The FOSS programmer on the other hand usually thinks of free software as a tool to scratch an itch.

This commercialization of free software might be why many forums, including popular ones like Slashdot, has been overrun by people who only see the business angle of FOSS (yuppies, I call them) and loudly protest any concept or idea that might present problems to businesses that capitalize on FOSS.