Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Emerge sync takes forever, uses 98% CPU

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
281 posts
  • Page 1 of 12
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 12
  • Next
Author
Message
xtaski
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 20, 2004 9:10 pm
Location: New York, NY
Contact:
Contact xtaski
Website

Emerge sync takes forever, uses 98% CPU

  • Quote

Post by xtaski » Fri Sep 23, 2005 10:23 pm

Not sure what happened all the sudden but running emerge --sync uses up 98% CPU and takes forever. It used to take a couple minute to update - now it's like 20-30 mins... It's slow on the "Updating Portage Cache... .X%" - The rsync is fine...

Any ideas? I looked through the forums and didn't see anything like this... it just started this last week...

I sync about every day or two and am updated on all packages.... can't figure out what's doing this.
Last edited by xtaski on Sat Sep 24, 2005 10:25 pm, edited 2 times in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Sep 23, 2005 10:34 pm

xtaski,

Do you have a lot of binary packages?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
xtaski
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 20, 2004 9:10 pm
Location: New York, NY
Contact:
Contact xtaski
Website

  • Quote

Post by xtaski » Fri Sep 23, 2005 10:42 pm

nope; only binary is probably openoffice and nvidia... everything else is built from source...
Top
ldoe3000
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 78
Joined: Tue Jul 19, 2005 7:29 pm
Location: Portland, OR

Updating Portage cache taking a long time lately

  • Quote

Post by ldoe3000 » Sat Sep 24, 2005 1:18 am

Anyone else experiencing really long "Updating Portage cache:" times when doing an emerge sync? Even if I do an "emerge metadata", it still takes about 3-4 minutes on that step alone. In the past it took under 1 minute.. Is it just me?
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Top
cantao
Apprentice
Apprentice
User avatar
Posts: 166
Joined: Wed Jan 07, 2004 12:39 pm

Same here...

  • Quote

Post by cantao » Sat Sep 24, 2005 1:26 am

Yep, same behavior here... I thought it was just my imagination :)

Any clues?

Cheers, Cantão!
Top
ldoe3000
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 78
Joined: Tue Jul 19, 2005 7:29 pm
Location: Portland, OR

  • Quote

Post by ldoe3000 » Sat Sep 24, 2005 2:12 am

None, except we're up to 126000 files.. Perhaps Portage has hit some threshold where it can't really keep up with the volume now.. Total guess there.
Athlon64 3500+ MSI Neo2 Platinum
2X74 WD Raptor Raid 0
2X512MB Crucial Ballistix
ATI x800XT PE (8.18.6)
SB Audigy 2 ZS
Dell 24" Widescreen LCD
Dual boot: Gentoo x86_64 2.6.13-r4 , Windows XP x64
Top
satanskin
Guru
Guru
Posts: 353
Joined: Mon Apr 25, 2005 1:37 am

  • Quote

Post by satanskin » Sat Sep 24, 2005 3:02 am

They should switch it over and use some sort of database with it. Maybe support one of the C++ versions of portage...

Regardless, I'm having the same thing. Takes a while.
Top
barum87
n00b
n00b
Posts: 62
Joined: Mon Mar 28, 2005 9:31 am

  • Quote

Post by barum87 » Sat Sep 24, 2005 3:18 am

Me too.
I just thought that my system wasn't optimized enough, but I guess it's not just my problem.
Top
tam
Guru
Guru
User avatar
Posts: 569
Joined: Tue Mar 04, 2003 9:06 pm
Contact:
Contact tam
Website

  • Quote

Post by tam » Sat Sep 24, 2005 7:52 am

In deed, portage should become faster.
http://tam.belchenstuermer.de/
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Sat Sep 24, 2005 8:00 am

An "emerge sync" is since some days/weeks significantly slower than before. I see "Updating Portage cache: 50%" for 1-2 minute(s) or longer before it changes.
This is independent from the general question how the process can be speed up.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Sep 24, 2005 8:26 am

xtaski,

Sorry, I wasn't clear.

Do you have

Code: Select all

FEATURES="buildpkg"
set in /etc/make.conf, even by defualt ?
You need not have installed any binary packages. Look in

Code: Select all

emerge --info
since that will show you things which are on by defualt too.

This makes portage save a binary of everything you build, at the end of emerge sync it does a lot checking of these binaries.
They are saved in /usr/portage/packages by defualt.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Gentii
Guru
Guru
Posts: 306
Joined: Sun Feb 01, 2004 11:53 am

  • Quote

Post by Gentii » Sat Sep 24, 2005 11:30 am

Yep, I have exactly the same problem. In fact I just asked on gentoo chan why this step was getting so slow.. Anyone told me to give cdb module a try ( http://forums.gentoo.org/viewtopic-t-26 ... odule.html ).
So what's the best workaround (easiest and cleanest to set up) ? cdb , one c++ portage like sportage, or something else?

Btw, this post has nothing to do with amd64, maybe it should be moved :)
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Sat Sep 24, 2005 11:55 am

I have a similar problem, after 50% is completed emerge uses full cpu power but that's all for a while http://forums.gentoo.org/viewtopic.php? ... 80#2749780
BTW here is my config

Code: Select all

CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

USE="acpi aim apache2 browserplugin cardbus cddb cdparanoia dvd dvdr dvdread
     ethereal font-server innodb jai javascript jimi live mbox mmx
     mmxext mng nagios-dns nagios-ntp nagios-ping nagios-s network
     no-old-linux nsplugin pcmcia real slp smime sse sse2 subversion svg
     usb userlocales webdav wifi xanim xfs -apm -gnome"
LINGUAS="de en"

MAKEOPTS="-j2"
PORTAGE_NICENESS="3"
PORT_LOGDIR="/var/log/portage"
FEATURES="ccache"
CCACHE_SIZE="1G"
Last edited by toralf on Sat Sep 24, 2005 6:09 pm, edited 1 time in total.
Top
xtaski
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 20, 2004 9:10 pm
Location: New York, NY
Contact:
Contact xtaski
Website

  • Quote

Post by xtaski » Sat Sep 24, 2005 5:33 pm

Do you have

Code: Select all

FEATURES="buildpkg"
set in /etc/make.conf, even by defualt ?
You need not have installed any binary packages. Look in

Code: Select all

emerge --info
since that will show you things which are on by defualt too.

This makes portage save a binary of everything you build, at the end of emerge sync it does a lot checking of these binaries.
They are saved in /usr/portage/packages by defualt.
Ok, yes I do have "buildpkg" - how do I "fix" this then?
Top
kmare
l33t
l33t
User avatar
Posts: 619
Joined: Sat Nov 20, 2004 8:28 pm
Location: Thessaloniki, Greece

  • Quote

Post by kmare » Sat Sep 24, 2005 5:48 pm

same problem here..
Top
xtaski
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 20, 2004 9:10 pm
Location: New York, NY
Contact:
Contact xtaski
Website

  • Quote

Post by xtaski » Sat Sep 24, 2005 6:19 pm

Not sure if this helps, but here's the summary after a --sync:

Code: Select all

Number of files: 125563
Number of files transferred: 1198
Total file size: 99513410 bytes
Total transferred file size: 2450380 bytes
Literal data: 2450380 bytes
Matched data: 0 bytes
File list size: 2862533
File list generation time: 15.113 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 33240
Total bytes received: 5376530

sent 33240 bytes  received 5376530 bytes  53298.23 bytes/sec
total size is 99513410  speedup is 18.40

>>> Updating Portage cache:  100%
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Sep 24, 2005 6:50 pm

xtaski,

If you never use the binary packages, you can turn off FEATURES="buildpkg" and get rid of the /usr/portage/packages directory.
emerge sync will not to the binary package bit at the end.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
widremann
Veteran
Veteran
Posts: 1314
Joined: Mon Mar 14, 2005 9:47 pm

  • Quote

Post by widremann » Sat Sep 24, 2005 8:33 pm

I have the same problem and I don't have "buildpkg" set. It just takes forever and the CPU has high utilization. I don't even have a /usr/portage/packages directory, either.
Top
Nijinski
n00b
n00b
User avatar
Posts: 72
Joined: Sun Nov 28, 2004 4:40 pm
Location: Fife, Scotland

  • Quote

Post by Nijinski » Sat Sep 24, 2005 8:59 pm

Same problem here, not limited to AMD64 either, getting it on SPARC and x86 as well.

Big pause at 50% then starts off again.
Help ! Help ! I'm being repressed
Top
xtaski
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 20, 2004 9:10 pm
Location: New York, NY
Contact:
Contact xtaski
Website

  • Quote

Post by xtaski » Sat Sep 24, 2005 9:53 pm

Thanks Neddy! That fixed my problem - guess I never really knew why I kept including that feature... now I know not to.
Top
cmtaylor
n00b
n00b
User avatar
Posts: 36
Joined: Mon Aug 09, 2004 9:32 pm
Location: Houghton, MI
Contact:
Contact cmtaylor
Website

slow portage

  • Quote

Post by cmtaylor » Sat Sep 24, 2005 10:24 pm

i'm having the same problem as wildremann -- i don't have buildpkg set, and i don't have the /use/portage/packages directory. any other possibilities?
Top
xtaski
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Dec 20, 2004 9:10 pm
Location: New York, NY
Contact:
Contact xtaski
Website

  • Quote

Post by xtaski » Sat Sep 24, 2005 10:25 pm

Can you post your make.conf? Maybe there's something else in there...
Top
The Mountain Man
l33t
l33t
User avatar
Posts: 643
Joined: Wed Sep 03, 2003 3:55 am

  • Quote

Post by The Mountain Man » Sun Sep 25, 2005 2:58 am

Glad I'm not alone. Takes some minutes and uses almost 100% of my CPU. Wonder what's up?
I suck at signatures.
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

[Slow Portage] - Retrieving metadata - (Open)

  • Quote

Post by i92guboj » Sun Sep 25, 2005 3:11 pm

The tittle says it all: my box can spend 10-20 minutes (I havent meassured exactly, but is noticeably slower then before) to retrieve all the metadata, after a sync. I have experienced this problem since a couple of months or so. The filesystem is ext2, that is fast, and I checked that is 100% error free. The cpu is mostly idle when doing that, and there is enough free memory and no swap at all when performing this operation.

I noticed that the number of files in portage has grown in the last months a lot, but I dont know if that is what is causing this odd thing. I use a couple of overlays. One in /usr/local/portage with 10 or 15 ebuilds only in it. The other is bigger, in /usr/local/gentopia, with the ebuild from here: http://gentopia.gentooexperimental.org./wiki

Has anyone experienced this slowdown in the last months, or is it just me? It worries my, since, if the portage size is the real problem this could become a serious problem in the next few months... :(
Top
lost+found
Guru
Guru
User avatar
Posts: 514
Joined: Mon Nov 15, 2004 6:56 pm
Location: North~Sea~Coa~s~~t~~~

  • Quote

Post by lost+found » Sun Sep 25, 2005 4:03 pm

I think it's a filesystem problem: inefficient storage of small files, spread over the hd everywhere...
Some time ago, i put back a Portage snapshot from a tar.bz2, after deleting /usr/portage... after that it was fast again... Maybe ReiserFS would do it better (it's fast on small files)? It should be used for /usr/portage and /var/cache/edb then. I'm using JFS, so i decided to cut down the Portage tree with rsync_excludes, very fast, but you will have to do some manual work when emerging new packages.
Last edited by lost+found on Mon Sep 26, 2005 5:50 am, edited 1 time in total.
Top
Post Reply

281 posts
  • Page 1 of 12
    • Jump to page:
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 12
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic