Of course I'm backed up to the hilt with distributed version control, so I'm not in immediate danger of losing anything particularly important. However, it's apparent that I'll need to buy a new laptop in the near future. At the moment I'm looking at a Lenovo Thinkpad T500 with WSXGA+ (1680x1050) screen and Radeon graphics, but does anyone have any other suggestions? My non-negotiable requirements are:
- Linux-friendly wifi and graphics.
- Dual core, or at least HT. This really does make a huge difference.
- Widescreen. 1680x1050 with a 15.4" screen gives a resolution I like.
- UK keyboard layout (i.e. UK market, ideally with delivery to Germany possible).
- DVD drive.
- Decent battery life, or the possibility to buy spare or larger batteries during the next few years once the original one becomes a plastic box of jelly.
- VGA output.
- Fast-ish hard drive (7200rpm or higher. I'm not sure how much of a difference this makes, but I do a lot of compiling and so on. No need to go overboard with solid-state disks for hundreds of extra pounds.
- Bluetooth (I don't use it at the moment).
- Huge hard drive - I get on fine with only about 80Gb at the moment.
I hardly had any time to escape the campus or to explore, but I did manage to find some sites of geeky interest. Here's a photo of the research stations at the end of the two mile long linear accelerator, which is hidden by the trees at the back of the picture. The large concrete building on the right is End Station A, where the first experimental evidence for the existence of quarks was recorded around 1966. Their experiment was like a much larger version of Rutherford's scattering experiment with alpha particles and gold foil. Today, End Station A contains test experiments to prepare for the International Linear Collider. I wasn't able to go inside - it's probably possible, subject to the particle accelerator's beam being directed elsewhere and talking to the right people, but there wasn't time and I wasn't keen to push the limits of my security pass (I also couldn't find the door..).
At "8 stages", the price of this was that the display became jittery and unstable. However, the same speed improvement is seen at the "4 stages" setting. I've also seen some occasional artifacts with this setting, so I'm using 2 stages at the moment, where the speed is still right up there. I'll be testing some more and seeing if things can be tuned even more.
Because we don't make the maximum use possible of the 2D engine, this doesn't immediately translate into a huge increase in the UI speed. But the differences are very obvious with x11perf and some of my test programs. The program I showed in the screenshot recently jumped from 45-48fps right up to 95-98fps!
Most GPUs, including Glamo, have a mechanism for being a little smarter. The kernel can ask the chip to trigger an interrupt when a certain point in the command queue has been reached. When a process needs to wait, the kernel can send it to sleep and watch out for the interrupt. When it happens, the process can be quickly woken back up in a low-latency fashion, meaning that the process gets back to work with very little latency.
This week, I've been implementing this kind of thing for the Glamo DRM driver. It goes a bit like this:
- Process submits some rendering commands via one of the command submission ioctls.
- Kernel driver places rendering commands on Glamo's command queue.
- Process needs to wait for the GPU to catch up, so calls the wait ioctl.
- Kernel driver puts an extra sequence of commands, called a fence, onto the command queue. A unique number is associated with the fence. The number is recorded by the kernel.
- When the GPU processes the fence, it raises the interrupt and places a unique number into a certain register.
- The interrupt handler checks this number, and wakes up the corresponding process.
Things aren't always so great. When the command sequence to be executed is very short, the overheads of fencing and scheduling become significant, and the overall rate drops. However, it shouldn't be too difficult to design some kind of heuristic to use busywaits as a low-latency strategy in such cases.
There are still a few problems to iron out. The fence mechanism seems to be able to fall out of sync with things, leading to processes waiting for too long (or even forever). But when it works, some things do seem to feel a little faster in general use.
Geeks may be interested in the actual code.
Concrete blocks. Absolutely everywhere. That's my dominant impression of this international particle accelerator research centre after the first month. Concrete blocks shielding the outside world from radiation emitted by the shiny things hiding behind them. And generally, the bigger the pile of concrete blocks, the cooler the thing that's lurking behind.
Here are some photos from today's open day at DESY. Most of the things shown (everything apart from FLASH and XFEL) have nothing to do with what I work on, but they're still exciting to look at. The HERA and PETRA tunnels aren't normally open, least of all to the public, and there probably won't be another opportunity to see them for years. In pictures 38, 40, 42, 45, 46 and 51, you can see the sequence of bits of pipes and coils which guided electrons from PETRA, physically above HERA, into HERA's electron ring. HERA was switched off in September 2007, but almost all of it is still in the tunnels. You can also see wider views of the machine. The cylindrical pipe thing on the top is the superconducting ring of magnets which guided protons, and the pink boxy thing underneath is a normally conducting ring of magnets for the electrons. You can even see what's underneath the pink metal cover, but it's not very exciting. Then there's a spin rotator which alters the polarisation of the electrons. A bit further down, you can see the electron and proton rings being brought closer together (the electron beam pipe is the thin bronze-coloured thing just in front of the yellow thing), and then going through the final focusing magnets before colliding with one another in the next room. Not that you can see anything except concrete blocks, because that bit is just way too cool.
And it needs a whole lot of cryogenic stuff to make it work.
PETRA was previously used for particle physics, before being turned into a pre-accelerator for HERA and more recently (last year or so) into a synchrotron radiation source for (e.g.) protein crystallography. This thing is still used - in fact it's one of the most modern synchrotron X-ray sources in the world - but it wasn't switched on while we were in the tunnel, otherwise we would have been fried. Naturally it's hidden behind a huge wall of concrete blocks.
There are plenty more photos to see beyond the ones linked here..!
Recent Comments