All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: poky@yoctoproject.org
Subject: Re: Rough timing of rpm vs opkg rootfs builds
Date: Mon, 15 Nov 2010 15:14:54 -0600	[thread overview]
Message-ID: <4CE1A2CE.70103@windriver.com> (raw)
In-Reply-To: <alpine.LRH.1.00.1011121008220.9384@oebafba.bjyevire.pbz>

On 11/12/10 9:12 AM, R P Herrold wrote:
> On Fri, 12 Nov 2010, Richard Purdie wrote:
> 
>> I suspect there is an optimisation that can be added for the rpm
>> indexing to make this incremental updating possible.
> 
> Usually naiive ('Rough') timing tests with rpm do not disable 
> un-needed checksum cross checks, key verifications, and such, 
> which are senseless in a closed or protected build environment

RPM resolver db and installation uses minimal options...

Resolver creation:

${RPM} -i --replacepkgs --replacefiles --oldpackage \
 -D "_dbpath $pkgdir/solvedb" --justdb \
 --noaid --nodeps --noorder --noscripts --notriggers --noparentdirs --nolinktos
--stats \
 --ignoresize --nosignature --nodigest \
 -D "_dbi_tags_3 Packages:Name:Basenames:Providename:Nvra" \
 -D "__dbi_cdb create mp_mmapsize=128Mb mp_size=1Mb nofsync" \
 $pkgdir/solvedb/manifest


Note the --stats, if you look at the log file, you'll see the timing stats for RPM.


ROOTFS creation:

(generating the resolver solution):
${RPM} -D "_dbpath ${IMAGE_ROOTFS}/install" -D "`cat
${DEPLOY_DIR_RPM}/solvedb.macro`" \
 -D "__dbi_cdb create mp_mmapsize=128Mb mp_size=1Mb nofsync" \
 -U --justdb --noscripts --notriggers --noparentdirs --nolinktos \
 ${IMAGE_ROOTFS}/install/install.manifest


Actually doing the install:

${RPM} -D "_dbpath ${IMAGE_ROOTFS}/install" -D "`cat
${DEPLOY_DIR_RPM}/solvedb.macro`" \
 -D "__dbi_cdb create mp_mmapsize=128Mb mp_size=1Mb nofsync private" \
 -U --justdb --noscripts --notriggers --noparentdirs --nolinktos \
 $pkg_name >> "${WORKDIR}/temp/log.do_rootfs_attemptonly.${PID}" || true

So we are doing package validation and related work during FS generation, but
NOT suring the resolver setup.  (Note, according to the above we are validating
packages for the resolver solution... which likely is a mistake and causing
extra time.)

I'm hesitant to add the --nosignature --nodigest to the actual install step, but
adding it to the resolver step might be beneficial.

> Publishing the testing harnesses would permit evaluation of 
> such -- absent a second person checking the methodology, it is 
> probably premature to start kinkering.  Publishing final 
> numbers without a reproduceable methodology is just not good 
> science
> 
> -- Russ herrold
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky



      parent reply	other threads:[~2010-11-15 21:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-11 22:30 Rough timing of rpm vs opkg rootfs builds Saul Wold
2010-11-12  4:58 ` Richard Purdie
2010-11-12 15:12   ` R P Herrold
2010-11-14 17:28     ` Richard Purdie
2010-11-15 21:14     ` Mark Hatle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE1A2CE.70103@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.