Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 718856

Summary: sys-apps/portage feature request: Parallel Uninstall
Product: Portage Development Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: ago, fturco, mattst88, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-04-22 15:35:40 UTC
Portage is excessively lethargic when uninstalling large volumes of packages at once, which is considerably normal when you're using FEATURES="test", especially in the Perl and Rust ecosystem.

It would be very nice if portage respected the -j parameter for unmerge and depclean, so that tasks like verifying checksums and soforth and running pkg_post_rm can be properly parallelized.

Naturally, this probably wants some sort of graph handling, so nodes are only cleaned once their dependents are also cleaned, so that interrupting a clean minimises system breakage.

As it stands, I'd imagine there are groups of packages that take less time to install than it does to uninstall, due to install being parallel, and uninstall being purely linear.
Comment 1 Matt Turner gentoo-dev 2020-04-22 18:36:37 UTC
This would be valuable for catalyst livecd builds, which spend quite a bit of time uninstalling packages at the end of the build.
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-09 12:30:21 UTC
+1

this will indeed speed-up tinderboxing