Search Results: "erich"

12 August 2006

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.

Erich Schubert: ATI likes their closed drivers. We don't.

ATI is reported to not plan to release their drivers into OpenSource. Too bad. And I don't plan to buy any more ATI graphics. I'll go with Intel. Actually it would be sufficient if they would release the specifications. We don't really want to see their "patented optimizations" (which probably are just for cheating in known 3D benchmarks anyway, so what would we gain from that?). We'd be happy if we were allowed to distribute the already written independent driver. Which is blocked by an NDA, not by some "patented optimizations". Anyway, I'll buy a new laptop end of this year, and guess what - it will have Intel graphics. They've already released drivers for their next chip to be released. My current laptop, an IBM Thinkpad A31p, has an ATI graphics board. Which is not supported by the ATI driver. Fortunately there is an opensource driver which works fine, with 3D acceleration. Another reason I'm not going to buy any ATI, you never know when they decide to no longer support your board.

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!

Erich Schubert: XFS woes

I'm going to join madduck, Gunnar Wolf and Julien with their negative experiences with XFS. The celeron 412 I mentioned before had an XFS filesystem since a few years. It replaced a raisswolffs. It certainly worked better than raiser. But as said, that old machine has been crashing, and when I copied over the data for my dad to his new machine, I noticed that his .gconf file was destroyed by XFS. All 0-bytes, typical for XFS. If the file is damaged, just fill it up with zeroes? I've seen 0-bytes a couple of times before in log files on XFS partitions that were open during a crash. It sucks that gconf didn't keep a backup. Anyway, the .gconf file includes his evolution configuration, amonst other stuff. Thats how we noticed (apart from all other gnome settings being gone, too), since restoring evolution was the top priority item for me. Fortunately, I picked ext3 when setting up the new system. I never had experiences with ext2 or ext3 as bad as with xfs. Or reiserfs, which just trashed the whole filesystem when I ran "reiserfsck". Thats not what a fsck is supposed to do, is it?

10 August 2006

Erich Schubert: Going AMD64

Up to now, my dad was using my old desktop PC, a celeron 412 MHz (366 overclocked) with Linux. Unfortunately, this trusty companion started to freeze within a few minutes after boot (even in BIOS). So after some 7 years, a replacement was needed. The guys at the computer shop (Computer Gallerie in munich) tried to convince me that nvidia is best for Linux. Basically I followed this recommendation because ATI isn't better, and there are not Intel-based onboard graphics for AMD. And AMD Sempron sounded like the cheapest CPU. And definitely cheaper than an Intel Core... But dudes: Nvidia is NOT included in the kernel. Trust me on that one. Nvidia is non-free, and their drivers most likely violate the GPL. So I ended up buying an ASRock 939NF4G-VSTA mainboard and an AMD Sempron CPU. 1 GB of RAM, an HDD, an okay housing. Just below 400 Euro, that is what I had expected. After some fighting with the hardware (the HDD didn't fit into its slot, I had to bend away some metal. No docs on which way to put the power LED plug on etc.), I was finally able to boot the system. I used todays daily-build of the netinstall CD image for AMD64. I.e. the to-be etch installer. Worked like a charm. After some downloading over my 2 mbit DSL line the system was up and running. Graphics were VESA, as expected. With some fighting with the annoying non-free Nvidia drivers, I had them working, too. Ethernet worked out of the box; I don't know about S-ATA (a driver is loaded though), temperature sensors seem to work, too. Sound doesn't work yet. The snd_hda_intel driver is loaded, however there is no sound to be heard on any of the 7.1 channels. The mixer only shows "Master" and "Capture" volume controls. If anyone knows how to get sound out of a
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)
Subsystem: ASRock Incorporation Unknown device 0888
device, I'd welcome any hints. Kernel is 2.6.17-1-amd64-k8. Maybe I just have to get a newer Alsa with some hardware information on this device? [Update: this is a realtek ALC 888, there is a patch for this to come in 2.6.18...] Anyway, I now have a AMD64 box, and as soon as I've setup some i386 chroot I'll have a useable build-box after all. ;-) And maybe I can do some SELinux testing on it, too. OTOH, I should get myself a diploma thesis topic now, and work on my final thesis.

9 August 2006

Erich Schubert: Firewire firmware workaround

Dear Lazyweb, where do I best put the following workaround
echo "Initio:WD2000JB-00EVA0:0x4000" >> /proc/scsi/device_info
needed for having write access to my Initio-chipset based external disk? I have bad luck with external drives. The first I bought is apparently a faulty prolfic PL3507. From all the other reports that happens quite often. And now my replacement housing, bought via ebay, works okay, but only with above workaround (which tells the kernel to ignore certain bad replies from the drive that make the kernel believe its read-only). I also have a 2.5" housing with the PL3507 chip, that one works fine. But two out of three having issues, that sucks.

Erich Schubert: AMD maybe to opensource ATI drivers?

Now thats what I'd call good news (URL from #debian-devel) This infoworld article claims:
AMD is strongly considering open-sourcing at least a functional subset of ATI's graphics drivers
Well, the article has some other facts wrong:
If AMD's graphics cards were the only ones with open device drivers, it might affect a buying decision or two.
Well, you know. There is not only Nvidia. There is Intel. And for both the R200 ATI Radeon series and the Intel video chipsets there are opensource drivers with 3D acceleration. It's not as if AMD/ATI would be the "only ones". Wait. Intel? Isn't that like the main competitor of AMD... AMD should better try to draw even! But yeah, if AMD would do that, Nvidia would have some issues selling their stuff to Linux users. Manufacturers that try to sell desktop linux computers will prefer AMD if it's better supported out of the box (for servers, neither ATI nor Nvidia is relevant, of course). For example Lenovo is reported to (plan to?) sell Thinkpads with SuSE Linux preinstalled (I'd actually prefer if they would sell them with FreeDOS preinstalled at a lower price); but if they preinstall the NVidia drivers (and some other things such as Intel wireless), they might violate the GPL or some of the other licenses, apparently. I don't know, just hearsay.

5 August 2006

Erich Schubert: Top tags blogged about

According to technorati, the top tags blogged about are: Israel, Lebanon, Herzbolla, Iraq, War, Bush, youtube, Sex. Says a lot about these stupid wars that they take up 6 of the top 8 spots. (Yes, I'm counting Bush as a war tag, otherwise he'd never beat Sex) As with youtube, I just wonder when they start running into some serious legal trouble, and how they can pay their traffic bills on the long run. Especially when people put the videos into their blogs, youtube doesn't get a single cent from advertisments. Or my filters are too good.

4 August 2006

Erich Schubert: E-Passports cracked

As reported on engadget, E-Passports have been hacked less than one month before they are to be deployed. Apparently "hackers" (well: scientists) were able to copy the electronic passport. So seems like after all, the physical properties of the passport are still the more secure part. Note that you don't need RFID for making passports fast to read. My passports have been featuring easily machine readable letters for ages. And of course there are bar codes, too. No benefits from wireless here. It's all about tracking. About cutting into your privacy. Other related articles: VeriChip VeryEasy to clone longer article on this "hack", on wired.com

3 August 2006

Erich Schubert: SELinux local module example

If you have some simple local modifications to your policy (not using many interfaces etc.), you can grab this local module example tarball, and make a proper SELinux module out of your changes. Maybe you can then avoid building your own policy. Notice that you can't use any macros with this standalone module source, making policy writing there a bit more difficult than necessary. :-( Based on the Fedora SELinux FAQ. I still wish we could get rid of the full M4 complexity for building the policy, and instead use something easier to reuse in such situations.

1 August 2006

Erich Schubert: Recently bought music

My latest music CDs (of course already ripped to my Ogg Vorbis player... CDs suck usability-wise, actually...): Sing when you're swinging
Sing when you're Swinging
Two CDs - the second is titled "(If you can't sing it) You'll have to swing it" - with recordings of the swing era. Some slow, some better for dancing. Rather cheap, and well worth the money unless you have many songs of that era already. Pop Swings
Pop swings
This CD is a mixed bag. It's swing covers of well-known songs of the 70s-90s. Some work great, others don't. A lot is personal taste, depending on the memories you have of the originals or how you liked them. If you didn't like the original, you might like the swing cover. If you loved the original, you'll likely hate the cover, just like any cover. The funniest thing is that one artist, Paul Anka, is on the CD in both roles, as cover artist (Smells like teen spirit) and as original artist (Diana). This is a CD you can't really listen to on-block (thats why CDs suck) or play on a party. You'll usually pick some specific songs. Perfect for parties
Perfect for parties
The full title is
Bear Family
"Perfect for parties
Highlight Album
This CD was the surprise CD. Very cheap, but very convincing. It's odd and fun at the same time. Actually it's probably as much country as it's rockability and swing. But who cares when you can have lots of fun with it? The song I like currently like best is "Burn that candle" by Charline Arthur. Note: above amazon.de links will earn me a tiny commission. It would be nice if you'd use them if you plan to order some of these CDs. Thanks. It will certainly never pay off, but when I set links I can as well set some that might allow me to buy myself a CD from it sometime later, too. ;-)

Erich Schubert: Speeding up Bittorrent

I've recently used bittorrent a bit. For example, I loaded the Ubuntu installer CD with it. For power users, I think rtorrent is a good client. I tried freeloader, but apart from some obvious bugs (it doesn't save the maximum bandwidth settings value), i'm lacking interesting information such as the number of peers or of distributed copies. When toying around with rtorrent and it's options I noticed a couple of interesting things. First of all, if you're firewalled, you'll be much slower. Allowing incoming connetions (and having a port forwarding in your router) makes a huge difference in the number of peers. My estimates are that 70% of peers are firewalled; if both of you are, you can't transfer data! The other thing is that apparently BitTorrent clients use some kind of "Tit for Tat" strategy. They request a packet, you request a packet. If you don't send them data, they'll stop sending you any. They'll still eventually retry (maybe you were overloaded), but largely your download speed will be related to your upload speed. I don't know how much peers (and seeds) trade information on who has which parts or is sharing how much upload speed. I guess they do somehow to deflect cheaters. Assuming that the illegal file sharing tools work similarly, this gives some interesting (theoretical?) ways to recude illegal file sharing:

31 July 2006

Erich Schubert: Microsoft PhotoSynth - Vapourware?

Some might have seen the videos of Microsoft PhotoSynth. That of course makes many people go all "ooooh, must, have!". Actually, the videos from University of Washingtons PhotoTour are much more impressive. And it actually tells you how it works. Read the PDF of the paper published at this years SigGRAPH, also linked from that site, for more details. The Microsoft video only shows the UI; while the Washington video gives a bit more information, but still doesn't really talk about the "backend requirements". You can get some facts from the published paper, though. Basically it's a smart combination of existing technologies, together with some good optimization (I guess). It uses SIFT feature extraction and matching (use also by panotools: autopano-sift, but unfortunately this is patent encumbered in the US; I doubt it's patentable in Germany because of it's very mathematic nature) and basically does the same as panorama tools, except in 3D - using "Structure from Motion" approaches. So you might wonder why I still call this vapourware, when there is a sigGRAPH paper backing it, and an interesting demo? Well, in the paper they mentioned their test machine to be a 3.4 GHz computer. And that the Notre Dame photoset took two week to process, and that 597 of the 2635 images were actually placed; the others maybe had too much other stuff on them, or didn't match properly. This yields the impression that for this to work you need
  1. lots of CPU time
  2. lots of well-suited images (clean projection, not too many moving people on it etc.)
  3. no gaps inbetween pictures, but a complete covering
I don't want to talk down the scientific work done here, but the Microsoft annoucement makes it sound (well, just look at who they imply in the video that their users are) like it would be a product for everyone to use within a year. It won't. Thats why I call it vapourware. It's good research, but not a realistic product. It will be very interesting for professionals, however. They can set their camera to a well-behaved angle (no fisheye; I don't expect the software to like fisheye artifacts much) and take tons of photos, trying to cover all of a building. The software will then eventually allow them to construct and texture a 3D model, with some weeks of computation. The viewer is still interesting, for data sets computed by someone with access to excess CPU power. E.g. for a company to offer virtual sightseeing.

Erich Schubert: Most of web 2.0 is not web 2.0

Have you noticed, that most of the web 2.0 "sites" aren't really worth being called "web 2.0"? Take for example friendster. Many people say that friendster is a web 2.0 thing. Sure, it's using Ajax. But apart from that? Where's the open API? Where is remixing? What is it really different from, lets say, geocities with the addition of some easier linking and search functionality (read: "social networking") And seriously, the profile pages there suck just as bad as the homepages people made with geocities. Especially social networking pages tend to sit on their data and keep it closed. No FOAF files available. That's so web 1.0ish... the web 2.0 is a lot about APIs and open data access. Can you imagine a blogging service not offering syndication (e.g. RSS)? So why a social networking without FOAF? One of the few "true web 2.0 services" remains Google Maps. Even though it doesn't have tag clouds or social networking. ;-) But Mashups adding all that. We should rename the term to "Web 2.0 beta" anyway. It's not released yet. Or use the proper term for it: "DotCom 2.0" Or we should just stop using it, because it's all marketing buzz. Talk about open APIs, remixing, mashups, semantic web, syndication, tagging instead. [Update: web 2.0 is officially just "beta" - see for yourself. It ain't a true web2.0 logo if it doesn't contain "beta"... - also check out this huge list of web 2.0 logo mockups for known brands, including FedExr, McDndld's and of course S.NY beta...]

30 July 2006

Erich Schubert: New ping of death for Windows?

According to this article on heise.de, there is new exploit code to crash Windows boxes remotely, like the famous "ping of death" in 199something. When you allow windows file sharing, you're vulnerable... Exploit code, as linked by heise. (Untested myself.) It's not yet clear whether a worm could use this vulnerability to spead; it certainly will not be as dangerous as the SQL server vulnerability, but it currently allows malicious users in your local network to crash your computer. Anyone at a lan party? ;-) On an unrelated note, watch this video (google) of a demo of Microsofts Voice Wreckognition technology in Vista. Very funny.

29 July 2006

Erich Schubert: Gentle introduction to SELinux (updated)

I've updated my gentle introduction to SELinux slides. I'm still improving them in numerous places, as well as writing more. Thanks for all the feedback I've received so far! (first announcement)

Erich Schubert: New ping of death for Windows?

According to this article on heise.de, there is new exploit code to crash Windows boxes remotely, like the famous "ping of death" in 199something. When you allow windows file sharing, you're vulnerable... Exploit code, as linked by heise. (Untested myself.) It's not yet clear whether a worm could use this vulnerability to spead; it certainly will not be as dangerous as the SQL server vulnerability, but it currently allows malicious users in your local network to crash your computer. Anyone at a lan party? ;-) On an unrelated note, watch this video (google) of a demo of Microsofts Voice Wreckognition technology in Vista. Very funny.

Erich Schubert: Web 2.0 is out. Here comes Web Twenny

Webtwenny.com is funny. Real Web 2.0 Captchas include non-Ascii characters. Maybe even non-Unicode. I also like the term "Web 2000". Because that is how new the "technologies" really are...

28 July 2006

Erich Schubert: On Amazon book scanning

Today was the first time I clicked on these buttons in Amazon that allow you to look at a few pages of a book. That is some Ajax application (which of course warned me first with some fancy schmancy Ajax popup, fading the window etc. that they only support Firefox, IE etc., ignoring the fact that Epiphanys rendering engine is, well, the same as Firefoxs'. I actually clicked the Ok button twice before it finally closed...) Anyway, what I want to share with you is a screenshot of some malfunction: Amazon look-inside disfunction So apparently they scanned the page word-by-word; often clipping the lower part (notice the missing parts of the p, g, y letters in most words). Some words have gone missing altogether (before "life"). However, the page appears to be a Jpeg image; you can see some compression artifacts around the words that are not my fault (you might need to zoom the image). So it seems like they disassemble the pages when scanning, then reassemble them to present them to the user. Sometimes messing up the background color, like in this example... interesting. Is there much data storage to be saved by merging word images and storing them only once? Are they reassembled on-demand?

Erich Schubert: On games

Lars, of course billard balls don't shoot back, if you hit them with a lame stick. Use some real weapons, and they'll probably shoot back. Try some rocket launcher. To me, the best shooter is the original QuakeWorld TeamFortress. Screw non-Linux-supporting modern stuff like counterstrike. It's boring. I think I never played any shooter beyond Quake3, actually. That one didn't care about being "realistic" (which sucks) but was about fun and arcade. Oh, make sure you don't install sgt-puzzles. Best make any local packages of yours (say... your self-compiled kernel with suspend2) conflict with it. It's just a couple of tiny games, with very simple rules. But they totally take over your mind.

Next.

Previous.