OK, it's almost one month since we (the keyring-maintainers) gave our talk at DebConf14; how are we faring regarding key transitions since then? You can compare the numbers (the graphs, really) to those in our DC14 presentation.
Since the presentation, we have had two keyring pushes:
First of all, the Non-uploading keyring is all fine: As it was quite recently created, and as it is much smaller than our other keyrings, it has no weak (1024 bit) keys. It briefly had one in 2010-2011, but it's long been replaced.
Second, the Maintainers keyring: In late July we had 222 maintainers (170 with >=2048 bit keys, 52 with weak keys). By the end of August we had 221: 172 and 49 respectively, and by September 18 we had 221: 175 and 46.
As for the Uploading developers, in late July we had 1002 uploading developers (481 with >=2048 bit keys, 521 with weak keys). By the end of August we had 1002: 512 and 490 respectively, and by September 18 we had 999: 531 and 468.
Please note that these numbers do not say directly that six DMs or that 50 uploading DDs moved to stronger keys, as you'd have to factor in new people being added, keys migrating between different keyrings (mostly DM DD), and people retiring from the project; you can get the detailed information looking at the public copy of our Git repository, particularly of its changelog.
And where does that put us?
Of course, I'm very happy to see that the lines in our largest keyring have already crossed. We now have more people with >=2048 bit keys. And there was a lot of work to do this processing done! But that still means... That in order not to lock a large proportion of Debian Developers and Maintainers out of the project, we have a real lot of work to do. We would like to keep the replacement slope high (because, remember, in January 1st we will remove all small keys from the keyring).
And yes, we are willing to do the work. But we need you to push us for it: We need you to get a new key created, to gather enough (two!) DD signatures in it, and to request a key replacement via RT.
So, by all means: Do keep us busy!
I have an office with a nice large window, but more often than not I have to close the shades to be able to see something on my screen. Even worse: There were so many nice and sunny days where I would have loved to take my laptop outside and work there, but it (a Thinkpad T430s) is simply not usable in bright sun. I have seen those nice eInk based eBook readers, who are clearer the brighter they are. That s what I want for my laptop, and I am willing to sacrifice color and a bit of usability due to latency for being able to work in the bright daylight!
So while I was in Portland for DebConf14 (where I guess I felt a bit more like tinkering than otherwise) I bought a Kobo Aura HD. I chose this device because it has a resolution similar to my laptop (1440 1080) and I have seen reports from people running their own software on it, including completely separate systems such as Debian or Android.
This week, I was able to play around with it. It was indeed simple to tinker with: You can simply copy a tarball to it which is then extracted over the root file system. There are plenty of instructions online, but I found it easier to take them as inspiration and do it my way with basic Linux knowledge that s possible. This way, I extended the system boot script with a hook to a file on the internal SD card, and this file then runs the telnetd daemon that comes with the device s busybox installation. Then I just have to make the device go online and telnet onto it. From there it is a pretty normal Linux system, albeit without an X server, using the framebuffer directly.
I even found an existing project providing a VNC client implementation for this and other devices, and pretty soon I could see my laptop screen on the Kobo. Black and white worked fine, but colors and greyscales, including all anti-aliased fonts, were quite broken. After some analysis I concluded that it was confusing the bit pattern of the pixels. Luckily kvncclient shares that code with koreader, which worked fine on my device, so I could copy some files and settings from there et voil : I now have an eInk monitor for my laptop. As a matter of fact, I am writing this text with my Kobo sitting on top of the folded-back laptop screen!
I did some minor adjustments to my laptop:
I changed the screen size to match the Kobo s resolution. Using xrandr s --panning option this is possible even though my real screen is only 900 pixels high.
I disabled the cursor-blink where possible. In general, screen updates should be avoided, so I hide my taffybar (which has a CPU usage monitor) and text is best written at the very end of the line (and not before a, say, </p>).
My terminal windows are now black-on-white.
I had to increase my font-size a bit (the kobo has quite a high DPI), and color is not helpful (so :set syntax=off in vim).
All this is still very manual (going online with the kobo, finding its IP address, logging in via telnet, killing the Kobo's normal main program, starting x11vnc, finding my ip address, starting the vnc client, doing the adjustments mentioned above), so I need to automate it a bit. Unfortunately, there is no canonical way to extend the Kobo by your own application: The Kobo developers made their device quite open, but stopped short from actually encouraging extensions, so people have created many weird ways to start programs on the Kobo dedicated start menus, background programs observing when the regular Kobo app opens a specific file, complete replacements for the system. I am considering to simply run an SSH server on the device and drive the whole process from the laptop. I ll keep you up-to-date.
A dream for the future would be to turn the kobo into a USB monitor and simply connect it to any computer, where it then shows up as a new external monitor. I wonder if there is a standard for USB monitors, and if it is simple enough (but I doubt it).
A word about the kobo development scene: It seems to be quite active and healthy, and a number of interesting applications are provided for it. But unfortunately it all happens on a web forum, and they use it not only for discussion, but also as a wiki, a release page, a bug tracker, a feature request list and as a support line often on one single thread with dozens of posts. This makes it quite hard to find relevant information and decide whether it is still up-to-date. Unfortunately, you cannot really do without it. The PDF viewer that comes with the kobo is barely okish (e.g. no crop functionality), so installing, say, koreader is a must if you read more PDFs than actual ebooks. And then you have to deal with the how-to-start-it problem.
That reminds me: I need to find a decent RSS reader for the kobo, or possibly a good RSS-to-epub converter that I can run automatically. Any suggestions?
PS and related to this project: Thanks to Kathey!
For some days I have been working on statistics of the sponsoring process in Debian. I find
this to be one of the most important things that Debian has to attract and enable new contributions.
It is important to know how this process works, whether we need more sponsors, how effective is the
sponsoring and what are the timings connected to it.
How I did this ?
I have used Debbugs SOAP interface to get all bugs that are filed against sponsorship-requests
pseudo package. SOAP gives a little bit of overhead because it needs to download a complete list of
bugs for the sponsorship-requests package, and then process them according to given date ranges.
The same information can be easily extracted from the UDD database in the future, it will be faster
because SQL is better when working with date ranges than python obviously.
The most problematic part was getting the "real done date" of a particular bug, and frankly most of
my time I have spent on writing a rather dirty and complicated script. The script gets a log for a
particular bug number and returns a "real done date". I have published a proof of concept in a
previous post..
What I measured ?
RFSs is a queue, and in every queue one is interested in a mean time to get processed. In this case I
called the metric global MTTGS (mean time to get sponsored). This is a metric that gives the overall
performance insight in RFS queue. Time to get sponsored (TTGS) for a bug is a number of days that
passed between filing an RFS bug and closing it (bug was sponsored). Mean time to get sponsored is calculated as
a sum of TTGSs of all bugs divided by number of bugs (in a given period of time). Global MTTGS is
MTTGS calculated for a period of time 2012-1-1 until today().
Besides MTTGS I have also measured typical bug related metrics:
number of bugs closed in a given day,
number of bugs opened in a given day,
number of bugs with status open in a given day,
number of bugs with status closed in a given day.
Plots and graphs
Below is a plot of global MTTGS vs. time (click for a larger image).
As you can see, the trend is roughly exponential and MTTGS tends to settle around 60 days at the end of the
year 2013. This does not mean that your package will wait 60 days on average nowadays to get
sponsored. I remind that this is a global MTTGS, so even if the MTTGS of last month was very low, the global MTTGS would decrease
just slightly. It gives, however, a good glance in performance of the process. Even that more
packages are filed for sponsoring (see next graphs) now, than in the beginning of the epoch, the
sponsoring rate is high enough to flatten the global MTTGS, and with time maybe decrease it.
The image below (click for a larger one) shows how many bugs reside in a queue with status open or
closed (calculated for each day). For closed we have an almost linear function, so each day more or less the same amount of
bugs are closed and they increase the pool of bugs with status closed. For bugs with status open the
interesting part begins around May 2012 after the system is saturated or gets popular. It can be interpreted
as a plot of how many bugs reside in the queue, the important part is that it is stable and does not
show clear increasing trend.
The last plot shows arrival and departure rate of bugs from RFS queue, i.e. how many bugs are opened
and closed each day. The interesting part here are the maxima. Let's look at them.
Maximal number of opened bugs (21) was on 2012-05-06. As it appears it was a bunch upload of RFSs
for tryton-modules-*..
The software
Most of the software was written in Python. Graphs were generated in R. After a code cleanup I will
publish a complete solution on my github account, free to use by everybody. If you would like to see
another statistics, please let me know, I can create them if the data provides sufficient
information.
Being the SIMD fanatic that I am, a few years ago I did the PowerPC Altivec and ARM NEON port for the Eigen linear algebra library, one of the best and most popular libraries -and most ported.
Recently I thought it would be a good idea to extend both ports to 64-bit, and it would also help me with the SIMD book, using VSX in one case and ARMv8 NEON (or Advanced SIMD as ARM likes to call it) in the latter. ARMv8 hardware is a bit scarce at the moment, so I thought I'd start with VSX. Being in Debian, I have access to a number of porterboxes in several architectures, and luckily one of those was a Power7 (with VSX) running ppc64. So I started the porting -or rather extending the code- to use VSX in the 64-bit doubles case. Unluckily, I could not test anything because Debian kernels do not have VSX enabled in wheezy -which is what the porterbox is running and enabling it is a non-option(#758620). So, running VSX code would turn out to be quite hard.
Today we celebrate the day of free software (each year, a saturday around mid-September) More info at softwarefreedomday.org
There are no public events in Madrid, but I m going to try to hack and write a bit more this weekend, as my personal celebration.
In this blog post you can find some of my very very recent activities on free software, and my plans for this weekend of celebration!
Debian
Children distros aka Derivatives
I had the translation/update of the page www.debian.org/misc/children-distros pending since long time. It s a long page, and I was not sure what was better: if picking up the too-outdated last translation, and review it carefully in order to update it, or starting from scratch. I decided to reuse the last translation (thanks Luis Uribe!) and after some days dedicating my commuting time on it, finally, yesterday evening I finished it at home. Now it s in the review queue, and I hope in 10 days or so it will be uploaded.
In the meantime, I have learned a bit about the Debian Derivatives subproject and census, I have watched the Derivatives Panel at DebConf13, and had a look at the bug #723069 about keeping the children-distros page up to date.
So now that I m liberated about this translation, I m going to put some time in keeping up to date the original English page (I m part of the www and publicity team, so I think it makes sense). My goal is to review at least one Debian derivative each two days, and when I finish the list, start again. I can update the wiki myself, and for the www, I ll send patches against #723069, unless I m told to do it other way.
BTW, wouldn t be nice to mark web/wiki pages as RFH the same as packages?, so other people can easily decide to put some time on them, and make http://www.debian.org even more awesome! Or make them appear in the how-can-i-help reminders :) Mmm maybe it s just a matter of filing a bug and tagging it as gift ? I think no, because nobody has the package www.debian.org installed in their system I ll talk with the maintainer about this.
New Member process
I promised myself to try to work a bit more in Debian during the summer and September, and if everything goes well, try to apply to the new member process in October.
I wanted to read all the documentation first, and one challenge is to review/update the translations of www.debian.org/devel/join folder. This way, both myself and the Spanish speaking community benefit from the effort. Yesterday I translated one of those pending pages and I hope during the weekend I can translate/update the rest. When I finish that, I ll keep reading the other documentation.
DebConf15
This summer I was invited to join the DebConf15 organization team and pick up tasks in the publicity area. I was very happy to join, I m not sure at all that I can go to DebConf15 in Heidelberg (Germany), in fact I m quite sure I will not go since mid-August is the only opportunity to visit family who lives far away, but anyway, there are things that we can do before DebConf15 and I can contribute.
For now, I attended last Monday to the meeting at IRC, and I m finishing a short blogpost about the DebConf14 talk presenting DebConf15, that will be published in the DebConf15 blog.
Android, F-Droid
I keep on trying to spread the word about F-Droid and the free software available for Android, last week some of my friends updated Kontalk to the 3.0.b1 version (I had updated at the beginning of September) and they liked that now, the images are sent encrypted as well as the text messages :)
Some friends also liked the 2048 game, since it can be played offline, without ads, and so.
I decided to spend some time this weekend contributing translations to the Android apps that I use.
A long pending issue is to try to put workforce in the F-Droid project itself so apps descriptions are internationalized (the program is fully translatable, but the categories of apps and the descriptions themselves, are not). This is a complicated issue, it requires to take some design decisions, and later, of course, the implementation. I cannot do it alone, and I cannot do it in the short time. But today I have filed a bug report (#35) so maybe I find other people able to help.
Jabber/XMPP and the RedesLibres chatroom
Since several months I ve been using more often my Jabber/XMPP account to join the chatroom redeslibres@salas.mijabber.es
I meet there some people that I follow in Pump.io (for example, the people that write in the Comun cate Libremente or Lignux blogs) and we talk about pump.io, free software, free services, and other things. I feel very comfortable there, it s nice to have a Spanish speaking group inside the Free Software community, and I m also learning a bit about XMPP (I ve tried a lot of desktop and Android clients, just for fun!), free networks, and so.
So today I wanted to publicly thank you everybody in that chatroom, that welcomed me so well :)
Thank you, free software friends
And, by extension, I want to thank you all the people that work and have fun in the Free Software communities, in the projects where I contribute or others. They (we) hack to make the world better, and to allow others join to this beautiful challenge that is making machines do what their (final) users wants.
Comments?
You can comment on this post in this Pump.io thread. Filed under: My experiences and opinion Tagged: Android, Communities, Contributing to libre software, Debian, English, F-Droid, federation, Free Software, Freedom, internationalization, libre software, localization, translations
"I have seen a picture," Havzhiva went on.
The Chosen was impassive; he might or might not know the word. "Lines and colors made with
earth on earth may hold knowledge in them. All knowledge is local, all truth is partial," Havzhiva said
with an easy, colloquial dignity that he knew was an imitation of his mother, the Heir of the Sun, talking
to foreign merchants. "No truth can make another truth untrue. All knowledge is a part of the whole
knowledge. A true line, a true color. Once you have seen the larger patttern, you cannot go back
to seeing the part as the whole.
I've just finished to read "Four Ways to Forgiveness" by U.K Le Guin.
It deeply resonated within me, it's still there doing its magic in my brain, lingering in the corners of my mind, tickling my view of reality, humming with the beauty of ideas you didn't knew were inside you till you've seen them written on paper.
And then, you know they were there all along, you just didn't know how to make them into words.
Le Guin knows how to do it, wonderfully.
I loved the whole book, but the last two stories were eye-openers.
Thanks Enrico for suggesting me this one, thanks dkg for having introduced me to Le Guin's books (with another fantastic book: The Left Hand of Darkness).
As I wrote in my last post currently, SOAP
interface, nor Ultimate Debian Database do not provide a date when a given bug was closed (done
date). It is quite hard to calculate statistics on a bug tracker when you do not know when a bug was
closed (!!).
Done date of bug can be found in its log. The log itself can be downloaded by SOAP method
get_bug_log but the processing of it is quite complicated. The same comes to web scrapping of a
BTS's web interface. Fortunatelly the web interface gives a possibility to download a log in an mbox
format.
Below is a script that extracts the done date of a bug from its log in mbox format. It uses requests
to download the mbox and caches the result in ~/.cache/rfs_bugs, which you need to create. It performs
different checks:
Check existence of a header e.g. Received: (at 657783-done) by bugs.debian.org; 29 Jan 2012
13:27:42 +0000
This week, the reSIProcate project completed the move from SVN to Git.
With many people using the SIP stack in both open source and commercial projects, the migration was carefully planned and tested over an extended period of time. Hopefully some of the experience from this migration can help other projects too.
Previous SVN committers were tracked down using my script for matching emails to Github accounts. This also allowed us to see their recent commits on other projects and see how they want their name and email address represented when their previous commits in SVN were mapped to Git commits.
For about a year, the sync2git script had been run hourly from cron to maintain an official mirror of the project in Github. This allowed people to test it and it also allowed us to start using some Github features like travis-CI.org before officially moving to Git.
At the cut-over, the SVN directories were made read-only, sync2git was run one last time and then people were advised they could commit in Git.
Documentation has also been created to help people get started quickly sharing patches as Github pull requests if they haven't used this facility before.
For the tl;dr: Docker FDW is a thing.
Star it, hack it, try it out. File bugs, be happy. If you want to see what it's
like to read, there's some example SQL down below.
The question is first, what the heck is a PostgreSQL Foreign Data Wrapper?
PostgreSQL Foreign Data Wrappers are plugins that allow C libraries
to provide an adaptor for PostgreSQL to talk to an external database.
Some folks have used this to wrap stuff like
MongoDB, which I always found
to be hilarous (and an epic hack).
Enter Multicorn
During my time at PyGotham, I saw a talk from
Wes Chow about something called
Multicorn. He was showing off some really neat
plugins, such as the git revision history of CPython, and parsed logfiles
from some stuff over at Chartbeat. This basically blew my mind.
All throughout the talk I was coming up with all sorts of things that I wanted
to do -- this whole library is basically exactly what I've been dreaming
about for years. I've always wanted to provide a SQL-like interface
into querying API data, joining data cross-API using common crosswalks,
such as using Capitol Words to query for
Legislators, and use the
bioguide ids
to JOIN against the congress api
to get their Twitter account names.
My first shot was to Multicorn the new
Open Civic Data API I was working on, chuckled
and put it aside as a really awesome hack.
Enter Docker
It wasn't until tianon connected the dots for me
and suggested a Docker FDW did I get really excited.
Cue a few hours of hacking, and I'm proud to say -- here's
Docker FDW.
This lets us ask all sorts of really interesting questions out of the API,
and might even help folks writing webapps avoid adding too much Docker-aware
logic. Abstractions can be fun!
Setting it up
I'm going to assume you have a working Multicorn, PostgreSQL and Docker setup
(including adding the postgres user to the docker group)
So, now let's pop open a psql session. Create a database (I called mine
dockerfdw, but it can be anything), and let's create some tables.
Before we create the tables, we need to let PostgreSQL know where our
objects are. This takes a name for the server, and the Python importable
path to our FDW.
Now that we have the server in place, we can tell PostgreSQL to create a table
backed by the FDW by creating a foreign table. I won't go too much into the
syntax here, but you might also note that we pass in some options - these are
passed to the constructor of the FDW, letting us set stuff like the Docker
host.
And, now that we have tables in place, we can try to learn something about the
Docker containers. Let's start with something fun - a join from containers
to images, showing all image tag names, the container names and the ip of the
container (if it has one!).
OK, let's see if we can bring this to the next level now. I finally got around
to implementing INSERT and DELETE operations, which turned out to be
pretty simple to do. Check this out:
DELETEFROMdocker_containers;
DELETE1
This will do a stop + kill after a 10 second hang behind the scenes. It's
actually a lot of fun to spawn up a container and terminate it from
PostgreSQL.
id
------------------------------------------------------------------
0a903dcf5ae10ee1923064e25ab0f46e0debd513f54860beb44b2a187643ff05
INSERT 0 1
(1 row)
Spawning containers works too - this is still very immature and not super
practical, but I figure while I'm showing off, I might as well go all the way.
Success! This is just a taste of what's to come, so please feel free to hack on
Docker FDW,
tweet me @paultag, file bugs / feature requests.
It's currently a bit of a hack, and it's something that I think has
long-term potential after some work goes into making sure that this is a rock
solid interface to the Docker API.
I spend a surprising amount of my time as part of keyring-maint telling people their requests are badly formed and asking them to fix them up so I can actually process them. The one that's hardest to fault anyone on is that we require requests to be inline PGP signed (i.e. the same sort of output as you get with "gpg --clearsign"). That's because RT does various pieces of unpacking[0] of MIME messages that mean that a PGP/MIME signatures that have passed through it are no longer verifiable. Daniel has pointed out that inline PGP is a bad idea and got as far as filing a request that RT handle PGP/MIME correctly (you need a login for that but there's a generic read-only one that's easy to figure out), but until that happens the requirement stands when dealing with Debian's RT instance. So today I finally added the following lines to my .muttrc rather than having to remember to switch Mutt to inline signing for this one special case:
i.e. by default turn off auto inlined PGP signatures, but when emailing anything at rt.debian.org turn them on.
(Most of the other things I tell people to fix are covered by the replacing keys page; I advise anyone requesting a key replacement to read that page. There's even a helpful example request template at the bottom.)
[0] RT sticks a header on the plain text portion of the mail, rather than adding a new plain text part for the header if there are multiple parts (this is something Mailman handles better). It will also re-encode received mail into UTF-8 which I can understand, but Mutt will by default try to find an 8 bit encoding that can handle the mail, because that's more efficient, which tends to mean it picks latin1.
Update: Apparently Mutt in Jessie and beyond doesn't have the pgp_autosign option; you want crypt_autosign instead (and maybe crypt_autopgp but that defaults to yes so unless you've configured your setup to do S/MIME by default you should be fine). Thanks to Luca Capello for pointing this out.
I am working on a small project to create WNPP like statistics for open RFS bugs. I think this could
improve a little bit effectiveness of sponsoring new packages by giving insight into bugs that are on
their way to being starved (i.e. not ever sponsored, or rotting in a queue).
The script attached in this post is written in Python and uses Debbugs SOAP
interface to get currently open RFS bugs and
calculates their dust and age.
The dust factor is calculated as an absolute value of a difference between bugs's age and
log_modified.
Later I would like to create fully blown stats for an RFS queue, taking into account
the whole history (i.e. 2012-1-1 until now), and check its health, calculate MTTGS (mean time to get sponsored).
The list looks more or less like this:
Assuming this post shows up then I'll have successfully migrated from Chronicle to a temporary replacement.
Chronicle is awesome, and despite a lack of activity recently it is not dead. (No activity because it continued to do everything I needed for my blog.)
Unfortunately though there is a problem with chronicle, it suffers from a bit of a performance problem which has gradually become more and more vexing as the nubmer of entries I have has grown.
When chronicle runs it :
It reads each post into a complex data-structure.
Then it walks this multiple times.
Finally it outputs a whole bunch of posts.
In the general case you rebuild a blog because you've made a entry, or received a new comment. There is some code which tries to use memcached for caching, but in general chronicle just isn't fast and it is certainly memory-bound if you have a couple of thousand entries.
Currently my test data-set contains 2000 entries and to rebuild that from a clean start takes around 4 minutes, which is pretty horrific.
So what is the alternative? What if you could parse each post once, add it to an SQLite database, and then use that for writing your output pages? Instead of the complex data-structure in-RAM and the need to parse a zillion files you'd have a standard/simple SQL structure you could use to build a tag-cloud, an archive, & etc. If you store the contents of the parsed-blog, along with the mtime of the source file you can update it if the entry is changed in the future, as I sometimes make typos which I only spot once Ive run make steve on my blog sources.
Not surprisingly the newer code is significantly faster if you have 2000+ posts. If you've imported the posts into SQLite the most recent entries are updated in 3 seconds. If you're starting cold, parsing each entry, inserting it into SQLite, and then generating the blog from scratch the build time is still less than 10 seconds.
The downside is that I've removed features, obviously nothing that I use myself. Most notably the calendar view is gone, as is the ability to use date-based URLs. Less seriously there is only a single theme, which is what is used upon this site.
In conclusion I've written something last night which is a stepping stone between the current chronicle and chronicle2 which will appear in due course.
PS. This entry was written in markdown, just because I wanted to be sure it worked.
Last weekend, I (knok), Hideki (henrich) and Yutaka (gniibe) met with John Paul Adrian Glaubitz (glaubitz).
In the past, I had met with another Germany developer Jens Schmalzing (jensen) in Japan. He was a good guy, but unfortunately he gone in 2005.
I had an old OpenPGP key with his sign. It is a record of his activity, but the key is weak nowaday (1024D), so I stop to use the key but don t issue revoke.
Anyway glaubitz is also a good guy, and he loves old videogame console. gniibe gave him five DreamCast consoles. I bring him to SUPER POTATO, a old videogame shop. He bought some software for Virtual Boy.
DebConf 2015 will hold in Germany, I want to go for it if I can.
ACPI is a complicated specification - the latest version is 980 pages long. But that's because it's trying to define something complicated: an entire interface for abstracting away hardware details and making it easier for an unmodified OS to boot diverse platforms.
Inevitably, though, it can't define the full behaviour of an ACPI system. It doesn't explicitly state what should happen if you violate the spec, for instance. Obviously, in a just and fair world, no systems would violate the spec. But in the grim meathook future that we actually inhabit, systems do. We lack the technology to go back in time and retroactively prevent this, and so we're forced to deal with making these systems work.
This ends up being a pain in the neck in the x86 world, but it could be much worse. Way back in 2008 I wrote something about why the Linux kernel reports itself to firmware as "Windows" but refuses to identify itself as Linux. The short version is that "Linux" doesn't actually identify the behaviour of the kernel in a meaningful way. "Linux" doesn't tell you whether the kernel can deal with buffers being passed when the spec says it should be a package. "Linux" doesn't tell you whether the OS knows how to deal with an HPET. "Linux" doesn't tell you whether the OS can reinitialise graphics hardware.
Back then I was writing from the perspective of the firmware changing its behaviour in response to the OS, but it turns out that it's also relevant from the perspective of the OS changing its behaviour in response to the firmware. Windows 8 handles backlights differently to older versions. Firmware that's intended to support Windows 8 may expect this behaviour. If the OS tells the firmware that it's compatible with Windows 8, the OS has to behave compatibly with Windows 8.
In essence, if the firmware asks for Windows 8 support and the OS says yes, the OS is forming a contract with the firmware that it will behave in a specific way. If Windows 8 allows certain spec violations, the OS must permit those violations. If Windows 8 makes certain ACPI calls in a certain order, the OS must make those calls in the same order. Any firmware bug that is triggered by the OS not behaving identically to Windows 8 must be dealt with by modifying the OS to behave like Windows 8.
This sounds horrifying, but it's actually important. The existence of well-defined[1] OS behaviours means that the industry has something to target. Vendors test their hardware against Windows, and because Windows has consistent behaviour within a version[2] the vendors know that their machines won't suddenly stop working after an update. Linux benefits from this because we know that we can make hardware work as long as we're compatible with the Windows behaviour.
That's fine for x86. But remember when I said it could be worse? What if there were a platform that Microsoft weren't targeting? A platform where Linux was the dominant OS? A platform where vendors all test their hardware against Linux and expect it to have a consistent ACPI implementation?
Our even grimmer meathook future welcomes ARM to the ACPI world.
Software development is hard, and firmware development is software development with worse compilers. Firmware is inevitably going to rely on undefined behaviour. It's going to make assumptions about ordering. It's going to mishandle some cases. And it's the operating system's job to handle that. On x86 we know that systems are tested against Windows, and so we simply implement that behaviour. On ARM, we don't have that convenient reference. We are the reference. And that means that systems will end up accidentally depending on Linux-specific behaviour. Which means that if we ever change that behaviour, those systems will break.
So far we've resisted calls for Linux to provide a contract to the firmware in the way that Windows does, simply because there's been no need to - we can just implement the same contract as Windows. How are we going to manage this on ARM? The worst case scenario is that a system is tested against, say, Linux 3.19 and works fine. We make a change in 3.21 that breaks this system, but nobody notices at the time. Another system is tested against 3.21 and works fine. A few months later somebody finally notices that 3.21 broke their system and the change gets reverted, but oh no! Reverting it breaks the other system. What do we do now? The systems aren't telling us which behaviour they expect, so we're left with the prospect of adding machine-specific quirks. This isn't scalable.
Supporting ACPI on ARM means developing a sense of discipline around ACPI development that we simply haven't had so far. If we want to avoid breaking systems we have two options:
1) Commit to never modifying the ACPI behaviour of Linux. 2) Exposing an interface that indicates which well-defined ACPI behaviour a specific kernel implements, and bumping that whenever an incompatible change is made. Backward compatibility paths will be required if firmware only supports an older interface.
(1) is unlikely to be practical, but (2) isn't a great deal easier. Somebody is going to need to take responsibility for tracking ACPI behaviour and incrementing the exported interface whenever it changes, and we need to know who that's going to be before any of these systems start shipping. The alternative is a sea of ARM devices that only run specific kernel versions, which is exactly the scenario that ACPI was supposed to be fixing.
[1] Defined by implementation, not defined by specification [2] Windows may change behaviour between versions, but always adds a new _OSI string when it does so. It can then modify its behaviour depending on whether the firmware knows about later versions of Windows.
Personally I believe that any application packaged for Debian should neither phone home, attempt to download plugins over HTTP at run-time, or update itself.
On that basis I've filed #761828.
As a project we have guidelines for what constitutes a "serious" bug, which generally boil down to a package containing a security issue, causing data-loss, or being unusuable.
I'd like to propose that these kind of tracking "things" are equally bad. If consensus could be reached that would be a good thing for the freedom of our users.
(Ooops I slipped into "us", "our user", I'm just an outsider looking in. Mostly.)
The Debian installer could be
a lot quicker. When we install more than 2000 packages in
Skolelinux / Debian Edu using
tasksel in the installer, unpacking the binary packages take forever.
A part of the slow I/O issue was discussed in
bug #613428 about too
much file system sync-ing done by dpkg, which is the package
responsible for unpacking the binary packages. Other parts (like code
executed by postinst scripts) might also sync to disk during
installation. All this sync-ing to disk do not really make sense to
me. If the machine crash half-way through, I start over, I do not try
to salvage the half installed system. So the failure sync-ing is
supposed to protect against, hardware or system crash, is not really
relevant while the installer is running.
A few days ago, I thought of a way to get rid of all the file
system sync()-ing in a fairly non-intrusive way, without the need to
change the code in several packages. The idea is not new, but I have
not heard anyone propose the approach using dpkg-divert before. It
depend on the small and clever package
eatmydata, which
uses LD_PRELOAD to replace the system functions for syncing data to
disk with functions doing nothing, thus allowing programs to live
dangerous while speeding up disk I/O significantly. Instead of
modifying the implementation of dpkg, apt and tasksel (which are the
packages responsible for selecting, fetching and installing packages),
it occurred to me that we could just divert the programs away, replace
them with a simple shell wrapper calling
"eatmydata $program $@", to get the same effect.
Two days ago I decided to test the idea, and wrapped up a simple
implementation for the Debian Edu udeb.
The effect was stunning. In my first test it reduced the running
time of the pkgsel step (installing tasks) from 64 to less than 44
minutes (20 minutes shaved off the installation) on an old Dell
Latitude D505 machine. I am not quite sure what the optimised time
would have been, as I messed up the testing a bit, causing the debconf
priority to get low enough for two questions to pop up during
installation. As soon as I saw the questions I moved the installation
along, but do not know how long the question were holding up the
installation. I did some more measurements using Debian Edu Jessie,
and got these results. The time measured is the time stamp in
/var/log/syslog between the "pkgsel: starting tasksel" and the
"pkgsel: finishing up" lines, if you want to do the same measurement
yourself. In Debian Edu, the tasksel dialog do not show up, and the
timing thus do not depend on how quickly the user handle the tasksel
dialog.
Machine/setup
Original tasksel
Optimised tasksel
Reduction
Latitude D505 Main+LTSP LXDE
64 min (07:46-08:50)
<44 min (11:27-12:11)
>20 min 18%
Latitude D505 Roaming LXDE
57 min (08:48-09:45)
34 min (07:43-08:17)
23 min 40%
Latitude D505 Minimal
22 min (10:37-10:59)
11 min (11:16-11:27)
11 min 50%
Thinkpad X200 Minimal
6 min (08:19-08:25)
4 min (08:04-08:08)
2 min 33%
Thinkpad X200 Roaming KDE
19 min (09:21-09:40)
15 min (10:25-10:40)
4 min 21%
The test is done using a netinst ISO on a USB stick, so some of the
time is spent downloading packages. The connection to the Internet
was 100Mbit/s during testing, so downloading should not be a
significant factor in the measurement. Download typically took a few
seconds to a few minutes, depending on the amount of packages being
installed.
The speedup is implemented by using two hooks in
Debian
Installer, the pre-pkgsel.d hook to set up the diverts, and the
finish-install.d hook to remove the divert at the end of the
installation. I picked the pre-pkgsel.d hook instead of the
post-base-installer.d hook because I test using an ISO without the
eatmydata package included, and the post-base-installer.d hook in
Debian Edu can only operate on packages included in the ISO. The
negative effect of this is that I am unable to activate this
optimization for the kernel installation step in d-i. If the code is
moved to the post-base-installer.d hook, the speedup would be larger
for the entire installation.
I've implemented this in the
debian-edu-install
git repository, and plan to provide the optimization as part of the
Debian Edu installation. If you want to test this yourself, you can
create two files in the installer (or in an udeb). One shell script
need do go into /usr/lib/pre-pkgsel.d/, with content like this:
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
info()
logger -t my-pkgsel "info: $*"
error()
logger -t my-pkgsel "error: $*"
override_install()
apt-install eatmydata true
if [ -x /target/usr/bin/eatmydata ] ; then
for bin in dpkg apt-get aptitude tasksel ; do
file=/usr/bin/$bin
# Test that the file exist and have not been diverted already.
if [ -f /target$file ] ; then
info "diverting $file using eatmydata"
printf "#!/bin/sh\neatmydata $bin.distrib \"\$@\"\n" \
> /target$file.edu
chmod 755 /target$file.edu
in-target dpkg-divert --package debian-edu-config \
--rename --quiet --add $file
ln -sf ./$bin.edu /target$file
else
error "unable to divert $file, as it is missing."
fi
done
else
error "unable to find /usr/bin/eatmydata after installing the eatmydata pacage"
fi
override_install
To clean up, another shell script should go into
/usr/lib/finish-install.d/ with code like this:
#! /bin/sh -e
. /usr/share/debconf/confmodule
error()
logger -t my-finish-install "error: $@"
remove_install_override()
for bin in dpkg apt-get aptitude tasksel ; do
file=/usr/bin/$bin
if [ -x /target$file.edu ] ; then
rm /target$file
in-target dpkg-divert --package debian-edu-config \
--rename --quiet --remove $file
rm /target$file.edu
else
error "Missing divert for $file."
fi
done
sync # Flush file buffers before continuing
remove_install_override
In Debian Edu, I placed both code fragments in a separate script
edu-eatmydata-install and call it from the pre-pkgsel.d and
finish-install.d scripts.
By now you might ask if this change should get into the normal
Debian installer too? I suspect it should, but am not sure the
current debian-installer coordinators find it useful enough. It also
depend on the side effects of the change. I'm not aware of any, but I
guess we will see if the change is safe after some more testing.
Perhaps there is some package in Debian depending on sync() and
fsync() having effect? Perhaps it should go into its own udeb, to
allow those of us wanting to enable it to do so without affecting
everyone.
Update 2014-09-24: Since a few days ago, enabling this optimization
will break installation of all programs using gnutls because of
bug #702711. An updated
eatmydata package in Debian will solve it.
Intel SSD 910 (400GB, SSDPEDOX400G301) is cheaper than ever in Japan - only $420 (and its spec sheet says "Recommended Customer Price BULK: $1929.00", wow).
I am very pleased to announce the release of apt-offline, version 1.5.
In version 1.4, the offline bug report functionality had to be dropped. In version 1.5, it is back again. apt-offline now uses the new Debian native BTS library. Thanks to its developers, this library is much more slim and neat. The only catch is that it depends on the SOAPpy library which currently is not stock in Python. If you run apt-offline of Debian, you may not have to worry as I will add a Recommends on that package. For users using it on Microsoft Windows, please ensure that you have the SOAPpy library installed. It is available on pypi.
The old bundled magic library has been replaced with the version of python magic library that Debian ships. This library is derived from the file package and is portable on almost all Unixes. For Debian users, there will be a Recommends on it too.
There were also a bunch of old, outstanding, and annoying bugs that have been fixed in this release. For a full list of changes, please refer to the git logs.
With this release, apt-offline should be in good shape for the Jessie release.
apt-offline is available on Alioth @ https://alioth.debian.org/projects/apt-offline/
A Forest of X Server Changes
We've got about another month left in the X server merge window for
1.17 and I've written a small set of fixes which haven't been reviewed
yet for merging. I thought I'd advertise them a bit and see if I
couldn't encourage a few of you to take a look and see if they're
useful, correct and complete.
All of these are in my personal X server repository:
git://people.freedesktop.org/~keithp/xserver.git
Cleaning up the X Registry
Branch: registry-fixes
I'll bet most of you don't even know about this code. It serves as a
database mapping various X enumerations to strings to aid in
diagnostics. For the security extensions, SECURITY and XSELinux, it
holds names for all of the request, event and errors in the core
protocol and all registered extensions. For X-Resource, it has the
names of the registered resource types.
The X registry gets the request, event and error data from a file,
"protocol.txt", which is installed in /usr/lib/xorg/protocol.txt on my
machine. It gets the resource names as a part of resource type
allocation.
So, what's wrong with this? Three basic things:
A simple bug -- protocol.txt is left open while the server
runs. This consumes a file descriptor for no good reason.
protocol.txt is read and parsed even if the security extensions aren't
available. This wastes time and memory.
The resource names are kept even if X-Resource isn't in use.
The fixes remove the configure options for including the registry
code; these functions are only used by the above extensions, so we can
tell whether to include the code based solely on whether the
extensions are being built.
Getting rid of the TCP listener by default
Branch: listen-fixes
We've had the '-nolisten' option for a while now to disable inbound
TCP connections. It's useful for security reasons, but we've never
enabled this by default. This patch sequence provides configure
options for each of the listen sockets (tcp, unix and local), leaves
unix and local enabled by default and disables tcp by default.
A new option, '-listen', is added which allows the user to override
the -nolisten defaults in case they actually want to use TCP
connections to X.
Glamor bug fixes
branch: glamor-fixes
This branch fixes two bugs:
Scale a large pixmap down to a small pixmap. This happens when you
display enormous images in a web page. Iceweasel sends the whole
huge image to X and uses Render to scale it to the screen. If the
image is larger than a single texture, the X server splits it up
into tiles, but the code which tries to perform the merged scale
is just broken. Five patches fix this.
Shader-based trapezoids. This code uses area coverage to compute
trapezoids. That violates the Render spec, which requires point
sampling. Further, the performance of these trapezoids is lower
than software (by a lot). This one patch removes the code.
Present bug fixes
branch: present-fixes
A selection of small bug fixes:
Clear pending flips at CloseScreen. This removes a reference to
any pending flip pixmap, allowing it to be freed. Otherwise, we'll
leak memory across server reset.
Add support for PresentOptionCopy. This has been in the protocol
spec for a while, and was completely trivial to
implement. However, it never got done. One tiny little patch.
Expose the Present API to drivers via sdksyms.sh. Until now, the
present extension APIs have only been available inside the X
server. This exposes them to drivers. This took a few cleanup
patches first.
Use Present for Glamor XV
branch: glamor-present-xv
Painting XV to the screen should be done at vblank time to avoid
tearing. Present offers vblank synchronized operations. Hooking those
two together required a few new present APIs to expose the vblank
functionality outside of the present code, then a bit of glamor code
to hook up that new API to the XV bits.
Switching Glamor to a GL core profile context
branch: glamor-core-profile
This patch set is still in progress, but demonstrates how close we
are. We'll be requiring OpenGL 3.3 for this so that we get texture
swizzling, which is required for our single channel objects.
The changes present on the branch are:
Switch single channel surfaces from GL_ALPHA to GL_RED.
Use vertex array objects.
Switch ephyr over to using a core 3.3 profile.
Still left to do is
Switch Render code to VBOs
The core code uses VBOs everywhere, but the Render code doesn't. This
means that all Render drawing fails, which makes the resulting server
not very useful.
My main objective for getting this done is to reduce memory usage by
about 16MB, which is the space allocated for software rendering in
Mesa in case someone does something which the hardware doesn't handle,
and that can only with some legacy OpenGL APIs.
Please help out!
All of these friendly little patches are looking for a bit of review
so that they can get merged before the 1.17 window closes.