Search Results: "dom"

18 August 2006

Aigars Mahinovs: This is not America

A song This Is Not America by David Bowie tuned me in to the radio playing in the background. And I realised - the USA that exists today is not The America anymore. The America is the land of free and brave. The USA is the land of self-restricted cross-monitoring cowards. And I am talking about the attitude of the people, not about the government here. People make the country, not the government. The America would have laughed in the face of 9/11 and said “Bomb us all you want, bet we will not give up our freedoms!”. The USA crawled into a corner and pleaded to its president to take away all its freedoms and wealth just to get a false sense of security, which it still has not got. I would like to live in The America, but the USA is just pitiful. The American dream is dead and buried by the same people that once made it - the USA public. RIP. P.S. If you think that my blog has become too political, then I am sorry, but the problem is that politics slip into our lifes more and more and if we - regular people, do not become politically involved, then the polititians will just assume the we do not care and make decisions based on who pays their lobbies more. Think software patents, just on a much wider scale and with much wider implications, like the WW3.

16 August 2006

Manoj Srivastava: Burninating spam

It is funny that people say that no one has written software that does Beysian filtering in order to reject Spam at the SMTP level, just when I felt like writing up my mimedefang setup. I am of the school of thought that the only acceptable method of dealing with spam is to reject it at the SMTP protocol level. To accomplish this, I run crm114 and spamassassin from my mimedefang-filter, which runs as a milter while my sendmail is processing mail. I also do conditional grey listing, more on that below. The reason for running two different Spam detection mechanisms is that while one or the other is often fooled and mis-categorizes mail, the score or confidence level of such mis-categorization is low, and the mechanism that is not fooled enables the combined system to do the right thing in most cases. I tend to quarantine and keep even the messages I reject for about a month, and do spot checks, so out of roughly a 800 mails a day volume, I get about one or two spam messages a day, and did not ever reject a mail I manually would classify as ham in the 6 months n which I double checked every decision taken by my system, and in the spot checks I continue to perform. While this is not as good a record as the author of crm114 reports, it is good enough for me. The grey listing: since I try to be conservative, and opt to lean towards not discarding any email that is legitimate at the expense of not trapping all spam, and since I do not discard any mail I accept unread based on an automated decision, I was getting more Spam than I cared for still. So, I added the grey listing layer – but only for mail that were not ambiguously spam or viruses (which are rejected), or ham, which are accepted for delivery. Most of the Spam that was slipping through came from the grey area. So, I implemented grey listing only for these mails. Grey listing happens on a triplet of the class C domain of the senders IP, the sender, and recipient. A grey listed email encounters processing problems, and is temporarily rejected with a 503 for 30 minutes, and then retries are allowed through for 4 hours, in which case the triplet is white-listed for 35 days (catches monthly announcement messages). Known Spam resets the white-listing, and retrying past the window does too. Doing it this way, known good correspondents suffer no delay, unambiguous mail from strangers flows right through, and I improve my filters based on the results all the time, so my discriminator improves. My filter is available for examination. See also the older posting, like the time honoured tradition of /., this posting is a duplicate.

Lars Wirzenius: Random thought: TDD doesn't eliminate debugging

Martin, I know about TDD, thanks. It is great for preventing all the kinds of bugs you expect to make (or make again), and can write test cases for. Been using it for years. It's part of what I meant when I said "every now and then a bug slips through, and then I'm screwed". It doesn't, however, help, when something really unexpected happens. For example, who would have expected beforehand to write a test case for the Pentium floating point bug? Not just a test case of whether floating point arithmetic works at all, but a test case specifically for the small number of special cases in which the original Pentium failed. It's for the unexpected cases where you really need your debugging skills. That's what the book is good for.

Aigars Mahinovs: DVFS

My plea has been answered by a DVFS project specification. For some strange reason, my edits do not show up in the freedesktop.org wiki page and the blog of its creator is not reachable, so I post it here. I am very interested to help develop this tool and then use it in Simple Backup Suit (sbackup). An additional feature that I would love to see is automatic splitting of a file into several chunks. In an ideal work it would be possible for me to get (in Python) a filehandle-like object that would compress the data (gzip/bzip/..), encrypt it (with simple encr. or gpg style), transfer it over network (ssh/ftp/dav/smb/…) and then split into 100 Mb pieces on the remote server (to overcome possible max filesize problems with 10,50 or 100 Gb backups). And have the freedom of flexibility of activation of each element of this chain when creating the file handle. Also the interface must react in exactly the same manner regardless or the backed being user (for example opening non-existing files must always rise the same error).

Felipe Augusto van de Wiel: 15 Aug 2006

13 years...

[Debian]
Happy Birthday!!! I was waiting a little bit, in other parts of the world Debian is already celebrating, now people from Brazil (and also UTC-0300) can join the party! Last Saturday our Debian User Group celebrate the Debian Anniversary with a big barbecue, sports and good conversations during the entire afternoon! Next Saturday (19.August) different Debian User Groups in Brazil will coordinate the Debian Day in different cities at the same time. Have fun! 13 years of Debian and counting! :-)

In a quick note, I'm still moving ahead with my NM. I have to fix a few points on my packages (and I'm still waiting my sponsor -- Hi Otavio! -- to upload a couple of packages). And I have a few more to work on, I hope I find the time in the next days.


[Random Stuff]
At Monday (14.August) night (20h 00min UTC-0300) I visit (pt_BR) a very small city in the state I live in Brazil. They invited me to speak about Debian and Free Software for a group of students and also for locals. It was a nice talk and one of the things that got my attention is the number of women interested, of course, I told them to visit the Debian Women Project (which reminds me that I need to translate the site -- and lots of other files). Back to the work!

15 August 2006

Martin F. Krafft: Test-driven development

Lars, I strongly suggest test-driven development. It seems to preemptively do the most relevant of what the debugging rules you quote instruct you to do later. The principles:
  1. design your interface
  2. write tests that fail
  3. write the code to make the tests stop failing
  4. refactor
  5. lather, rinse, repeat
It's a philosophy that anticipates bugs and errors, yet it uses that very fact to guard against them. Test-driven development has changed the way I (and many others, I learnt it while becoming a Plone developer) plan, design, think about, and implement code. And yet, it's really not far away from how you're already doing things. Really. For C++ coders, I recommend libtut, which is elegant and non-intrusive. PS: The definitive (and quite good) book on test-driven development by Kent Beck is only 200-something pages, so it's also in the domain of shorter books. Update: sorry, liw, for making it sound like I assumed you had spent the last years in a cocoon or cave or curled up in a corner. I didn't intend to doubt that you know of TDD, just wanted to get that off my mind what your post put there. And of course, I agree with you: TDD will not eliminate debugging. But it will make your debugging sessions a lot less frequent, even though the really long and painful ones are exactly those that it won't prevent...

Zak B. Elep: Be Thankful

(Or, Why a Broken Video Card is a Good Thing™.) Yesterday, my nVidia geForce4mx-440 video card broke its advanced rendering stuff (OpenGL, accelerated X, et al.) forcing me to use its VESA mode for X. Of course, this wasn’t much of a pain for me since I don’t do much rendering or gaming nowadays (only for some parish projects,) but for my folks (who use this desktop when I’m away, of course ;) this was a major problem. Well, at least for my Mom. The breakage of the video driver meant that the Windows installed alongside my Kubuntu system could not start up normally; one had to press F8 at boot time in a splitsecond to catch the elusive Windows menu that allows, among other things, logging in to Windows under Safe Mode or VGA mode. The result would be to get inside a 640×480 desktop, with barely much room for movement; while its certainly possible to adjust to 800×600, the fact that one had to do that meant an extra step in using what really is a 5-year-old-and-hopelessly-outdated operating system. Not to mention the occasional flickers of the screen and random image corruption. Then, a bit later, Windows finally gave up. Neither the safety of Safe Mode or the vega of VGA mode can save the user from the horror. A monitor with its status lights blinking, blinking, blinking… Mom would be in a panic. And she has classes tomorrow, and she needs to print some things NOW!!!  Ok, said I, System Administrator of the Desktop revan. I’m going to do something. And do something I did. I promptly logged in to Kubuntu, cleaned up one of its partitions that used to hold /usr/local/ (a hangover from my old Debian install, and cp -pa‘d my way, backing up what’s in C:\Documents and Settings\ as well as some other important files. Then… I was a bit stumped. What else I could do? Reinstall Windows? Yeah, right. That could work, but then again I need to go through the hoops all over again, activating the damn thing (knowing full well that Windows Product Activation ceased some months ago) and grabbing the stuff needed to have a working system (office, internet, etc.) Of course I can simply use OpenOffice.org, but I figured if, I installed OpenOffice.org for Windows, then why shouldn’t I install yet another GNU/Linux system as well? That lead me to the idea of simply extending my /home setup in Kubuntu to cover the old Windows partition, but I figured too that this is awkward. Then I remembered that Mom was nagging me to install Edubuntu some time ago, after having heard that is was really neat as an teaching system. Of course! This is the perfect time. The opportunity finally presented itself. So, I finally fragged /dev/hda2, formatted it using ReiserFS, and promply installed Edubuntu. Teh Ende Result: Sweet. Well, my revan’s finally Windows-free, for the first time since it got to our home in August 2003. A fitting birthday change, indeed. Thanks to my b0rked video card. And Edubuntu! :D

Lars Wirzenius: Random thought: Seminar: Linux 15 years

There's going to be a small seminar on September 4 at the University of Helsinki CS department to celebrate Linux's 15th birthday. See the official page for more information; in Finnish only, I'm afraid. I'll be talking about the early days.

Steve McIntyre: DNSBL and SMTP callouts

Russell asks about the interaction between blocking and callouts. If people have configured their mail server to block connections completely using blacklist data, then they're quite simply asking to not get mail. The traditional way to implement these checks is to allow connections, MAIL FROM and RCPT TO. Drop connections at the DATA stage. Normal callout connections will never get that far. Aside: I'd have simply added this as a comment on your blog, but I'd need to set up a blogger.com account (which is a pain) and they currently don't seem to be allowing any of the 20-ish account names I just tried, including random alphanumerics (worse).

Evan Prodromou: 27 Thermidor CCXIV

I went up today to visit Kasper Souren, AKA Guaka, who's visiting wt:Montreal for a few weeks. Kasper and I have been in touch for several years -- he's been involved with Wikitravel almost as long as anyone -- but we just met in person a couple of weeks ago at Wikimania. He's just returned from South America, and will soon depart for the West Coast of North America and then off to Mexico. He's quite a traveller. Guaka's here to help out with the CouchSurfing Project, an excellent wt:hospitality exchange program that lots of people say good things about. There are apparently bunches of CouchSurfers in Montreal right now helping out with technical issues, content, support, and other great Website-errific stuff. Of course, the local CS community is practicing the ethic and sharing their homes with visitors. I'm not 100% sure how it works, CouchSurfing runs on a very collective model, and a lot of people are devoting their time to this get-together. I went to visit this afternoon, partly to catch up with Guaka, and partly to visit the collective. We talked a lot about the difference between Wikitravel and hospitality exchange -- how anonymous the sharing is for an information-oriented project like a wiki, versus the very intimate person-to-person nature of home sharing. I also talked for a while with Casey Fenton, the founder of CouchSurfing and a very nice guy. We all discussed how to let CouchSurfers copy and distribute Wikitravel guides, possibly customizing them for CS needs, and also for linking back to WT to update and improve the data on our guides. I'm pretty jammed on the whole CS thing -- I'm going to sign up quite soon. Should be fun. tags:

DekiWiki I'm interested to see how this OpenGarden thing works out for MindTouch. I saw a story about their Wiki product on Port 25, which I have to admit I read pretty regularly. Every once in a while there's something I should probably know. OpenGarden is MindTouch's Open Source initiative, including a wiki engine called DekiWiki, built on the .NET technology, and a wp:REST-based Web app framework called Dream. Apparently the whole thing runs fine on top of Mono, which means theoretically I could install it. But I haven't really done a lot of Mono web stuff before -- no idea how well it works. Also, have you noticed how people involved with Mono say "MOH-NOH", like the actual original Spanish pronunciation? Unlike everyone else, who calls it "MAH-NOH", like mononucleosis? That's a weird thing. OpenGarden has a MediaWiki conversion tool, which is almost a necessity for any wiki engine trying to compete in 2006. They might want to try lobbying those guys at the Mono Project... who appear to be using MW as their main site engine! Anyways, I'm going to give this DekiWiki a try. Who knows? It could be fun. I don't know about their overreaching claims for the GPL, but it can't hurt for a local install, right? I seem to remember there was a Scheme language plugin for .NET somewhere, too... By the way, I'm still bullish on JAMWiki, the MediaWiki-workalike using Java Web Services. But I like to experiment with new software, too. tags:

SocialText Speaking of commercial Open Source Wiki software, I was really glad to see that SocialText has released a FLOSS version of their flagship product. SocialText has been such a good corporate citizen in the wiki and FLOSS world. Not only were they instrumental in the launch of BarCamp, but ST employs some of the smartest wiki minds in the world today (like Seb and Sunir). And, of course, Ross Mayfield's blog is a great clearinghouse for wiki business info. ST has made a business model in training companies in the WikiWay. I think that makes a lot of sense, and they show a lot of commitment to the idea by demonstrations like this. tags:

Fired from Technorati for my UFO beliefs So, I was having some random and unpleasant 500 Server Error errors with this blog recently, and apparently Technorati has given up on my site in frustration. No matter how often I do an update, and then ping, it still doesn't refresh my recent articles. I'll have to figure out some tricks to get back in Technorati's good graces. I like the service a lot. tags:

14 August 2006

Steve Kemp: Step inside, suprise!

As another reason why I dislike mailing list software consider the following error:
2006-08-14 21:40:25 1GCk6m-0006ZH-Vu ==  /usr/lib/ecartis/ecartis -s xen-tools-commits
R=vdom_aliases T=address_pipe defer (0):
Child process of address_pipe transport returned 75 (could mean temporary error)
from command: /usr/lib/ecartis/ecartis
What does that mean? I see precisely one hit for this error in Polish. I resorted to debugging via strace:
strace -ff -o /tmp/foo /var/lib/ecartis/ecartis -s xen-tools-commits
   < /tmp/msg.txt
The error? “Connection refused” when connecting to 127.0.0.1:25. D’oh! It should invoke the local mailer via /usr/ lib sbin /sendmail in the case of socket error. Ideally chosing the local execution in preference to the socket. In conclusion: I believe my mailing lists are fixed, however several messages have been dropped/ignored.

Ross Burton: Lack of Entropy

A while back I upgraded CUPS on my NAS device to CUPS 1.2, and as my configuration file had bitrotted I decided to erase it and start again. It was looking good, CUPS detected the USB printer like they said it would, but then it just stopped working. I had to upgrade to a SSL connection to perform administration tasks, and it just wasn't working. strace shows the daemon was just running a select loop, I had no idea what the problem was. Today after a bit more searching the solution hit me. It's trying to create a self-signed SSL key, and SSL keys need random data. Now, what creates random data on Linux? Mouse activity (the NAS has no mouse), keyboard activity (no keyboard), and disk activity (it gets used once a week). A quick poke with sysctl proved my problem:
$ sysctl  kernel.random.entropy_avail
kernel.random.entropy_avail = 8
Hm, eight bytes with which to create a SSL key from, that just won't work. Solution: find /. I ran that in one terminal with sysctl in another, and could watch the entropy pool get filled with IDE data, to be used by CUPS. After twenty seconds of disk activity, the certificate was finally generated. Yay, a working printer! So, for Google and anyone else out there: if you see Generating SSL server key... in the CUPS log and then CUPS hangs, check your entropy levels.

13 August 2006

Lars Wirzenius: Random thought: Quick! Press 3, click mouse button, press A, press 4, keep mouse button pressed...

I am in a murderous mood. Every time I see movement, my right index finger twitches. My head keeps jerking left, right, up, down. My ankle hurts because I almost twisted it, turning suddenly around when I heard a noise from outside. Today, instead of doing a bit of work that I left undone on Friday, and going to the gym, and making a nice meal, I ate leftovers and played Quake 2. Finished it, in fact. I probably died a hundred times, but eventually I got the bastard. Now I'm frustrated. I don't actually feel anything from the first paragraph. My ankle got hurt because I was trying to catch a bottle that fell off the table. However, I do feel frustrated. As I told before, some time ago I started looking at modern computer games, or rather, modern first person shooters, in single-player mode. I had a friend demo me a representative selection, and then got myself an authentic copy of Quake 2. I've now finished it, and I'm not entirely happy about the experience. The actual playing was OK while it lasted. The game is highly playable, the controls are easy, they quickly feel natural, and the game reacts to them very well. The only thing I never really got the hang of was jumping, but that was rarely necessary. The place with the three stones sliding around in water was quite annoying. Playing Quake 2 consists mainly of two things: shooting everything that moves, and solving small puzzles. The puzzles are mostly of the kind where you need to run around in buildings and twisty little corridors, all alike, and find a button to press. Not highly challenging, but if you miss one, you may have to run around the place an extra time or two, and that takes time, and gets quite boring. The shooting was also a bit of a puzzle, at times, since in order to not get shot yourself, you can't just stand in one place. In the ideal case, you can figure out a way to deal with the opponents from a safe place, throwing grenades around a corner or something like that. Mostly, though, you just shoot. Aim and click. Aim and click. Move about a bit. Aim and click. Aim and click. Move about. Aim and click. Continue until the thing blows up. The computerized opponents do get smarter, and a bit harder to kill, as the game progresses. The final big bad guy is really hard to kill, took me a dozen attempts. That turned out to be surprisingly unsatisfying. There is a storyline in the game, but it was pretty much irrelevant. There are several stages, and at each stage you need to do certain tasks, and as a result, you can go to the next task, or the next stage. All the tasks are "shoot everything" and "press a few buttons in the right order". Oh, sometimes you have to collect some items, too, and take them to places. Now that I've finished the game, I wonder if it was all worth it. I spent quite a number of hours on the game, and what I mainly got out of it was some adrenaline boosts, and those weren't enjoyable. They're addictive, even highly so, and every time I had to stop playing (to do work, or sleep), it required a lot of willpower. I wanted to continue, even if it wasn't fun. I hate being addicted. I can't deny having had a bit of fun. The feeling of being able to do things, to run tirelessly for hours, to overcome obstacles, to vanquish my foe, all that is fun, and gives a certain satisfaction. That satisfaction is feeble and fleeting. As soon as I re-focus my eyes, get up from the couch, and look outside, I realize that it was all for nothing. I haven't really accomplished anything. I'm a hacker. My life revolves around doing things with my brain, and having them affect the real world. I make software that other people use, and their lives get better, even if only a little. Every time I fix a bug in Debian, I improve the world. Heck, even just finding a new bug from piuparts log files gives me a nice, warm feeling in my stomach. I realize people don't play games to improve the world, and that's all right. I don't watch movies or read fiction to improve the world, myself. Computer games are a form of entertainment, and as long as they're fun, and you're enjoying yourself, they're fine. If playing makes you happy, be happy, and I'll be happy for you. I am not judging you in any way, I'm expressing my own feelings. I can't seem to get enjoyment from computer games, or at least I didn't get it from Quake 2. I got an adrenaline addiction, and a high frustration level. I do get distraction, something to take my mind off things, but I can get that from, say, romantic comedies, without any side effects. Thus I conclude that I am better off not playing first person shooter games. I suspect that no computer game is going to be particularly good for me. For many years now, I've played a bit of tetris, or Mahjongg, or a solitaire card game, when I wanted a bit of distraction. Those never were satisfying, either. While I did get distracted, somewhat, for a while, they didn't really work for that, either. Watching Lord Arthur and Miss Mabel get each other works much better. If I solve solitaire, nothing has changed; if I watch An Ideal Husband the nth time, at least I've felt something beautiful. A surrogate emotion is better than an adrenaline addiction.

Adam Rosi-Kessel: Return to Traverse City Film Festival

We spent last week at the Traverse City Film Festival in Michigan. This was the second year of the festival as well as our second year attending. Unlike last year, there was no “Freedom Festival” organized by Michael Moore-haters this year. Perhaps they are still recovering their debts from last year, when they lost money and had to stop their showing of “Michael Moore Hates America” after discovering it had inappropriate language for the family audience they were targeting. We saw nine films in just five days — four in one day was our max. (Rachele saw one more — The Beauty Academy of Kabul — that I missed, unfortunately, and we gave our tickets to Jesus Camp to Rachele’s parents.) Our selections were: The one that sticks most in my memory is La Moustache. The essence of the plot is revealed in the first minute of the movie: a man shaves off his mustache. His wife of fifteen years doesn’t notice. In fact, she doesn’t remember he ever had a mustache. While the film starts as vaguely comic, it quickly spirals into a psychic breakdown with a possibly unreliable narrator. It was quite nearly perfect. The beautifully restored virgin print of Monty Python’s Holy Grail was astonishing. The film was shown for free on a large outdoor screen by the lake, and the sound was crystal clear (now in stereo!) no matter where you sat. There are a bunch of scenes everyone always remembers in the Holy Grail. I realized after watching it again that the movie is composed entirely of these memorable scenes. (I had the same feeling watching the Wizard of Oz after a ten to fifteen year hiatus recently.) Finally, Stanley Kubrick’s first film, The Killing (1956) also merits the maximum rating, whatever that is (5.5 stars?). While it lacks the surreal/experimental feel of his later films, Kubrick was already beginning to play with narrative structure and sequencing. The film walks through the events leading to the climax several times, each time from a different character’s point of view. But really it’s just a great heist flick. Mani Haghigi, the Iranian director of Men at Work, had an interesting observation about the festival. Unlike most other film festivals, he, as a director, could just hang out and enjoy the films and the company and not worry about impressing executives and distributors. The festival’s motto is accurate — “Just Great Movies.”

Steve Kemp: As I watched there was another jet of gas

Migration complete! I now have two distinct servers/hosts: Both servers are backed up nightly to a “backup server” hosted in my house (Hostname: itchy.my.flat) via rsnapshot. An interesting few days getting the split to occur nicely, which involved some DNS + Domain Registrar juggling due to obscure reasons. Now that the split has been made I can start working on better caching, and performance tweaks on the d-a.org site. I’m currently investigating the use of fast_cgi, since I think that the code should be simple to modify for this. Otherwise I’m now back in action. I have pending releases of several packages to upload, and a new upstream release of GNUMP3d to prepare.

12 August 2006

Aigars Mahinovs: Bit horizon

A small idea for increasing the performance of peer-to-peer communications for highly popular files. Imagine a BitTorrent file that becomes popular overnight. There are thousands of clients trying to download it, so for each client there are thousands of possible source to get the file from. However, one client can only connect to a small number of source at any one time (50-100). Due to randominess of that connection, such sources could be from the house next doors or could be from China or Australia. This creates excessive stress on the whole Internet as the parts of the file fly all around the world over and over. I suggest to introduce a horizon effect in clients when the number of peers is much higher then the max number of connections the client can make at one time. The easiest would be to make the decisions based on ping speed, but other criteria could also be useful. For an example implementation consider this: a new client joins in downloading a very popular file on a P2P network, he discovers enough peers to enable the horizon feature, the client connects to 100 random peers and takes their ping times, a distribution is calculated and a horizon is established - all peers with ping higher then the horizon value are deemed to be too far and are disconnected, freeing the resources for finding closer peers. The algorithm would continue to update horizon calculations and eventually would converge down to a set of closest peers and that would give both optimum performance to the client and less stress for the global Internet backbones. Separate horizons could be set up for seeders (clients with fully downloaded file) and lechers (clients with only partially downloaded file), so that we do not have a whole section of the network stagnating with no seeds in the area. Anyone up to make this work in, for example, Azureus?

Daniel Burrows: We aren't ATI's market.

Erich Schubert noted that ATI is holding onto their closed drivers. While it's unfortunate, I don't think this should be surprising to anyone. NVIDIA and ATI make their money by selling cards for gamer types, who make an art out of trying to get the latest super hardware to play the newest snazzy games on. They don't give a hoot about source code access -- after all, they're probably running proprietary games on a proprietary operating system anyway.

Free software enthusiasts, on the other hand, spend their free time hacking code and so don't have time to play the massive productions the game industry puts out nowadays; frozen-bubble or Wesnoth are about as much gaming as we have time for. As a result, we can do just fine with a video card capable of displaying Emacs, a couple xterms, and maybe a graphical Web browser -- and the built-in graphics card (usually Intel) on the motherboard is just fine for that. We also tend not to run Windows or OSX, where 99% or so of graphically intensive games come out, so even if we HAD free time for gaming we wouldn't be able to do it on a free system.

As a result, while I'd certainly like to have free ATI drivers, I think it's unrealistic to expect them anytime soon. ATI is a company, not a charity, and they will not provide source code or specs until it will clearly benefit them more than it hurts. If you don't believe me, try walking into your manager's office and saying "hey, I have a great idea! Let's give away all our secrets without any clear way to make money off it!" and see how he reacts. (note that this experiment may not apply to the 1-5% [0] of readers lucky enough to work in academia)

[0] this statistic determined by the HIGHLY SCIENTIFIC method of picking a small number at random.

Steve Kemp: I ll be so alone without you

My migration to the new Xen host is 75% complete. DNS changes appear to have finished and I’ve moved all the websites that I intended to move successfully. (Including databases & etc.) I’ve got three domains to move still, but I’m being very careful with them since they tie into “local” things like CVS repositories, or mailing lists + archive creation. The website migrations appear to have been a success, although I only noticed a couple of problems just now. In all cases my problems were: I’ve tested all the areas I can think of testing now. (e.g. “find /home/www -name ‘*.cg’ -print”; then executing each one in turn!) The next job will be the mail setup. My plan:

11 August 2006

Martin F. Krafft: XFS and zeroed files

Erich complains: "If the file is damaged, just fill it up with zeroes?" (in response to my recent post on filesystem problems). Update: I rewrote the second sentence of the next paragraph (up until and including the footnote) to get things right. Thanks to Russell Cattelan for providing the info. This must be the most misunderstood feature of XFS. What happens is that XFS logs all metadata changes to the journal, except for the inode size, which gets flushed to disk immediately for performance reasons [*]. At this point, the file will actually be a sparse file, which is nothing more than a file whose metadata lists a file as being of a size different than it currently is (I realise the "sparse" does not really apply when the file is "overfull", i.e. when the metadata lists it as smaller than it really is, but I am lacking a good word for that). The disk extents get allocated only when the data actually hits the disk (that's XFS's famous delayed allocation mechanism). If the power fails before the data was flushed to disk and the journal entry cleared, XFS will serve zeroes, rather than the potentially random or sensitive data that is actually on disk. This is a good thing.
[*]since almost every write() changes the file size, it would be a massive performance hit if every size change was logged. However, XFS actually violates its own journaling rules by doing this.
You can run into more or less the same problem with any journaling filesystem; the others just don't serve zeroes. Instead, they give you the data that's physically on the medium. Imagine the situation when the corrupt /etc/motd suddenly becomes a window to your previous /etc/shadow contents... I really prefer how XFS handles that. Sometimes you do get the old data back with the other filesystems, but this is because the filesystems may reuse the blocks of the old file. So it's a trade-off, and your choice between security and, uh, convenience. The only way to protect against this is to use "physical-block journaling" (as opposed to "logical journaling"), which is only supported by ext3 as far as I know (option data=ordered), at a massive performance loss. See this mailing list post by Theodore Ts'o for more info. Thanks to Alceste Scalas for sharing it with me. PS: Thanks to Wessel Dankers and Eric Sandeen for their help on #xfs. Update: Again thanks to Russell Cattelan, I just received word that code has been added to the 2.6.17 kernel which will flush an inode at close if it was truncated at some previous point. This should take care of many of the zeroed-file issues. Update: RazorFS also supports data=ordered. Thanks to Hans Kratz for pointing this out. He also adds some more information, parts of which I've written about previously:
One of the major problems of all journalled filesystems especially on notebooks/desktop machines leading to filesystem corruption is the harddisk writeback cache (enabled by default). With the writeback cache some writes are not immediately written to disk Now if a crash happens some of the data may not have hit the disk. The journalling filesystems however need a way to rely that the certain writes have hit the disk to ensure filesystem consistency. There are two solutons: Enable write barrier support in the filesystems (avalable for ext3 since around 2.6.8, mount option: barrier=1, available for the other filesystems as well now probably) or disabling the write cache altogether with hdparm/sdparm.
XFS supports barriers as well, but unfortunately not yet on non-physical media, like RAID or dm-crypt. ext3 seems to work okay on both. Enable your barriers today!

10 August 2006

Julien Danjou: Aahaha, XFS

I must be very mean but the story of madduck about XFS made me laugh. Let me explain: I exactly had the same kind of problem on my workstation 2 years ago. A single hard reboot used to totally fuck up some random files (which were opened in read-only mode before the crash, like libraries) on my file system. Since that day I regularly spite on XFS, and I am quite amused that more than 2 years later, XFS is still totally crap! I don't understand how a so broken file system can be still in the Linux kernel. Even without power outage, I used to have dead lock problems by simply moving a (big) file and opening it at the same time. Even if I heard that this bug was fixed some versions later, I totally stopped to use that filesystem in favor of ext3, which is really the more stable filesystem I have ever seen (maybe after ext2 :-)).

Next.

Previous.