Search Results: "uwe"

20 March 2007

Erich Schubert: Flash memory and wear leveling

Uwe and Gunnar have been talking about using flash aka. solid state disks. So far, every USB memory stick I had has died after a fairly low number of write cycles... sometimes doing a low level format helped, but the errors resurfaced again later on. Interestingly enough, I never had such problems with digial camera media, just with USB thumb drives. The wikipedia article on Flash RAM is also rather vague:
Another limitation is that flash memory has a finite number of erase-write cycles (most commercially available flash products are guaranteed to withstand 1 million programming cycles). This effect is partially offset by some chip firmware or file system drivers by counting the writes and dynamically remapping the blocks in order to spread the write operations between the sectors.
And where do they store the write count without doing extra writes? :-) (Note: you can do some simple counting with programming cycles only, i.e. by doing only NOR/NAND operations and no resets) Note that there are also filesystems designed for flash, e.g. JFFS2, that have built-in wear leveling at the filesystem level. It might also make sense to not use a media with wear leveling, but instead do it yourself in software. However you most likely won't have a choice here unless you build your own hardware and want to skip the extra controller. You should however try to keep the number of writes low, so e.g. disable atime for ext2/3 (I guess JFFS2 doesn't support atime by design), reduce the frequency of flushing buffers to disk ('laptop mode') and use RAM filesystems where possible (e.g. /tmp). Anyway, go and read above Wikipedia article, it has some good information on it. And in half a year, many laptops will sell with hybrid drives, because of Microsoft pushing that technology. (I remember having read that in fall, having a hybrid drive will be a requirement for Vista gold compability or so?) It would be interesting to work out how Linux can benefit most from such a hybrid system. I can imagine using a USB thumb drive with my laptop both as access key and for rapid boot (my harddisk is encrypted anyway, and it would make sense to not have an unencrypted bootloader on the disk, but only on the flash drive. The flash drive would not contain the key, but the kernel, decryption software, i.e. cryptsetup etc., and maybe some services to be loaded on boot for fast startup)...

Gunnar Wolf: Flash disks' reliability

Uwe asks about fast, reliable, not noisy storage mechanisms - And yes, of course, he talks about Flash memory's well known limitation: The relatively low number of write cycles each area of the memory is known to be able to withstand. I recently told this same argument to a friend who was enthusiastically telling me about his dream project of setting up a computer based exclusively on solid-state storage. Of course, he didn't like the limitation.
But after reading a bit (sorry, I don't have the URLs at hand - but Google is a good friend), it seems that many (most? all?) controllers work around this limitation by rearranging the most used blocks around, so that the Flash gets as evenly used as possible. Quoting from Wikipedia's article on Flash memory:
Another limitation is that flash memory has a finite number of erase-write cycles (most commercially available flash products are guaranteed to withstand 1 million programming cycles). This effect is partially offset by some chip firmware or file system drivers by counting the writes and dynamically remapping the blocks in order to spread the write operations between the sectors. This technique is called wear levelling. Another mechanism is to perform write verification and remapping to spare sectors in case of write failure, which is named bad block management (BBM).
So, Uwe, just check the media you get supports wear levelling technology, and you should be safe.

17 March 2007

Uwe Hermann: Silent, fast, long-living USB storage devices for use as hard drive?

As I recently bought a NSLU2 ("slug") for 24/7 server usage and random ARM-based development (more on that later), I'm looking for a suitable storage device to use as the root filesystem for a complete Debian system. The requirements are: The last item is the most important. The obvious choice is a USB memory stick, but unfortunately those are flash-based and only survive a certain number of write cycles. Thus I'm looking for something which at least survives enough write cycles to make it usable for a few years... I do know several ways to reduce the number of writes via software, that's not what I'm currently interested in. I'd like to know which storage types will survive the longest amount of time (because of their hardware properties). Some options: Has somebody else done something like this before and can share some experiences as to which storage type is best suited for such a scenario? I suspect my slug will be mostly idle, but there might also be phases where it runs on 100% CPU and heavy disk I/O for multiple days in a row...

16 March 2007

Uwe Hermann: Google Summer of Code and LinuxBIOS

LinuxBIOS logo We're happy to announce that the LinuxBIOS project will have the possibility to take part in this year's Google Summer of Code™ (GSoC) program. coresystems GmbH was accepted as a mentoring organization for the GSoC and will mentor all LinuxBIOS-related projects. There is a GSoC page in the LinuxBIOS wiki which collects a few ideas for student projects, among others: Feel free to post more ideas and wishlist items to the LinuxBIOS mailing list. If you're interested in applying for a project, you need to hurry up. The deadline is March 24, 2007!

7 March 2007

Uwe Hermann: LinuxBIOS with X11 server, completely in Flash ROM

LinuxBIOS and X11 screenshot 1
LinuxBIOS and X11 screenshot 2 Now, this is one cool project (and video) from Alan Carvalho de Assis (and friends), as announced on the LinuxBIOS mailing list: LinuxBIOS with X Server Inside (YouTube video). The setup: LinuxBIOS + a Linux kernel + BusyBox + a tiny X11 server (Kdrive) + the Matchbox window manager + rxvt. All of this in a normal BIOS chip (2 MB), without any hard drive connected (who needs hard drives when you can fit everything in the BIOS just fine)... The thing boots into BusyBox in less than 6 seconds, then in ca. 2 seconds into X11 + rxvt. There's probably even room for improvement there... It seems there will be an OGG Theora version of the video soon, and I hope a small HOWTO about the project, too. More LinuxBIOS-related screenshots and videos are available in the wiki btw., and a bunch more will follow soon...

25 February 2007

Uwe Hermann: LinuxBIOS talk video recording from FOSDEM 2007

LinuxBIOS logo Highly recommended for anybody who might be even remotely interested in LinuxBIOS: There's a video recording (OGG, 234 MB) of the LinuxBIOS talk at FOSDEM 2007 by LinuxBIOS-founder Ron Minnich. The talk is about LinuxBIOS, its history, how it works, what the main challenges are, where it's used today and what the future will likely hold. Watch it, you won't regret it. And if you want to know more, or maybe even consider contributing, head over to linuxbios.org or contact the mailing list.

21 February 2007

Ross Burton: ICC Profiles In X Specification 0.2

About 18 months after the 0.1 release of this specification comes 0.2. This is a very simple update and now specifies how to handle Xinerama-style setups where a single root window has multiple physical screens (thanks to Kai-Uwe Behrmann). ICC Profiles In X, version 0.2, can be downloaded here. NP: Takk, Sigur Rós

16 February 2007

MJ Ray: SPI: eVoting and other links

Elections, for Profit
Basic problems in the e-voting systems of Denver, Colorado, USA
German people: do you care about democracy and your right to vote? Uwe Hermann
I wonder what happened to this petition?
The Open Rights Group : Taking the lid off e-voting
So, given that e-voting is known buggy and considered harmful, what does the UK do? Follows the other sheep into the abyss, looking ahead as little as possible. Here's ORG's explanation of the situation.
Open Voting Foundation @ SPI
Open Voting Foundation sounds like it should be a project to stop the spread of the e-voting problem, but it isn't.
European Commission endorses open source - ZDNet UK
A lengthy EC report (is there any sort besides lengthy?) summarises the benefits of free software. I think one important way that more partner organisations can help SPI-like groups is by helping to inform about this sort of local development.
LWN: The end of the Fedora Foundation
When you see that Red Hat can't/won't start a foundation around its distributions, you realise what an amazing thing SPI is.
2007-02-16
Agenda for this evening's board meeting. I seem to be having difficulty staying connected.

10 February 2007

Uwe Hermann: Capturing and replaying console/terminal sessions with script and scriptreplay

Have you ever wondered how you can easily capture a console session on Linux (and probably most other Unix-like OSes) without the need for special video recording software? Here's how: you can use the script(1) command (part of the bsdutils package). An even cooler feature is that you can replay a script with the correct timing information: See the script(1) and scriptreplay(1) manpages for more details.

7 February 2007

Uwe Hermann: FOSDEM interview with LinuxBIOS founder Ronald G. Minnich

LinuxBIOS logo A few interesting interviews with speakers at the upcoming FOSDEM 2007 have been published. I especially recommend reading the interview with Ronald G. Minnich, the founder of the LinuxBIOS project. Here are the questions he was asked: Answers here ;-)

2 February 2007

Uwe Hermann: Linux Genuine Advantage (tm)

Linux Genuine Advantage™ is an exciting and mandatory new way for you to place your computer under the remote control of an untrusted third party! According to an independent study conducted by some scientists, many users of Linux are running non-Genuine versions of their operating system. This puts them at the disadvantage of having their computers work normally, without periodically phoning home unannounced to see if it's OK for their computer to continue functioning. These users are also missing out on the Advantage of paying ongoing licensing fees to ensure their computer keeps operating properly.
[...]
Once you've installed Linux Genuine Advantage , you'll want to register and send in your licensing fees to receive these important benefits:
  • Your computer, which worked just fine before, will continue functioning normally!
  • Our software which you just installed will not disable logins on your computer (as long as our license server keeps working properly)!
  • It's totally awesome!
  • We might not raise the yearly licensing fees in the future!
[...]
Did you wake up this morning and say "I wish someone would figure out a way to let me do less with my computer"? You've come to the right place!
Hilarious! They even got source code: http://www.linuxgenuineadvantage.org/source/.

Erich Schubert: Non-systemwide proxy settings

Uwe Hermann asked about per-application proxy settings for GNOME apps. I don't think this is currently supported in the UI; a majority of users won't want to have to configure the proxy for each application independently. That would suck even more. I agree that it would be nice to be able to use different proxy settings for single apps. But from an UI perspective it somewhat sucks. I didn't check galeon gconf, only epiphany. There were no override settings for the proxy. One thing you can definitely try is using about:config. Maybe you can even use a javascript:foo bookmarklet to change proxy settings; these probably won't be persistent. On the long run, I suggest someone to work out a scheme on doing these overrides in gconf, and then providing patches for Epiphany and Galeon. I bet this has been on the radar for GNOME people, but just on a low priority. My suggestion for such as scheme would be to use proxy profiles. If there is only one profile, the proxy settings dialog will be as it is right now; all applications default to the "Default" proxy settings. An "advanced" button in the dialog allows me to setup multiple proxy profiles (e.g. no proxy, proxy at work, privox+tor) and the UI in applications should consist solely of this profile chooser.

30 January 2007

Uwe Hermann: Per-application GNOME settings

Dear Lazyweb, how the .... am I supposed to tell GNOME to use or not use an HTTP proxy for specific applications? Sample scenario: Now guess what happens when I disable the HTTP proxy in Epiphany. It's disabled in Galeon, too. Enable it in Galeon, and Rhythmbox will use the proxy (thus slowing down huge downloads for no reason). Aargh. Is it really so hard to have per-application settings? I mean, this isn't exactly rocket-science, right? And yes, I do want to use all those applications at the same time. And no, I do not run a full GNOME desktop environment (I use IceWM, thanks), so I don't care about any GNOME-Desktop-Foo solutions — I just want each of those freaking applications to have their own settings.

24 January 2007

Uwe Hermann: Once again QEMU saved the day...

Suppose you want to try out Xen for the first time, and you're a bit paranoid careful because, well, you don't want to break your system. No problem, just download the Xen 3.0 Demo CD Image (a live CD). Or so I thought; it took me a loong time to even find a download link for that beast. There seems to be no ISO image for 3.0.4, but only for 3.0.3 (gah!). Anyways, the live CD seems to try to mount /dev/sda as my CDROM drive, which is... um... stupid, as that's a harddrive. A SATA harddrive to be more specific. A dm-crypt'ed hard drive to be even more specific. So there's no way the live CD can ever mount that. I was dropped into a minimalist shell, but couldn't figure out how to fix anything from there, and a quick look at the docs didn't reveal anything either. So here's my fix: Nice huh? QEMU's hard drive is an IDE drive, it's called /dev/hda (instead of /dev/sda), thus the live CD works fine. (Yes, I'm sure this could be fixed "the right way" too, but this is a nice way to get quick results, i.e. a working Xen test setup)

22 January 2007

Uwe Hermann: Unmaintained Free Software progress

Unmaintained Free Software new main page Yet another Unmaintained Free Software update: Thanks to Matthias (again), we now have a wonderful new main page in the wiki, which looks a lot better than the old one which I had created a long time ago... The nice icons were created by David Vignoni for the Nuvola icon theme for KDE 3.x. They're available under terms of the GNU LGPL. Many other things in the wiki are currently undergoing a long-overdue update and fixing phase. I plan to upgrade the MediaWiki installation we're using, and some new MediaWiki extensions will be added, too. Oh, and I created and installed a nice favicon for the site, based on the project logo. If you ever wondered how those things are created, here's one possibility:
  1. Create two PNG images, one 16x16, one 32x32 pixels.
  2. apt-get install icoutils
  3. icotool -c foo16x16.png foo32x32.png > favicon.ico
  4. Place the resulting favicon.ico file in your DocumentRoot. Done.
I'm sure there are other and better ways to do it, but this was the first I came up with after a quick apt-cache search favicon.

19 January 2007

Uwe Hermann: Second Life client GPL'd - two weeks later...

A nice recent example of the benefits of open-sourcing software is Second Life, the well-known online virtual world. The Second Life client was released under the terms of the GNU GPL (version 2) roughly two weeks ago. Since then a lot of community activity has been observed: Most of these things (and others I might have forgotten) would certainly not have happened with the closed-source client anytime soon...

17 January 2007

Uwe Hermann: Surge in GPL source code releases

Is this just me or do we see a highly increased rate of (important and interesting) stuff being released (or announced to be released soon) under the terms of the GPL lately? A few examples: This is a great trend and good news for all of us. A special thanks to Sun for releasing more and more stuff under free licenses!

15 January 2007

Uwe Hermann: Six Years

Interesting day.

14 January 2007

Uwe Hermann: Upgraded my website to Drupal 5

I have upgraded my website/blog/podcast/photoblog/linkblog/whatever to Drupal 5.0-rc1 today (I'll skip 5.0-rc2 for now and wait for the final release of 5.0 for the next upgrade). The upgrade went quite nice, even though I had to upgrade several modules and port quite a bunch of custom hacks I had on my old (Drupal 4.6) site. I first upgraded to 4.7, then to 5.0 (as is the recommended procedure) on a test-site, and after figuring out how to fix or work-around all the issues that appeared, I upgraded the live site. I password-protected the site during the upgrade, that's why it wasn't available for a while today (and caused some problems on Planet Debian it seems, sorry for that!). New features you might enjoy: If you notice any bugs or problems with the site, please let me know.

12 January 2007

Uwe Hermann: New Unmaintained Free Software logo

New Unmaintained Free Software logo Thanks to the great work of Matthias we now have a great new logo for the Unmaintained Free Software wiki. Thats' all.

Next.

Previous.