KarmicUnpackDuringDownload

Differences between revisions 1 and 2
Revision 1 as of 2009-05-26 12:17:47
Size: 4371
Editor: 80
Comment:
Revision 2 as of 2009-05-26 12:20:19
Size: 4307
Editor: 80
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 * '''Launchpad Entry''': UbuntuSpec:foo  * '''Launchpad Entry''': UbuntuSpec:foundations-karmic-pre-unpacking
Line 6: Line 6:
 * '''Packages affected''':  * '''Packages affected''': apt, dpkg
Line 10: Line 10:
This should provide an overview of the issue/functionality/change proposed here. Focus here on what will actually be DONE, summarising that so that other people don't have to read the whole spec. See also CategorySpec for examples. Discussion of installing packages DURING the download of multiple packages, versus AFTER the download of all packages completes.

Summary

Discussion of installing packages DURING the download of multiple packages, versus AFTER the download of all packages completes.

Release Note

This section should include a paragraph describing the end-user impact of this change. It is meant to be included in the release notes of the first release in which it is implemented. (Not all of these will actually be included in the release notes, at the release manager's discretion; but writing them is a useful exercise.)

It is mandatory.

Rationale

This should cover the _why_: why is this change being proposed, what justifies it, where we see this justified.

User stories

Assumptions

Design

You can have subsections that better describe specific parts of the issue.

Implementation

This section should describe a plan of action (the "how") to implement the changes discussed. Could include subsections like:

UI Changes

Should cover changes required to the UI, or specific UI that is required to implement this

Code Changes

Code changes should include an overview of what needs to change, and in some cases even the specific details.

Migration

Include:

  • data migration, if any
  • redirects from old URLs to new ones, if any
  • how users will be pointed to the new way of doing things, if necessary.

Test/Demo Plan

It's important that we are able to test new features, and demonstrate them to users. Use this section to describe a short plan that anybody can follow that demonstrates the feature is working. This can then be used during testing, and to show off after release. Please add an entry to http://testcases.qa.ubuntu.com/Coverage/NewFeatures for tracking test coverage.

This need not be added or completed until the specification is nearing beta.

Unresolved issues

This should highlight any issues that should be addressed in further specifications, and not problems with the specification itself; since any specification with problems cannot be approved.

BoF agenda and discussion

notes:mvo

unpack while downloading

currently: - download all - install all (serialized)

- use bootchart to profile the package install time

Optimization ideas: - run dpkg --unpack to a different place while downloading - *but* preinst is also run - needs to be on the same filesystem

- would have to parition the download into self-contained

  • groups

- big groups of pkgs are good (because dpkg database handling

  • is slow)

- next steps:

  • - benchmark to figure out what really takes the time
    • - could be maintainer scripts - could be unpack - could be configure
    - so figure out how much time saving we get

- marks "cache" idea:

  • - download package - when package downloaded (pre)unpack it into a "cache" area
    • (that can well be just the regular name/destination that dpkg
      • uses anyway)
    - when finished all downloads, run dpkg normally - if anything fails blow away the cache - problem with this idea: needs a lot of diskspace Cache design: - add indexfile to /var/lib/dpkg/... that records what dpkg
    • has done in order to cleanly rollback
    - new pre-unpacked, half-pre-unpacked, etc in the status file Cache design(2): - mark the pre-unpacked with a different filename (foo.preunpack.dpkg-tmp)
    • or (foo.preunpacked.$sha1.dpkg-tmp) to make cleanup easier
    Cache design(3): - unpack into a seperate dir

Simple idea: - what about data.tar.gz unpacking in /var/cache/apt/archives

  • when a download is finished (profile this!)

future idea (tricky): - split it up into paritions - when a download set is finished, keep downloading - install packages when a set is self-contained (while still downloading) - problems: debconf --preconfigure (that is optional but results in

  • questions during the install)

- progress bar when a package is asking questions

problems with the idea: - apt-listchanges - error handling - selinux labeling handling


CategorySpec

FoundationsTeam/Specs/KarmicUnpackDuringDownload (last edited 2009-06-17 08:45:21 by p54A659AF)