public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] re: confcache
@ 2004-10-08 20:08 Brian Harring
  2004-10-09  9:45 ` Dan Armak
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Harring @ 2004-10-08 20:08 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: stuart

Well... that's weird, attempted to send this directly to dan, having it
bail due to
'failed: relaying not allowed: danarmak@gentoo.org'
I assume I'm being an idiot and screwing up the address (or local
configuration)...

Either way, you might want to take a look at my implementation of
confcache in 
http://dev.gentoo.org/~ferringb/ebuild-daemon/51-pre20-cvs/

You can use SANDBOX_DEBUG_LOG and SANDBOX_DEBUG instead of modifying the
sandbox- works just the same.  Also, variables changing _will_ cause
configure to bail if they've been cached (cflags fex), so you might want
to either filter those entries (they start with ac_cv_env_), or rewrite
them (I went for rewrite, works although I worry about other cache
entries relying on the vars not changing).
Aside from that, there is also the md5'ing of /proc/cpuinfo- most users,
not an issue, as magnade pointed out, this is a killer for users that
have procs that adjust their frequency (laptops fex) for power saving-
this changes the md5 of /proc/cpuinfo pretty much continually,
invalidating the cache continually.
~brian


--
gentoo-portage-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [gentoo-portage-dev] confcache
@ 2005-11-15  1:43 Brian Harring
  2005-11-15  2:40 ` [gentoo-portage-dev] confcache Thomas Kirchner
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Harring @ 2005-11-15  1:43 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 694 bytes --]

Hola all.

Wrote another confcache implementation (this time not bound to ebd 
thank god), and stuck an ebuild and portage patch for it in 
http://dev.gentoo.org/~ferringb/confcache/ .

Should be a bit stricter then the 2.1 implementation; for those not 
aware of what it is, it's a global autoconf cache + staleness 
detection.  End result is a 2-4x faster configure run when the cache 
is fully primed, decreasing levels of gain if the cache isn't full.  
Worst case, cache is invalidated/missing, which is normal 
configure runtifme + minor overhead.

Portage integration is pretty minor; just an econf modification.  
Feedback/testing desired, so have fun with it.
~harring

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-15  2:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-08 20:08 [gentoo-portage-dev] re: confcache Brian Harring
2004-10-09  9:45 ` Dan Armak
2004-10-09 12:35   ` Brian Harring
  -- strict thread matches above, loose matches on Subject: below --
2005-11-15  1:43 [gentoo-portage-dev] confcache Brian Harring
2005-11-15  2:40 ` [gentoo-portage-dev] confcache Thomas Kirchner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox