Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync takes a while to verify .tmp-unverified-downlo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
asaparov
n00b
n00b


Joined: 04 Nov 2016
Posts: 7

PostPosted: Thu May 30, 2019 8:01 pm    Post subject: emerge --sync takes a while to verify .tmp-unverified-downlo Reply with quote

I've noticed emerge --sync on one of my machines takes a lot longer than the others, and almost all of the time is spent in Verifying /usr/portage/.tmp-unverified-download-quarantine.
It takes about a couple minutes to finish this step, whereas running
Code:
gemato verify -K /usr/share/openpgp-keys/gentoo-release.asc /usr/portage

finishes in 26 seconds. Shouldn't emerge --sync only verify a small subset of the tree? If so, why would it be taking so much longer? My other machines go through this step fairly quickly.

emerge --info: https://pastebin.com/WaavzvzK
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu May 30, 2019 10:58 pm    Post subject: Reply with quote

You could disable tree verification. That's what I do on my machines to speed up 'emerge --sync', especially on slow machines or on machines where /usr/portage is mounted via NFS.
  • Emerge portage without USE flag 'rsync-verify' AND

  • Add the lines below to the DEFAULT section of /etc/portage/repos.conf/gentoo.conf:
    Code:
    sync-rsync-verify-metamanifest = no
    sync-allow-hardlinks = no

Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9824
Location: almost Mile High in the USA

PostPosted: Thu May 30, 2019 11:32 pm    Post subject: Reply with quote

Tree verification needs to verify the whole tree. I've found mechanical hard disks take much longer to sync because it needs to copy/link the whole tree to a different directory (depend on COW), sync in from remote repo, verify, and then sync to your normal portage tree.

So yes, it's quite a few cycles for your SSD too that you don't notice since it's quite fast.

Some people have enough RAM to copy the whole portage tree to ramdisk/tmpfs, wonder if this should be the better optimization, though hard links are fairly quick too (COW)...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum