Benchmarking Advanced Format drives

Important: due to a bug in my benchmark program, the tps numbers in this post are incorrect. See here for the correct numbers.

In the previous post, I discussed Western Digital’s “Advanced Format” drives and the problems caused by their misreporting their real, physical sector size.

I wrote a benchmark utility to demonstrate the performance penalty of unaligned accesses and uncover a drive’s physical sector size. What it does is write blocks of zeroes varying size at regular intervals. For each block size, it writes a total of 128 MB at intervals of four times the block size, and at an offset that varies from 512 bytes up to half of the block size. Continue reading “Benchmarking Advanced Format drives”

Exploring WD Advanced Format drives

I’ve been playing with WD Green disks, trying to solve the 4,096-byte sector problem. To summarize, Western Digital have started to move from 512-byte sectors to 4,096-byte sectors in order to reduce overhead and thereby increase the amount of data that can be stored on the same amount of platters with the same density. These disks (specifically, the EARS and AARS series) emulate 512-byte sectors for compatibility with older BIOSes and operating systems, but the problem is that they report 512-byte logical and physical sectors instead of 512/4,096.

If the length of a write operation is not a multiple of 4,096, or it does not begin at an address divisible by 4,096, either the beginning or the end of the operation, or both, will cover only part of a sector. This requires the disk to do a read-modify-write operation, meaning that it has to read a complete 4,096-byte sector, update parts of it, and write it back. This is extremely inefficient, as I will demonstrate later. Continue reading “Exploring WD Advanced Format drives”

VirtualFix

It seems that over the last few months, SunOracle have finally fixed some of the most annoying bugs in VirtualBox:

  • Stale DNS info: fixed in 3.2.2, which was released a few days ago.
  • Keyboard: fixed, but I don’t know when. I just suddenly realized I hadn’t encountered that bug in a long time. Possibly related to this bug, which was fixed in 3.1.8.
  • Clock: fixed; not sure when, but probably in 3.1.4. There is a changelog entry that sounds about right, but no ticket.

Is “baidu” Japanese for “WTF”?

Several months ago, I virtualized most of the services running on tim.des.no, so www.des.no now runs in a jail and has its own IP.

This morning, I discovered that I had forgotten to stop the Varnish instance that ran on tim.des.no, and that it was still getting traffic. I looked at the logs, and most of it was what you’d expect (attack bots looking for known vulnerabilities in various web servers or apps which I don’t run), but I certainly did not expect this: Continue reading “Is “baidu” Japanese for “WTF”?”

Windows Update and Automatic Reboots

Glad to see I’m not the only one pissed off by this. I found a useful article on this topic on the Microsoft Update Product Team’s blog. The article was written back in the Vista days, but the procedure is the same in Windows 7, except that it’s much quicker to type “Edit Group Policy” in the Start menu search box than to try to find it in the Control Panel.