public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Portage performance dropped considerably
@ 2014-01-26 14:35 Nikos Chantziaras
  2014-01-26 14:44 ` hasufell
                   ` (6 more replies)
  0 siblings, 7 replies; 64+ messages in thread
From: Nikos Chantziaras @ 2014-01-26 14:35 UTC (permalink / raw
  To: gentoo-user

Anyone else noticed this yet? Some portage update seems to have made 
"emerge -uDN @world" perform about 10 times slower than before. It used 
to take seconds, now it takes about 4 minutes only to tell me that 
there's nothing to update. And it does that every time, even directly in 
succession and with the caches warm.

Is it just me?



^ permalink raw reply	[flat|nested] 64+ messages in thread
* Re: [gentoo-user] Portage performance dropped considerably
@ 2014-01-26 15:09 Greg Turner
  2014-01-26 15:32 ` [gentoo-user] " eroen
  0 siblings, 1 reply; 64+ messages in thread
From: Greg Turner @ 2014-01-26 15:09 UTC (permalink / raw
  To: gentoo-user; +Cc: realnc

On Sun, Jan 26, 2014 at 6:35 AM, Nikos Chantziaras <realnc@gmail.com> wrote:
> Anyone else noticed this yet? Some portage update seems to have made "emerge
> -uDN @world" perform about 10 times slower than before. It used to take
> seconds, now it takes about 4 minutes only to tell me that there's nothing
> to update. And it does that every time, even directly in succession and with
> the caches warm.
>
> Is it just me?

Usually this occurs when you have done something that causes portage
to stop using the metadata that rolls in via rsync.  The classic
example of something that will cause this is setting some
eclass-overrides in /etc/portage/repos.conf.

As of yesterday, portage still performed tolerably on a relatively
vanilla base system.

That stated, you're not hallucinating.  Portage is slow as tar.  I
suspect it's getting slower at least partially as a result of the
recent explosion of multilib-build-based ebuilds for multimedia and
x11 library ebuilds, and perhaps also due to those nasty
emul-linux-x86 blockers (a problem that will eventually be resolved,
Larry-The-Cow-God-willing, within a year or three) that are placing
higher and higher demands on portage's depsolving engine, as time
passes.

Having lots and lots of packages installed is a huge factor here.
This may be because, by default, portage uses installed packages to
calculate dependencies, resulting in a need to re-cache lots of
stuff... I'm a bit fuzzy on exactly what criteria are used to
determine when this happens, tbh.. that's something I've been meaning
to look into.

Adding something like:

EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --backtrack=5"
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --complete-graph=n"
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --complete-graph-if-new-use=n"
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --complete-graph-if-new-ver=n"
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --with-bdeps=n"

to you /etc/portage/make.conf may help, as may running emerge
--metadata and/or egencache on your repos. after syncing... but...
these are no panacea.

Sometimes emerge -O is the only way to get some things done in any
reasonable time-frame.

It would help if there were some decent way to get some statistics
about where portage is spending all its time (especially, I suspect,
within the bash code, but the python level would also be interesting
to analyse).  Anyone know of a good way of doing that?

-gmt


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

end of thread, other threads:[~2014-03-07 19:37 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-26 14:35 [gentoo-user] Portage performance dropped considerably Nikos Chantziaras
2014-01-26 14:44 ` hasufell
2014-01-26 14:50 ` [gentoo-user] " Remy Blank
2014-01-26 15:24 ` eroen
2014-01-26 17:42   ` Alan McKinnon
2014-01-26 18:04     ` hasufell
2014-01-26 18:30       ` Alan McKinnon
2014-01-26 18:41         ` hasufell
2014-01-26 19:22           ` Alan McKinnon
2014-01-26 20:44             ` ny6p01
2014-01-27  5:03               ` Alan McKinnon
2014-01-27  9:27               ` Neil Bothwick
2014-01-26 23:26           ` William Hubbs
2014-01-26 23:36             ` Andreas K. Huettel
2014-01-27  0:44               ` Andreas K. Huettel
2014-01-27 11:44             ` hasufell
2014-01-28  1:34               ` Martin Vaeth
2014-01-28  3:19                 ` hasufell
2014-01-28 17:45                   ` Martin Vaeth
2014-01-28 18:07                     ` hasufell
2014-01-29 14:24                       ` Kerin Millar
2014-01-28  0:41             ` Walter Dnes
2014-01-28  1:42               ` Martin Vaeth
2014-01-28  4:02                 ` Walter Dnes
2014-01-31 19:03         ` Andrew Savchenko
2014-01-31 19:13           ` Mick
2014-01-31 21:18             ` Andrew Savchenko
2014-01-31 22:12               ` Alan McKinnon
2014-02-02  9:40                 ` Andrew Savchenko
2014-02-03 10:55                   ` Martin Vaeth
2014-02-03 11:57                     ` Greg Turner
2014-02-03 13:17                       ` Martin Vaeth
2014-01-26 19:29       ` Volker Armin Hemmann
2014-01-26 19:45         ` Alan McKinnon
2014-01-26 20:10           ` Volker Armin Hemmann
2014-01-27  9:30         ` Neil Bothwick
2014-01-27 11:59       ` Tanstaafl
2014-01-27 13:06         ` Alan McKinnon
2014-01-27 13:57           ` hasufell
2014-01-27 21:48             ` Neil Bothwick
2014-01-27 21:54               ` hasufell
2014-01-27 22:57                 ` Neil Bothwick
2014-01-27 23:35                   ` hasufell
2014-01-28  1:35                     ` Neil Bothwick
2014-02-03 14:04                   ` Pandu Poluan
2014-02-03 14:16                     ` Alan McKinnon
2014-02-03 16:38                       ` Pandu Poluan
2014-02-04  5:12                         ` Martin Vaeth
2014-01-28  1:50           ` Martin Vaeth
2014-01-30  3:50           ` hasufell
2014-01-30 18:15             ` [gentoo-user] " Stroller
2014-01-31 20:08               ` hasufell
2014-01-26 19:28     ` [gentoo-user] " Volker Armin Hemmann
2014-01-26 19:55       ` Alan McKinnon
2014-01-27 12:06         ` Helmut Jarausch
2014-01-27 21:56           ` Stefan G. Weichinger
2014-01-26 15:53 ` [gentoo-user] " Mariusz Ceier
2014-01-31 17:23   ` Andrew Savchenko
2014-01-26 16:06 ` Florian Philipp
2014-01-26 16:15   ` hasufell
2014-01-26 17:52     ` Florian Philipp
2014-01-26 18:16 ` covici
2014-03-07 19:36 ` Tom Wijsman
  -- strict thread matches above, loose matches on Subject: below --
2014-01-26 15:09 Greg Turner
2014-01-26 15:32 ` [gentoo-user] " eroen

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