Search Results: "ean"

22 May 2007

Cameron Dale: May-22-2007: The Long Weekend of Documentation

I spent most of this past weekend (a long weekend in Canada, thanks to our royal heritage) writing documentation for the DebTorrent code. The original BitTornado code was seriously lacking in this area, having only 670 lines of comments out of almost 20,000 total lines of code, which is 3.5% if you're counting. (In fairness, this may be due in part to it being based on the original bittorrent client.) Since Python is supposed to be known for it's well-documented code, I decided to tackle this shortcoming sooner rather than later. It's also a good opportunity for me to become familiar with all of the code. I'm only about halfway there, but the end result of my weekend's worth of work is this diffstat:
DebTorrent/BT1/Choker.py             99 ++++++++
DebTorrent/BT1/Connecter.py         313 +++++++++++++++++++++++++++
DebTorrent/BT1/Downloader.py        448 ++++++++++++++++++++++++++++++++++++++-
DebTorrent/BT1/Storage.py           418 ++++++++++++++++++++++++++++++++++--
DebTorrent/BT1/__init__.py            9
DebTorrent/BT1/btformats.py          47 ++++
DebTorrent/BTcrypto.py              147 ++++++++++++
DebTorrent/ConfigDir.py             248 +++++++++++++++++++++
DebTorrent/ConnChoice.py             12 -
DebTorrent/CurrentRateMeasure.py     69 +++++-
DebTorrent/__init__.py               14 +
DebTorrent/bencode.py               193 ++++++++++++++++
DebTorrent/bitfield.py               89 +++++++
DebTorrent/clock.py                  53 ++++
DebTorrent/download_bt1.py          380 ++++++++++++++++++++++++++++++++-
DebTorrent/inifile.py                70 ++++--
btcompletedir.py                     25 ++
btcopyannounce.py                    20 +
btdownloadheadless.py               111 +++++++++
btlaunchmany.py                      56 ++++
btmakemetafile.py                    19 +
btreannounce.py                       6
btrename.py                          11
btsethttpseeds.py                     6
btshowmetainfo.py                     6
bttrack.py                            6
setup.py                             20 +
27 files changed, 2809 insertions(+), 86 deletions(-)
I've also started using the epydoc program to automatically generate some documentation web pages for easy browsing of the code. So far it's worked out great! So well that I decided to use some of the new features available in a recent beta release that was not yet in the debian archive. The packaging seemed simple enough, so I created my own package containing the new upstream version, which is now available in my repository.

Alastair McKinstry: Election 2007: Choices in Galway West ?

Has anyone seen a recent poll for Galway West? (In the Irish General Election, that is). The last poll was March 26th, which is way out-of-date : long prior to the election being called, before the Cryptosporidium Crisis, etc. The result is, I'm in the unusual position of having to make a decision. Ordinarily I'd vote Number 1 for Niall O'Brolch in (Green) and 2. Micheal D. Higgins (Labour). Ireland uses the unusual Single Transferable Vote system, with multi-member constituencies. Galway West is a 5-seat constituency, and Micheal D. is a long-sitting TD, who most would have expected to be automatically returned. Niall O'Brolch in is fairly new; he's a member of the City Council and current Mayor of Galway (thats a relatively powerless post in the Irish local council scheme of things, though). Unfortunately news from the Labour camp appears that too many people assume he will be automatically returned; the word they are getting on the street is "Yes, you'll be getting my no.2 ". But in the STV system, this could mean he wouldn't be in the running. Those votes for the Greens and others will perhaps stay with the Greens and won't transfer to him. So the choice, Vote 1. Greens, which is my natural preference, or 1. Labour, in the hope of getting both Micheal D. and Niall elected? a poll of the current situation would help. BTW, for voting geeks, following the link and reading about STV is worth it. It makes Irish election counts the most fun election counts in the World. One of the main arguments against electronic voting in Ireland has been that it would take all the fun out of the count, which would be over too soon ... Tags ,

Wouter Verhelst: VT4

In response to my Battlestar Galactica post of yesterday, Jonathan Carter wrote:
I just switched to VT4 and all I got was a login prompt :/
Grin. Obviously I didn't mean that VT4.

Wouter Verhelst: Battlestar Galactica on VT4!

I just saw an ad on VT4 that they're going to be broadcasting the excellent Battlestar Galactica series—that is, the reimagined version. Caught me by surprise there, because I was actually expecting Kanaal2 to broadcast this—they're usually the SciFi channel in .be. Not that this matters, of course. Luckily, they're also going to broadcast this at an excellent time slot: Sunday at 23:25 (or something), meaning, not prime time; as a result, I might actually be able to follow it this time around. Living together with people who like to watch prime time pulp would make watching this rather impossible during reasonable hours, otherwise. Not this time. As it happens, I bought the original 1978 version of Battlestar Galactica only a few weeks ago. That one's a bit dated though, and not half as much fun.

Erich Schubert: Birthday dancing

Tonight I turned 27. By chance, this fell onto a Tuesday, and there is a great dancing party every Monday. This monday, there was also a great band, the Souvenirs. They're pure fun and great for dancing - so I obviously opted to celebrate my birthday there.This probably was the nicest birthday party I've ever had: lots of friends showed up (though mostly girls, but thats fine with me :-)), we danced a lot. And danced. And danced. :-) And I'll probably spend some more hours today dancing later this day.And with dancing I mean: Swing, Lindy Hop, Balboa. I just love this music and these dances. So playful, sometimes cheeky - swinging...
Would you like to swing on a star
Carry moonbeams home in a jar
Todays music was also great, a nice speed and patterns you could play with... I don't know what it is, adrenaline?, that makes dancing so much fun. And probably the communication. Dancing is all about communication. There was this class titled "Moves that make the follow smile" once... That is the best moment in a dance, when you managed to lead the follow into some slight variations or some fun move matching the music, it worked out great and you see this flash of delight in their face... this "I'm not sure what we just did, but it felt just so right"-smile. The "I didn't know we could do that"-smile. That's what I'm striving for. Sometimes there are some moments in a song where this works out great, and occasionally there is a song where it works out through most of the song. These are the really great moments when dancing.Sorry, no pictures or videos. Just memories.Keep on swingin'!I'm really looking forward to events such as Senigallia (Summer Jamboree) or the Munich Lindy Exchange.And of course our regular events here in Munich, such as our Thursday open air get-together at Hofgarten, sundays in Salon Erna and mondays in Cord.

21 May 2007

Meike Reichle: The barbecue season has now officially begun!

a plate with the remains of a barbecue on it
1 Pack of mixed BBQ meat: 5,90
1 Bottle of 2005 Montepulciano d'Abruzzo: 1,99
1 Throw away grill: 3,50

The fun that is an indoor BBQ party: Priceless! With the weather being so great and everyone having nice barbecues, we wanted to have one too. Unfortunatelly we don't have a balcony or a (nice) garden. (We do have a grassy patch in front of our house but it's not exactly a place you want to sit at and have dinner.) Also do not have a proper barbecue to take somewhere nice and somehow when we travel to friends we always bring bad weather with us. This weekend however, we decided to go for it. We got ourselfs one of those disposable grills, put it on the largest window sill, strategically placed a fan and a bucket of water and declared the indoor barbecue season officially opened.
Our experiences in short Good:
Bad:
PS: How do you extinguish a throw away grill once you're done? PPS: Shower! PPPS: Kids, do not try this at home!

Evan Prodromou: 1 Prairial CCXV

I just got back from taking Zach Copley to the airport, and for the first time in a few days I'm sitting in front of my desktop computer again, trying to get back on track. I think it's probably a good idea to get my notes about RoCoCoCamp down on electronic paper while the experience is still fresh in my mind. (I wrote about the first day in Journal/29 Flor al CCXV). Saturday morning I got up considerably later than I had the day before, and I took my time getting to SAT. Which was OK, since things went much smoother in the morning. The only really annoying thing about Saturday was that I had to wash about 50 cups by hand -- we'd run out of clean cups, and I couldn't figure out how to run the dishwasher. It didn't take long, but it meant that I had my head down in the sink as people came in and didn't get to spend as much time talking to them. I was glad to hear that people had a good time going to L'Utopik on Friday night. Apparently a few people who'd flown in late on Friday got a chance to meet up with the experienced crew at L'Utopik, so they were well-prepped for Saturday. Probably the biggest buzz of the pre-sessions was SJ Klein's pair of functional OLPC laptops. They were cute and fun -- I got a few minutes to play with them, and I enjoyed the interface tremendously -- although it took me a few tries to open it. People were fiddling with them throughout the day -- including Amita June, who came late in the afternoon -- and Tristan P loquin even blogged about them. My first session was about wiki and other technologies, which I titled Wiki And.... (I borrowed the name from Last Exit to Brooklyn, in which it seems no-one eats anything but "coffee and".) My main point was that a) wiki people tend to overuse wiki where other software tools may be more appropriate and b) we need to be careful with impedance mismatches when using wiki with technologies with other cultures behind them. Wikis and blogs mismatch; wikis and forums mismatch. You need to work out ways to make them work culturally. As a proof-of-concept that there are ridiculous applications for wiki, I created in about 3 minutes before the session the wikiclock. It's a computer clock that runs on wiki technology: the time is kept up-to-date by human beings editing the page, rather than with software. I was so pleased with myself that I twittered about it, and from there it's taken on a life of its own. The clock is implemented on the amazing minimalist system pageoftext.com. I heard about p.o.t. from Liz Henry's April report from Palo Alto Wiki Wednesday, and I think it's totally great. It's a cross between a pastebin and a wiki -- like an open-edited ImageShack for text. Brilliant. The second session I did was a hyper-focused one on a particular Semantic Web problem. Both Wikitravel and Open Guides have tons of information on "places" in various cities. (That is, restaurants, bars, nightclubs, hotels, museums, parks, etc.). It would be good to export our data on these places to each other, so we could possibly keep them in sync. For example, if a restaurant changes its hours , that info could be updated on The Open Guide to London and automatically synched to the Wikitravel page on London. So we went over some ways to do this kind of interchange; we'd brainstormed before about it on the Open Guides' RDF Workshop, but it was good to sit down with Earle Martin and do some face-to-face hacking on the idea. We don't yet have a vocabulary for it, but we'll get something going on the new wikirdf.org site (which also emerged from this session). I had a great lunch with a lot of people from RoCoCo on the terrace at the Bar St. Sulpice, about 8 blocks away on rue St. Denis. The sun was out, it was cool, and we had a very nice time. It was especially nice to see Marcus Bornfreund and Tina Pipers of Creative Commons Canada, who'd come to talk about the PDwiki, a project to collaboratively document Canadian works in the public domain (see Canadian Public Domain Registry Announced). We talked quite a bit about the social challenges of getting a community excited about such a dry subject, but I think we got some good ideas about it. In the afternoon I led a session on MediaWiki. We were lucky enough to have Tim Starling sit in, and he told everyone about the new developments going on with MW. He's refactoring some very deep parts of the storage and rendering sections of the code, which will result in considerably better reliability, performance, and flexibility. I think it sounds great. I had to work the registration desk for the last session of the day, which was pretty great because I ended up baby-sitting Anoushka Jaroski-Biava for most of the time. But I missed Robin Millette's cool talk about BuzzyBee, which looks to be really fun to play with. We rounded out the evening with music, pizza, and beer at the SAT. tobias.dj played some great dance music, and we had some wiki-collaborative VJ-ing using the SAT's fancy screen systems. All the kids were there -- Mark and Allegra's daughter No ma as well as Amita June. Fun. Sunday morning I didn't have to start coffee until 9AM -- luxury! We had a great Open Space Technology convergence -- a way to turn the discussions of the previous few days into action items for going forward. I did a convergence session on the future of RecentChangesCamp. We had most of the interested parties available (except for the RCC Portland organizers, who had to fly out early that morning). We made some decisions about future RCCs, and we made some plans for next year's RCC -- in the Bay Area (California). Last night we brought back the Keiki gang to our house, since it was great to have them all in Montreal for the event. We did a big brainstorming session on next steps to launching the project, and we also did some graphic design review of potential logos. We have some great designs coming; I'm really happy we got Sarven Capadisli and Bridget to work on the site. I had to crash out at 10:30PM -- Amita and I fell asleep together -- but others were up late talking and thinking. I don't know how they did it -- I was all talked out by the end of RoCoCo. All in all I had a fantastic time -- the event far surpassed my expectations. It was hard -- too hard. I bit off far more than I could chew. But I think we did a good job of establishing Montreal as a technology city -- Wiki City Canada -- in the international mind, and I think we also brought together some really interesting people for some fruitful and productive work. You can see some of the projects that came directly out of RoCoCo on the FutureChanges page -- an ingenious name courtesy of Pm. And there are some indirect ones that we can expect soon. tags:

Cause and solution So, Technorati has a good listing for rocococamp items, but I especially liked Steve Faguy's post: Wiki: The cause of, and solution to, all of life s problems. Steve was an extremely game participant in the event, which I think was pretty incredible. He wrote a good overview of wikis in the Montreal Gazette this year. A funny thing happened on Friday evening during the daily wrap-up known as "Evening News". We had Open Space's minimalist instructions posted on the walls of the SAT, so people would see and remember them. Steve pointed out that the first of Open Space's "four principles" is grammatically incorrect: Whoever comes is the right people. He said, "In the spirit of wiki, I'm going to correct it right now!" And to applause, he got up with a marker and changed the "is" to "are". This stimulated an interesting discussion. One person noted that the "is" is there because possibly only one person could show up for a session, and that's OK. Finally, Brandon CS Sanders stood up and said, "I like 'is' because when we come together like this, we form a cohesive group, however temporary -- 'a people'. So I'm going to change it back." And he did -- to lots of applause, again. Steve came up to me at the end of the night, laughing. "I got reverted! I should have started an edit war!" It was a hoot; he's got a good sense of humour. tags:

MJ Ray: the Cooperative Group: United merger

bill watson commented:
"Excellent report. I'm a member of Co-op Group (Northern) and also United. United is an extremely well run outfit with well maintained shops. They also have about 30 petrol stations, mostly in Yorkshire and Greater Manchester. The fear from United members, on the proposed merger, is that focus will be lost and regional investment diluted. United are also trialing factory made shop units which are erected on-site (similar to the way McDonalds do it). This gives a turnaround time of about 16 weeks from start to shop opening. There is one not far from me (Ditton) and it's very popular. The United website United Acquisitions gives lots of info on this and other things."
I've mixed feelings on modular build (McStores?) - it makes the construction greener, but there seems little information on the long-term energy use of the store. Maybe it's simply unknown yet. The offer of a finder's fee for new store sites is interesting. I wonder if that will spread to the Co-operative Group after the merger. As I understand it, the fear from tCG members is that we're getting a lot of new members and a new chief exec who seems to have a very different focus to the members. I'm sure we'd be happy to see well-run and well-maintained shops, but will it mean even more centralisation and all the mistakes that means? Like stocking no Somerset Cheddars in some Somerset stores, with the confusing excuse that (as far as I could understand - see previously-mentioned answers to AGM food questions) no supplier offers enough units that meet the specifications or it's unsuitable for our type of stores ("Welcome"). I'm glad so many people liked the report, anyway.

20 May 2007

Daniel Burrows: System 76

I've got a new desktop system, after going two years without a desktop at all. My last desktop, which served me well for about five years, was one that I built myself from parts. This time, though, I was feeling a little lazy, and I decided to order a computer from System 76, one of the few companies that will assemble and ship a computer to you with Linux (in this case, Ubuntu) preinstalled.

DSC00497.JPG

The cats were curious about something new appearing in our apartment. They were even more excited when they found out it was full of cat toys! Sadly for them, though, I confiscated all the styrofoam peanuts and stuck them in a cat-proof trash can.

DSC00499.JPG

The usual box of random CDs still exists when you have preloaded Linux. I was surprised to discover that it did not include an Ubuntu CD or five, which seems to me like a no-brainer.

DSC00501.JPG

Of course, this post wouldn't be complete without a picture of the actual box. It looks just like it did on the system76 web site; no surprise there.

DSC00504.JPG DSC00505.JPG

I used the included Ubuntu install for a little while, and it looked like everything was configured reasonably well. The one piece of weirdness was that Ubuntu uses a program called network-manager to configure the network; while it has some nice features (like doing network discovery for wireless, letting programs easily get notifications when network devices go down or come up, etc), these are offset, at least for me, by the fact that it likes to randomly break the computer's network access. This isn't exclusively an Ubuntu problem, of course; etch also installs and configures network-manager by default, and I had the same problems on etch until I purged it. I assume that network-manager works for someone, so probably something to do with the network environment here breaks it.

The system is currently running Debian etch, with Xen domains booting testing and unstable that I use for development. Even without the NVidia graphics drivers and with one of the Xen domains running a computationally intensive job, it's quite snappy; a lot snappier than any other desktop system I've owned recently. And while it's doing this, it's one of the quietest computers I own.

So, in summary, I'm quite happy with this system and I'd suggest System 76 as an option for anyone who wants a Windows-free computer.

Steve Kemp: Change my pitch up

6 weeks since my last post here, which I guess sums up how busy I am with things, primarily off-line but with a reasonable amount of development work coming out too. Thanks to Radu Spineanu xen-shell made it into the archive, and work has restarted on a multi-dom0 Xen control panel. So far there is a node daemon, a central server, and a shell-based admin tool, all written in Ruby. Coming soon a web-based control panel, implemented in Ruby on Rails. Exciting times.

19 May 2007

John Goerzen: Jacob Update

He's almost 8 months old now. Terah and I went outside today and took some pictures of him.

He was quite interested in the grass, so it was hard to keep him sitting up straight. He kept trying to lean over and pull at the grass. But I think we got a few good ones anyhow. He's wearing his grandpa's outfit in all of these.

img_2175

To see more, click here to view them all.

Wouter Verhelst: Updating Debian/m68k patches for gcc 4.2

In a perfect world, software would work perfectly. Unfortunately... well, you know the drill. Since GCC 4.2 is upcoming, our resident GCC guy doko asked me to find someone to have a look at updating the Debian patches for GCC 4.1 so that they'd apply. Since I need to learn about GCC anyway for the Debian/ColdFire project (which nobody seems to be working on except for me), I started looking into it myself. The procedure is simple enough: uncomment lines in debian/rules.patch, and fix those m68k-specific patches that break. The first one was easy. debian/patches/m68k-gc.dpatch has been integrated upstream, so is no longer necessary. The second one was slightly more involved. But only slightly so; the patch tried to change libffi/src/m68k/sysv.S, which had received some three extra lines that conditionally add a .note.GNU-stack section. These three lines weren't there at first; but the .S file was otherwise entirely unchanged, so fixing this was rather easy. The next one is, uh, pretty hard. gcc/config/m68k/m68k.md is a file of 7k LOC in the GCC-specific "RTL" pseudo-assembly language, which I'm not at all familiar with. Yet, anyway. As a bonus, the first hunk in this file which fails to apply does so because that bit of this code has been changed rather significantly from GCC 4.1 to 4.2. Meaning:
  1. I need to figure out how this RTL code works
  2. I need to figure out what this particular RTL code block does
  3. I need to figure out what the point of this particular patch was
  4. I need to figure out how to write a patch (in RTL) which semantically does the same thing as what the original patch was doing. Without breaking the changes between 4.1 and 4.2
Wish me luck. At least the first two parts are almost finished; after skimming through chapters 12 and 14 of gccint.info, this hugging code almost makes sense to me. (oh, and if that last link doesn't make any sense to you, ask me for my fortune file at debconf) (which is in less than a month! whee! excitement!)

Jose Carlos Garcia Sogo: Apple drop

Or how online media can affect shares markets. Reading Enrique Dans' blog I have found an interesting entry on how a wrong piece of news published in an online medium made Apple shares to drop more than 4% in 6 mins. The history starts when Engadget published a false ticket talking about a delay in iPhone and Lepard releases. A supposed real internal mail from Apple was leaked to them, stating that delay. Actually that was a hoax. A spoofed mail that trespassed Apple mail servers and was delivered to a bunch of Apple employees, one of them leaking it to Engadget. About one hour and a half later, Apple sent another mail to their employees stating the untruth of the previus mail, and Engadget quickly published a rectification. But, in the meantime, the word spread fast and shares drop the 4% percent I mentioned before and with a lot of volume, which is an important signal for brokers that something is going wrong and that you have to sell your shares, increasing the effect in a snow ball way. The shares price drop meant Apple's market capitalization was 4 billion less (as US billions here) in 6 minutes. Information is crucial nowadays. But the speed at which it spreads is even more important.

Apple Market Cap drop

18 May 2007

MJ Ray: Server setup: Samba

What I learnt this morning while installing Samba so that an out-of-ink Microsoft PC could print on a toner-full laser attached to a GNU/Linux workstation: Firstly, the manual authors seem to prefer to document CUPS. I don't understand why. Surely if one has CUPS installed already, a Microsoft PC can print to it as a network printer without Samba? I installed Samba because I want to print without replacing lpr and breaking things that print from the workstation already. Secondly, if you ytpo smb.conf badly enough, then smbd will sulk. Particularly passwd-related options. To persuade it to give useful error messages, smbd -F -S -i seems the magic combination. If you don't put -i, it decides that you really meant it to daemonise, despite the other options. Thirdly, it doesn't break it if Microsoft Windows puts "unable to connect" or another strange message on its Printers window. I'm not sure what that message really means. Finally and most importantly, if the nobody user is not allowed to print, make sure Samba is sending the print job as a different user that is allowed to print. That's the "guest account" option in the printer config.

Michal Čihař: New Gammu API

Thing I longer wanted to happen is now becoming reality - Gammu is getting new public API. Man reasons for the change are: The work is not yet still complete, but the API is getting final shapes right now, so you still have chance to change something. While doing such big change, I decided also to complete documentation of all public functions. This is also currently work in progress, but arising API documentation is already available. If you are developer using Gammu library, you will have to change some things in your code. To document these changes, new Porting guide has been created. I suggest you not to start with this right now as the API is really not complete and might change a lot during next days.

Evan Prodromou: 27 Flor al CCXV

Well, today started out really anxious and is ending pretty reasonably. (Or so I think -- maybe tomorrow is going to be really nuts). First, RoCoCoCamp buzz is just nuts! Lots of people are blogging about it, planning to attend, and having fun talking about it. I count at least Patrick Tanguay, Sekhmet Design, Montreal Tech Watch, Montreal Tech League (no relation), Michel LeBlanc, Fred Ngo, Sylvain Carle, Rhymin' Simon Law, NathanR, Creative Commons Canada (thanks for the shout-out, gang!), Adrien O'Leary, Andreas Gohr (coming all the way from Berlin!). We're flirting with almost 100 people on the participants list, which I think is going to mean about 120-150 people. So I'm no longer worried that not enough people are going to come. Last night I got a quote for someone to provide coffee in the morning and at afternoon break for all three days... for $1800! So this morning I rented three coffee percolators (one for regular, one for decaf, and one for tea) and a bunch of cups and plates from Celebrations up on Jean-Talon. Maj and I shopped for coffee this afternoon. Total cost? $250. That means more money left over for pizza Saturday night! It means some more hassle for me and for the attendees, but I think we can handle it. Tomorrow morning early I have to stop in at St. Viateur and get 10 dozen bagels for the whole gang. I think many people who are attending don't know Montreal bagels, so they'll be in for a treat. Of course, some of the Montrealers will be mad I didn't get rival Fairmount Bagels instead. Tough for them. I know tomorrow is going to be crazy, but tonight I'm feeling pretty mellow. My good friend Zach Copley is on his way into town right now; we're working together on the kei.ki project and it will be great to have him here. Tomorrow Mark and Allegra arrive. So many good folks are going to be at RoCoCo: I think it's going to be a lot of fun. tags:

Martín Ferrari: About installing a complex perl web application

Today, MJRay asks how to make MakeMaker (no redundancy!) do what he wants. Incidentally, I faced this issue just yesterday, preparing an application for internal use in my job. As sysadmin, I want all the homebrew software to be Debian-packaged, even if they're not the most policy abiding packages. I was installing some modules for mod_perl2, some utility modules and a couple of scripts. Of course, it also needed accesory files, like images for the web or templates for HTML, and configuration too. After reading the reply to this post, written by Randal Shwartz himself, I got convinced that there wasn't any frigging way to make the thing do it. So my solution was far from ideal, as I wanted to put everything in the Makefile, but it wasn't so ugly, considering that it was only meant for use in a Debian package: In a nutshell, if you only want to process modules and CGIs, you can do it with MakeMaker

17 May 2007

Gunnar Wolf: When bad system design leads to pain...

A long time ago, I wrote the system that still manages the Cuerpo Acad mico Historia del Presente group in the Universidad Pedag gica Nacional. Yes, I'm happy a good portion of my project, which took me over a year of work... But I must admit a nice deal of shame as well.
Of course, it comes from not properly understanding the domain data and information volume my system would be working with - and coming up with a stupid way to implement searches. I won't get too much in detail because, even if you had access to the full search facility in the system (no, it's not available for the general public), I would not like a swarm of curious people to make last week's events come back... Anyway, the group works by daily filling in tens or hundreds of articles in the system, and having some interesting search sessions every couple of months.
I knew the performance problem was caused by an inefficient searching mechanism (explicitly, category exclusion is the prime killer). I knew loadavg jumped through the roof, memory usage did so as well... But it was not until some weeks ago we installed the mighty Munin on the machines at UPN that we got this jewel - Thanks, Victor, for putting the graphics somewhere they can be shown! ;-)
So... How much does memory usage increase during searches?

Whoa. The system has 640MB real RAM. It has as well 1GB swap. Don't ask me how the hell it reports it was using ~2GB swap - but still... And how is our load average?

Have you ever seen a (single CPU, Pentium 4 1.7GHz) Linux system with a loadavg of 80?! For those who don't know, loadavg gives you the general status on how many jobs are pending scheduling by the CPU. 1 means that all of the CPU's time during a specified timeframe was used (and, on single-core systems, it's the optimal usage level). On this machine, things start getting uncomfortable at 6 or 7. I had never before seen values even half this large.
Sigh... Well, in my defense, I must say I've warned them about this problem for over two years. My contract with them has long passed - I've repeatedly recommended them to hire somebody to fix it. So far, they have not.

Andrew Stribblehill: Timing random disk seeks

I asked an interviewee how long it takes for a disk seek, and he replied that he thought it was between 4 and 8 milliseconds. Speaking with colleagues, the conventional wisdom was that it was around 10 ms. I was unsatisfied so I thought I would try it for myself.

time sudo perl -we '$disk="/dev/sda"; $n=1500; $blocks= blockdev --getsz $disk ; if (!$blocks) print "Enter capacity in manufacturer GB\n: "; $blocks=1953125*(
) ; use Time::HiRes "time"; open DISK, $disk; $start=time; for (0..$n) seek DISK, int(rand($blocks))*512, 0; sysread DISK, $x, 512 die; $now=time; $times[int(($now-$start)*1000)]++; $x=$now-$start; $s2+=$x**2; $s+=$x; $start=$now ; for (0..$#times) if ($t=$times[$_]) $tot+=$t; $median =$_ if $tot>=$n/2; printf "%3d %s\n", $_, "x" x ($t/2) . ($t%2?":":"") ; printf "\nTook %3.4gs for %d seeks of %s (%d GB)\n", $s, $n, $disk, $blocks/2097152; printf "Mean: %2.03gms; Median: %d-%dms; Std dev: %2.03gms\n", 1000*$s/$n, $median-1, $median, 1000*sqrt($s2/$n - ($s/$n)**2);’
It should be obvious that before you run this, you should check for yourself that it doesn’t do anything dangerous. Or at least check that $disk is set appropriately for your hardware and operating system. If you don’t have blockdev, estimate the number of 512-byte blocks and set $blocks to that value. (There are 1953125 blocks in a hard disk manufacturer’s "Gigabyte".) The graph it produces prints an ‘x’ for two seeks of a given number of milliseconds and a trailing ‘:’ if there was one left over. For me, on my one year old Linux 2.6.18 workstation with a 160 "GB" Western Digital (WDC WD1600JS — quoted seek time 8.9 ms) the typical output is:
  0 :
  3 :
  4 :
  5 x:
  6 xxxx:
  7 xxxxxxx
  8 xxxxxxxxxxx:
  9 xxxxxxxxxxxxxxxxx
 10 xxxxxxxxxxxxxxxxxxxxxxx
 11 xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 12 xxxxxxxxxxxxxxxxxxxxxxxxx
 13 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 14 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 15 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 17 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 23 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 24 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 25 xxxxxxxxxxxxxxxxxxxxxxxxxxxxx:
 26 xxxxxxxxxxxxxxxxxx
 27 xxxxxxxxxxxxxxx
 28 xxxxxx:
 29 xxxxx:
 30 xxxx
 31 :
 32 :
 34 x
 35 :
 57 :
Took 27.69s for 1500 seeks of /dev/sda (149 GB)
Mean: 18.5ms; Median: 17-18ms; Std dev: 5.24ms
real    0m27.859s
user    0m0.116s
sys     0m0.044s
Why might I care? 18 milliseconds is almost a lifetime compared with anything else a modern PC does. It’s slower than my monitors’ refresh period! I can read around 1 MB from disk, 10 MB over a GigE link or 20 MB from RAM in this time. I can ping from Ireland to England, crossing 40 routers there and back, in the time it takes for my disk head to seek. Every time you read something from a previously unread file, it costs on average EIGHTEEN MILLISECONDS even before it starts reading. That’s just 55 in a second. This has obvious implications for I/O program performance, i.e. that of most servers. If anyone has a concern about my method, I’d be interested to hear it. I’d also like to see the timings for different disks. Either post the whole histogram or just the stats, plus the make and model of the disk. On Linux you can get this from dmesg or hdparm -I device. Update: I’ve made the script more robust under non-existence of blockdev.

Ross Burton: GTK+ Tip of the Day, Sound Juicer news

First, a tip of the day. Thanks to Matthew Garrett for pointing out that GLib 2.14 will have API for creating timers with second granularity (instead of millisecond): g_timeout_add_seconds(). This means that multiple timers scheduled to go off at roughly the same time will be fired at once, resulting in power savings. I'm pleased to see this land in GLib, and can't wait for GLib 2.14 now as it is looking really good: GRegex and GSequence in particular are interesting new additions. In Sound Juicer news, Luca Cavalli has ported the gedit/Epiphany plugin code to SJ. It's definitely work in progress at the moment, but it is coming together nicely. Follow #311688 if you want to keep up with the changes. The first two plugins I'd like to see from both feature and proof of concept angles are more complete CD playback controls (repeat and random), and downloading of album cover art. NP: Delay, Dub Tractor

Next.

Previous.