Forums

Skip to content

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

How to speed up the 'emerge -pv xxxx' ????

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
leiking
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Thu Jun 16, 2011 3:38 am

How to speed up the 'emerge -pv xxxx' ????

  • Quote

Post by leiking » Thu May 17, 2012 2:34 am

Using sqlite is seems to be nouseful.

Any other method?
Top
shazam75
Guru
Guru
Posts: 563
Joined: Sat Mar 18, 2006 3:12 am
Location: Brisbane, Australia

  • Quote

Post by shazam75 » Sun May 20, 2012 1:56 am

Hi
This may help you :

http://en.gentoo-wiki.com/wiki/Portage_ ... llel_fetch

Regards
Shelton
answer an unanswered post:
http://forums.gentoo.org/search.php?sea ... unanswered
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Sun May 20, 2012 2:23 am

The OP's question has nothing to do with parallel fetch!

AFAIK, there is no nice way to speed up "emerge -p". If you have lots of ram, then maybe putting /usr/portage (without /usr/portage/distfiles) and portage's cache (can't remember where it is kept) on ram can get rid of the disk access times. If you simply need to check out the USE flags or the version of a package that is likely to be emerged, without its dependencies, then you can try out eix.
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
leiking
Tux's lil' helper
Tux's lil' helper
Posts: 79
Joined: Thu Jun 16, 2011 3:38 am

  • Quote

Post by leiking » Sun May 20, 2012 3:55 am

Any detail ? thanks.
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Sun May 20, 2012 7:50 am

leiking wrote:Any detail ? thanks.
You can try something similar to this: http://forums.gentoo.org/viewtopic-t-296892.html , though the procedure there is quite complicated. Although I haven't tried it myself, the procedure should be something like this:
  1. Ensure you have DISTDIR in /etc/make.conf as either something other than /usr/portage/distfiles, or you have it symlinked to some other directory. Example when you haven't changed the DISTDIR variable:

    Code: Select all

    mv /usr/portage /opt/portage # portage directory is /opt/portage for permanent storage
    mv /opt/portage/distfiles /opt/distfiles # we move the distfiles directory on to /opt
    ln -s /opt/distfiles /opt/portage/distfiles # actual distfiles are in /opt/distfiles now so we simply do a symlink
    mkdir /usr/portage # we create an empty /usr/portage which will be used for mounting onto ram
  2. Mount a ramdisk on to /usr/portage.

    Code: Select all

    mount -t tmpfs -o size=400m tmpfs /usr/portage
    You can probably also use zram for a compressed portage and mount a smaller sized ram disk.
  3. Sync portage from /opt/distfiles on to /usr/portage. You can either use tar or use rsync. Note the trailing '/' in the /opt/portage/ -- this means that the contents inside /opt/portage will be copied and not /opt/portage directory itself

    Code: Select all

    rsync -a --delete /opt/portage/ /usr/portage
  4. Now your portage is on RAM and the distfiles are on disk.
  5. Before unmounting /usr/portage, sync it back to disk (in case you have run emerge --sync)

    Code: Select all

    rsync -a --delete /usr/portage/ /opt/portage
    umount /usr/portage
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
dol-sen
Retired Dev
Retired Dev
User avatar
Posts: 2805
Joined: Sun Jun 30, 2002 2:44 pm
Location: Richmond, BC, Canada

  • Quote

Post by dol-sen » Sun May 20, 2012 5:43 pm

Well, the only true way to a faster pretend output is to emerge pkgcore, then use "pmerge -vp".

It runs to completion in less than half the time emerge does.
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Top
Post Reply

6 posts • Page 1 of 1

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