Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#71403 - Add a magic value for ParallelDownloads to use the number of threads

Attached to Project: Pacman
Opened by -- (bamboozilla) - Wednesday, 30 June 2021, 09:33 GMT
Last edited by Allan McRae (Allan) - Wednesday, 30 June 2021, 11:28 GMT
Task Type Feature Request
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 6.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

As ParallelDownloads is available, it would be great to be able to set it to a variable called "$threadCount" so it maximizes the machine capabilities.

e.g:

pacman.conf

```
ParallelDownload=$threadCount
```
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 30 June 2021, 11:28 GMT
Reason for closing:  Won't implement
Comment by Allan McRae (Allan) - Wednesday, 30 June 2021, 09:52 GMT
How would you determine such a value?
Comment by -- (bamboozilla) - Wednesday, 30 June 2021, 09:54 GMT
On linux, `nproc` is a solution.

In order to be cross platform independant, this could be used: `python -c 'import multiprocessing as mp; print(mp.cpu_count())'`
Comment by Jelle van der Waa (jelly) - Wednesday, 30 June 2021, 10:08 GMT
The issue is that parallel downloads do not translate well to the amount of cores you have. If you have 128 cores that does not mean 128 parallel downloads make sense.
Comment by -- (bamboozilla) - Wednesday, 30 June 2021, 10:11 GMT
I agree, in that case people can simply choose a specific amount for ParallelDownloads.

This would be great for "small" machines having a small amount of core/threads.
In my case, I don't mind using 12 threads if it's available.
Comment by Allan McRae (Allan) - Wednesday, 30 June 2021, 10:12 GMT
nproc never makes sense. It is nothing to do with processing power.

Loading...