Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(653)

Issue 5682006: Add support for preserving on-disk file layout (Closed)

Created:
10 years ago by thieule
Modified:
9 years, 4 months ago
Reviewers:
petkov, dgarrett, adlr, sosa
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Add support for preserving on-disk file layout BUG=chromium-os:10188 TEST=Build image with and without new flags, verify by booting image, auto-update and boot image Change-Id: I5ddb1becc4f1dc7a8620b2f317e08850df65f9b3

Patch Set 1 #

Total comments: 19
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -1 line) Patch
M build_image View 6 chunks +111 lines, -1 line 19 comments Download

Messages

Total messages: 13 (0 generated)
thieule
This CL preserves the on-disk file layout between two builds. This minimizes the delta payload ...
10 years ago (2010-12-10 00:52:55 UTC) #1
dgarrett
On 2010/12/10 00:52:55, thieule wrote: > This CL preserves the on-disk file layout between two ...
10 years ago (2010-12-10 01:13:06 UTC) #2
anush
+robotboy who is working on a "imager" that does all of the dd/fs operations. On ...
10 years ago (2010-12-10 01:16:18 UTC) #3
petkov
Is it OK to split this into two separate patches -- one that zeroes out ...
10 years ago (2010-12-10 18:33:29 UTC) #4
petkov
In regard to zeroing out the free space -- it will benefit both full and ...
10 years ago (2010-12-10 18:36:47 UTC) #5
thieule
I'll split this CL into a zero free space and an alignment. As for using ...
10 years ago (2010-12-10 19:08:19 UTC) #6
sosa
http://codereview.chromium.org/5682006/diff/1/build_image File build_image (right): http://codereview.chromium.org/5682006/diff/1/build_image#newcode137 build_image:137: if [ ! -z "${FLAGS_base_image}" ] && [ ! ...
10 years ago (2010-12-10 19:28:10 UTC) #7
sosa
Speaking at a higher level, I'm not quite sure how we would use the base ...
10 years ago (2010-12-10 20:35:21 UTC) #8
petkov
On 2010/12/10 19:08:19, thieule wrote: > I'll split this CL into a zero free space ...
10 years ago (2010-12-10 20:44:21 UTC) #9
thieule
I'll go ponder this some more and put together a doc that describes this further. ...
10 years ago (2010-12-10 21:08:57 UTC) #10
petkov
On 2010/12/10 21:08:57, thieule wrote: > I'll go ponder this some more and put together ...
10 years ago (2010-12-10 21:10:23 UTC) #11
thieule
I have captured my current thinking along with ideas from this thread in this document: ...
10 years ago (2010-12-14 02:05:53 UTC) #12
petkov
10 years ago (2010-12-15 18:23:19 UTC) #13
On 2010/12/14 02:05:53, thieule wrote:
> I have captured my current thinking along with ideas from this thread in
> this document:
> 
>
https://docs.google.com/a/google.com/document/d/1Tbb1I-_yT1RMx4s8r_-4YZVLfd7q...
> 
> Feel free to add more options to the list.

I think the doc should capture plans for updating the official release process
-- maybe discuss with djmm, scottz, raja -- especially in the context of needing
a base image for generating a new image.

> 
> 
> On Fri, Dec 10, 2010 at 1:10 PM, <mailto:petkov@chromium.org> wrote:
> 
> > On 2010/12/10 21:08:57, thieule wrote:
> >
> >> I'll go ponder this some more and put together a doc that describes this
> >> further.
> >>
> >
> > Sounds great! It still makes sense to split out the zero-free-space change
> > and
> > review/push it separately.
> >
> >
> >
> >  On Fri, Dec 10, 2010 at 12:44 PM, <mailto:petkov@chromium.org> wrote:
> >>
> >
> >  > On 2010/12/10 19:08:19, thieule wrote:
> >> >
> >> >> I'll split this CL into a zero free space and an alignment.
> >> >>
> >> >
> >> >  As for using some canonical order instead of a base image, there are
> >> two
> >> >> problems with this approach.  If we insert a new file in the middle of
> >> the
> >> >> order, it shifts the rest of the files down.  If a file grows, it also
> >> >> shifts the rest of the files down.  This results in unnecessary
> >> >> reshuffling
> >> >> of the disk blocks on the device.
> >> >>
> >> >
> >> >  Another alternative is to use a template image instead of a base image.
> >> >>  Take an existing shipping image and zero out the content of all the
> >> files
> >> >> so we can compress this image.  We can then check in this smaller image
> >> >> and
> >> >> use it as our base image.  The drawback with this approach is that we
> >> will
> >> >> need to occasionally update this template as we add more files to the
> >> >> image.
> >> >>
> >> >
> >> > Agreed that it's tricky. Another heuristic-based alternative is to split
> >> > the
> >> > image contents into a part that changes often (e.g, files coming from
> >> all
> >> > chromiumos-overlay packages) and a part that doesn't change that often
> >> > (e.g.,
> >> > files coming from the rest of the packages). Then allocate the two into
> >> two
> >> > separate parts of the image. I'm sure one can come up with more clever
> >> ways
> >> > to
> >> > do this...
> >> >
> >> >
> >> >
> >> >  On Fri, Dec 10, 2010 at 10:36 AM, <mailto:petkov@chromium.org> wrote:
> >> >>
> >> >
> >> >  > In regard to zeroing out the free space -- it will benefit both full
> >> and
> >> >> > delta
> >> >> > updates because the free space will compress better. So, we should do
> >> it
> >> >> > regardless of the presence of a base image.
> >> >> >
> >> >> >
> >> >> >
> >> >> > http://codereview.chromium.org/5682006/
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> > http://codereview.chromium.org/5682006/
> >> >
> >>
> >
> >
> >
> > http://codereview.chromium.org/5682006/
> >

Powered by Google App Engine
This is Rietveld 408576698