Search Results: "Simon Richter"

4 September 2006

Simon Richter: Why we don't need a steering committee

Debian has always defined itself as "the universal operating system", which to me means that, given two options A and B, each with their own advantages and disadvantages, we will incorporate them both, because there are people for whom A is better, and people for whom B is better. This is one of Debian's greatest strengths, and this is what makes it the "universal" distribution. Now there has been discussion lately about whether Debian needs some sort of central authority to pull the project into a certain direction. The thing is, while everyone seems to agree that we lack direction, we cannot disagree more on which direction it would be if we had one. At present, we have a number of groups pulling in different directions:
The "release" group
Debian's primary goal is/should be to make stable releases. In the time between releases, people should run the release candidate and iron out bugs, so we can release faster; new features are to be added only right after a release.
The "usability" group
Debian does not have any use if we do not support every user. As the admin users can already help themselves, we should focus more on the average user and make the system more simple to use and administer. Integration is a must, as is closed-source firmware.
The "hacker" group
Debian's purpose is essentially to give us a distribution we can use for ourselves, where all the tools that exist are there.
The "freedom" group
Debian is supposed to be only free software so I don't accidentally come into a situation where I'm in breach of a license.
The "large installations" group
It should be as easy as possible to deploy Debian to a set of boxes and remotely administer them. It should be easy to install the software the users need and to customize it for our organization. Users are not supposed to administer machines, and non-free software and drivers need to be clearly marked and easily avoidable so as to not put us at legal risk.
The "supermarket" group
Debian is a repository of packages that makes our lives easier when we build either a system or a distribution, but we don't really care whether stuff is integrated already, because in order to feel comfortable with it, we need to redo it anyway.
The "small but beautiful" group
The system should be as modular as possible, allowing me to leave stuff out that I don't need. I don't mind installing stuff later on.
There are others, and I have represented each only with their most extreme positions. These groups are not usually disjunct, and in some places, some groups share goals. But, for example the "usability" group and the "small but beautiful" group will always disagree on what should be in a base installation. All of this is not new. What is new is that people are asking for a strong leader to strike down the unbelievers rather than discussing stuff on the mailing lists. This is generally a thing I wouldn't like to see happen in Debian, because anyone you pull into the discussion is either uninformed (so not qualified to answer) or already has an opinion (which will most likely conflict with either party's opinion). By forcing a decision, you essentially give one party the right to dismiss arguments with "we've already had this, it has been decided" and do not solve the problem at all, because the other party is still unhappy. You might want to argue that a committee evens things out a bit as more groups are represented there. That is true to a certain extent, however you'd have to have a way to determine who gets to be on the committee, and to do so in a manner that noone is left out (even if there are new groups forming all of the time) and without giving any group too much power. We might just include everybody, which brings us to status quo, except that everyone got a job title now and people might feel more inclined to decide things by majority vote (because that is what committees do after debating, right) instead of based on actual merit. Scott writes that implementing the same thing he just did in Ubuntu would have taken him ages to do in Debian because there are so many more people to coordinate in Debian. I have to disagree here, the number of people to coordinate is probably the same if not higher, except that the Ubuntu model seems to be that every core team member has commit access and is supposed to read up on the changelog when touching a package, making the coordination more implicit. I happily give out Ubuntu CDs, which do have non-free drivers, firmware and documentation, to users. Telling them that they cannot use that driver or have a manual because it's not free will not help anyone, and it is unlikely that they will be taken to court over it. This is all fine and dandy considering Ubuntu's target audience. However, Debian has a much larger target audience, including Ubuntu itself. If Debian were to interpret licenses less strict for some perceived benefit for the users (cdrecord springs to mind here), then all derivers, including Ubuntu, would have to carefully cross-check all of the licenses for possible violations. Thus, I oppose GFDL documentation in Debian main, because when we say "our priorities are our users and free software", that includes all of our users, not just end users. So, what I ask of you people reading this via Planet Debian is the following: Ask your "opponent" whether he'd be interested in finding a common solution that fits both use cases. Present it as a technical challenge. Accept that the outcome of such an endeavour might be that the other person is right. Accept that not everyone shares your views and/or priorities. It is hard to accept for me that a lot of people still think that svn is superior to git, or emacs is superior to vi. So if you have a different opinion on some matter, keep in mind that the other person may be looking at things from a different angle, where his choice is the only "logical" choice. Oh, and that goes for both of you. To conclude: Debian's strength is its lack of a clear direction. If we were to decide that the end users are what matters, we'd become another Ubuntu, which would be quite unnecessary because we already have one, and they are pretty good at being Ubuntu. If we decided only releases mattered, we'd probably release more often, but right after a release, unstable would be really broken (the elders might remember how it was before the "testing" distribution was introduced). In the same way, the release team takes care to include your pet project in the release if at all possible. Every package that is added delays the release because they have to wait for autobuilders and make sure that everything is internally consistent. So, they are already respecting your goals. Are you going to respect theirs, and join the release effort even if all your machines run unstable? So in my opinion it is a good thing that we did not decide on a direction, because there is no right one. We'd always leave some people behind if we had to make a choice. What needs to change is our attitude that software is to be used in one particular way, because the people actually using it would disagree. After all, free software is (also) about being able to do things your own way, and Debian as a whole should be supportive of that.

Simon Richter: I still don't have a pony, but not all hope is lost

I think I have reduced the "SQL pony" problem to something manageable, by identifying the error in my thinking. To recap: I want to store bits of public, semi-public and private data about people in a database, with the private data living on another host for security. The error in my thinking was that referential integrity would be needed in both directions; in my case, it is however sufficient to ensure it in one direction, which is the private data pointing at the rest. This means I can (or should) not delete from the non-private database except when I also have the private database accessible; this is an acceptable restriction as the server is not supposed to delete stuff on its own anyway. So in essence, I just need something that can combine the local (private) and remote databases for me. I think I should probably look at some ODBC stuff here; however writing an SQL query splitter that builds a local and a remote query doesn't sound too hard either.

Simon Richter: Xen and viruses

When your only tool is Xen, all operating systems start to look like domUs. At the moment, it is Windows, and my idea at the moment would be to run a Virus scanner in the dom0. The difficulty would be getting a consistent view of the filesystems. I suppose it would be doable to have a device-mapper target that would do an in-memory snapshot and an event log, then the only issue would be interpreting that as a live filesystem (but that's an userspace issue, so solvable without too much hassle), translating block writes to object writes. All that is left to do then is invoke clamav.

2 September 2006

Simon Richter: Xen and the art of uninterrupted service

I still have a small question regarding Xen: when migrating a guest from one physical machine to another, I need to migrate its IP address along with it. This is not a big deal when moving within a single network, but what happens when I need to move across the globe? The easiest thing I can think of would be extending the network bridge on the new machine with a tunnel that goes to an agent on the old machine; for that to happen, the old box would have to replace the guest with the agent as soon as the migration is complete. The agent would probably be provided by the guest (or at least the configuration, as the agent needs to know the network parameters)

Simon Richter: The energy crisis

Russell, I believe that the way of teh Phuture will be that cars are for short distances only. Essentially, what the world needs to solve both the energy and the traffic problems are standard containers that you can transport with an electrical car, or hand off to the local tube system for transport. At the supermarket, you'd put your stuff into such a container, take the tube home, and your stuff would be waiting for you there. You'd get one of the little antigravity transporters (or a car, if antigravity has not been invented yet), let the robot at the station put the container into it, drive home, unpack your stuff, mark the car as being free, and be done. As the maximum distance a car has to travel is pretty small, it doesn't need a vast energy storage, since cars would not be personalised, you'd simply leave one that ran out of energy, hook it up to one of the ubiquitous power stations and take another one. The idea behind this is to eliminate the advantages cars have over public transport.

1 September 2006

Simon Richter: Hosting heads up

I've received quite a number of replies to my blog entry on virtual hosting, suggesting different tools for the job. As I have been pretty busy lately, I didn't have time to try them out yet, but I plan to do so in the near future.

Simon Richter: Scripting, events and goals

So init is going to be replaced with something that is event-driven, in order to deal with modern systems' dynamicity. I think that this step is necessary at some point, although not going far enough. I'd like to have an init system that is driven partially by events and partially by goals. While the system attempts to achieve a goal, for example "display login prompt", it would defer processing of events that don't help in achieving the goal (such as starting the mailer). For that to work, however, the init daemon needs an overview of the "big picture" as well as ways to find out enough about the dynamic configuration so it can determine what is important and what isn't.

31 August 2006

Simon Richter: You've been programming for too long when...

At the moment I have a strong desire to reinvent the wheel and reuse as much of my old code for that. Because I haven't reimplemented the Factory pattern for nothing.

29 August 2006

Simon Richter: Mass virtual hosting

I'm (again) looking for a piece of software that might do just what I need, before I go out and reinvent the wheel. This time, I need something that can coordinate all the configuration files for the various services that make up an online presence, namely bind, apache, postfix and the smaller things I forgot. It should be robust (at least, there should be a "rebuild everything" button. It should allow me to form groups of domains, for example if I want .com and .org treated the same, but also allow exceptions (when only the .org has an alias for the board of directors). And it does not need a

28 August 2006

Simon Richter: Paging Ultravox

For the BSP marathon, I'm going to join the Austrian crowd in Vienna. I just got the train tickets, now I wonder whether there are going to be power outlets on the train.

Simon Richter: T-Online sucks, again.

Our server has not been reachable from inside T-Online today. The reason is that they seem to inflate TTL on DNS entries to reduce load on their servers. This field is there for a reason. People might decide to tune it when they expect changes, for example when moving services to another machine, like I did today. And will do again next week for some of the domains, as this is only a temporary home (in fact, it is a dd'ed image from the old machine running as a Xen instance on a spare IP now, to make the migration easier.

Simon Richter: Xen and rootkits

The big disadvantage with the way I'm doing backups, namely by creating a snapshot outside of the system, playing back the journal and then writing that out, is that it leaves me with some files always being broken, plus it "feels" wrong. I am thinking about a way to tell the kernel from the outside to quiesce the filesystems so I can do a snapshot, and then resume. Obviously, I wouldn't tell it when I am going to do a rootkit scan, and I'm becoming inareasingly convinced that no self-respecting rootkit would leave complete removal instructions as journal entries in the filesystem unless it also controlled the kernel, which it doesn't in a Xen environment (because the kernel and initramfs come from outside).

23 August 2006

Simon Richter: Xen and LVM

Another thing that I want to do with Xen is scan systems for rootkits. For that, I'd like to create a snapshot, mount that and scan. However, the snapshot usually has dirty filesystems whose journals will be played back when mounting, I wonder if that could be used to escape detection; also, LVM will make the snapshot persistent, and refuse to bring up the LV in question after a reboot unless dm-snapshot is loaded, which it usually isn't. So I'd like to have temporary snapshots that get deleted after a reboot or when inactive for some time, so a bug in my scripts does not leave old snapshots around, or, in the worst case, stops my system from booting because my initrd does not have dm-snapshot. Also, because of potential bugs, I'd prefer that my scripts either don't have permission to delete snapshots they haven't created, or, if that's not possible, at least not have any mention of lvremove at all. The precedent for this would be temporary tables in SQL, so perhaps it might be an idea to introduce a session concept to LVM.

Simon Richter: Xen and starting domUs

Okay, so the Xen host I've been setting up is nearing the "full production" phase (so far, only emdebian has been running production, the other hosts are being copied as I type). What is still unsolved is the problem of kernel upgrades, as I'm using the stock Debian Xen kernel for now, I need an initrd in order to start a system. While the normal mkinitramfs generated one usually manages to bring the system up, I think it is rather pointless to start the domU systems with anything more than what yaird would build; however that only works from inside, with the kernel and modules installed, which I'd rather not do, and requires me to copy the image outside. So I wonder whether it would make sense to build a set of standard initrds, probably in separate packages, that contain the necessary drivers to start a domU (variants: root on virtual block device, root on LVM, others?)
I guess tonight is going to be "sending patches" night.

Simon Richter: /o\

Hm, the concert by Massive Attack was a bit disappointing. Parts were really good, for example "safe from harm" in a ten minute version with long solos; however a lot of it was just drawing out every last bit from each theme, reaching its "climax" at the end where it was essentially four chords repeated over and over for ten minutes, which ended up getting boring at some point.

22 August 2006

Simon Richter: Random thought on RSS flood protection

When you limit the number of new entries in an aggregator, wouldn't it make sense to see whether there are old entries that are unchanged?

Simon Richter: \o/

Massive Attack are playing tonight

Simon Richter: Optimisations

A major problem I have with gcc is that exceptions are pretty heavyweight because the call to __cxa_throw is a library call. I can see the point in trying to conserve memory, however it would be really cool if an attempt at "inlining" that was made; in the case that the throw statement is within an inlined function and the catch is just outside of it, it would be a lot cheaper to avoid setting up the exception handling tables, and doing the unwind by hand.

Simon Richter: Wann I nimmer meng tat...

...gangat I hoam.

19 August 2006

Simon Richter: Gaining motivation from looking back

Yesterday I refactored a bit of old code that still had its class names written in CamelCase and where the const keyword came before the type name (yes, my coding style evolved over time. I was pleased to see that I didn't have to change much otherwise; the code is exception safe, which makes my life a lot simpler in the new project, portable (developed on gcc, works equally well on Visual Studio) and is generally easy to understand with lots of clearly named generic functions for common tasks, and complex algorithms composed of simpler ones where possible, and documented where not. I guess I

Next.

Previous.