Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] "Performing Global Updates" takes forever
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
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 141
Location: Berlin

PostPosted: Sun Nov 26, 2023 4:34 pm    Post subject: [solved] "Performing Global Updates" takes forever Reply with quote

Hi,

when doing emerge --sync, sometimes emerge does at the end a "Performing Global Updates" task. It takes normally some minutes. This time it took like 6 or 8 hours, then I cancelled it:

Code:

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
/mnt/portage/portdir/profiles/updates/4Q-2023...................................​
@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@%%%%%%%%%%%%%%%%​%%%%%%%%%%%%%%%%%%sSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#​################################################################################​################################################################################​####################################################
################################################################################​#################################################*******************************​********************************************************************************​***********************************
********************************************************************************​********************************************************************************​********************************************************************************​********************************************************************************​********************************
********************************************************************************​********************************************************************************​********************************************************************************​********************************************************************************​*********************************
********************************************************************************​********************************************************************************​********************************************************************************​********************************************************************************​********************************
********************************************************************************​********************************************************************************​********************************************************************************​********************************************************************************​*********************************
********************************************************************************​********************************************************************************​********************************************************************************​********************************************************************************​**********************************
********************************************************************************​******************************************^C

Exiting on signal 2


Restart seems really restart instead of doing it again. How do I find out how much is already done?

*****
Solution:
Code:
eclean-pkg
reduced PKGDIR from 150 GB to 10 GB, "Performing Global Updates" then took only a couple of minutes.

[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]


Last edited by MMMMM on Sun Nov 26, 2023 7:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1938

PostPosted: Sun Nov 26, 2023 4:54 pm    Post subject: Reply with quote

I assume you have some binpkgs. Do you have a lot of them? Is PKGDIR on something like NFS or slow media?
Back to top
View user's profile Send private message
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 141
Location: Berlin

PostPosted: Sun Nov 26, 2023 6:08 pm    Post subject: Reply with quote

It's on NFS.
Approx. 150 GB 8O
Code:
/mnt/pkgdir # du -sm .
152020  .


I have plenty of space left on an internal HDD. But not on the SSD.
I guess moving this to the HDD would be a good idea.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22578

PostPosted: Sun Nov 26, 2023 6:24 pm    Post subject: Reply with quote

Do you need all 150GB of those packages? If you clean out old packages, Portage will have less work to do. If you can run Portage directly on the server, letting it process the moves there (where the files will be local) may avoid needing the client to process them over NFS. I have never encountered this situation, so I cannot say whether processing the moves server-side will help the client, but it seems like it is worth a try.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2167

PostPosted: Sun Nov 26, 2023 7:13 pm    Post subject: Reply with quote

MMMMM,
Code:
eclean-pkg --deep

before your next sync will dispose of all binary packages except those you currently have installed. My system, with around 1,600 packages, 250 in @world, needs about 7GB of binpkgs. Doing it before syncing allows you to fall back if an update turns nasty. If you're desperate for old versions, omit the "--deep", but you'll need more space, and even then, some packages will have only one or two versions available.
_________________
Greybeard
Back to top
View user's profile Send private message
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 141
Location: Berlin

PostPosted: Sun Nov 26, 2023 7:41 pm    Post subject: Reply with quote

I copied all to the internal HDD. Was not that much faster. After eclean-pkg only 10 GB left, emerge --sync then finished quickly (some minutes).

I have that in my mainenance script. But disabled; can't remember why.
Back to top
View user's profile Send private message
Plus!
n00b
n00b


Joined: 04 Mar 2008
Posts: 15

PostPosted: Thu Mar 28, 2024 11:31 pm    Post subject: Reply with quote

I have the similar problem. Package dir is on NFS share, however the size is about 18GB.
And the global update (*='binary update') takes hours. :(
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