You are not logged in.

#1 2013-01-06 16:39:50

thoth
Member
Registered: 2010-01-10
Posts: 40

XferCommand and speed limits

reading this post

https://bbs.archlinux.org/viewtopic.php?id=78385

led me to put:

XferCommand = /usr/bin/wget --limit-rate 100K --passive-ftp -c -O %o %u

in my pacman.conf

but now I get issues such as this:

https://bbs.archlinux.org/viewtopic.php?pid=1042148

or more specifically on my system:

--2013-01-06 10:16:05--  http://ftp.osuosl.org/pub/archlinux/extra/os/i686/extra.db.sig
Resolving ftp.osuosl.org (ftp.osuosl.org)... 64.50.233.100
Connecting to ftp.osuosl.org (ftp.osuosl.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-01-06 10:16:05 ERROR 404: Not Found.

but I imagine it is all related to this 'internal downloader' which is spoken of.  Is there actually an internal downloader these days?  My guess is it's just another wget command done differently, rather than digging through the source I was wondering if anyone here knew offhand how the new wget command is structured, and maybe more importantly why the above one fails on the db.sigs.

last thoughts, maybe this belongs in the bug tracker as I tried both of the XferCommands in the default pacman.conf that are commented out:

#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

and neither of them work either.  The error output of curl was decidedly more useless:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

Offline

#2 2013-01-06 16:42:12

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: XferCommand and speed limits

update pacman (pacman -Syy)

Offline

#3 2013-01-06 16:53:25

thoth
Member
Registered: 2010-01-10
Posts: 40

Re: XferCommand and speed limits

pacman -Syy only works if I comment out all XferCommands otherwise it fails just like the others:

--2013-01-06 10:52:52--  http://ftp.osuosl.org/pub/archlinux/community/os/i686/community.db.sig
Resolving ftp.osuosl.org (ftp.osuosl.org)... 64.50.233.100
Connecting to ftp.osuosl.org (ftp.osuosl.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-01-06 10:52:52 ERROR 404: Not Found.

Offline

#4 2013-01-06 16:56:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: XferCommand and speed limits

Yeah, mine actually won't download the sigs either... maybe this is flyspray worthy...

Offline

#5 2013-01-06 17:04:42

thoth
Member
Registered: 2010-01-10
Posts: 40

Re: XferCommand and speed limits

https://bugs.archlinux.org/task/33309   

^me thinks you're right, I forgot to adjust category though and can't change it now, boo.  Oh well, I haven't been yelled at by the beards in awhile anyhow roll

Offline

#6 2013-01-06 20:22:11

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: XferCommand and speed limits

Hey, I learned something from that bug report.  Even though there is apparently nothing wrong... thanks thoth.

I too am curious why you would need to limit the download rates?  It is not as though these downloads last for a terribly long time.  Maybe you are looking for something like QoS?

Offline

#7 2013-01-06 20:54:00

thoth
Member
Registered: 2010-01-10
Posts: 40

Re: XferCommand and speed limits

just my downloading the newest KDE updates was keeping others in my home from enjoying 'full high quality proprietary streaming media downloads' and I thought I'd just squeeze pacman down a bit by modifying the XferCommand.  It does appear from the info falconindy gave that the errors are harmless though, so I'm going to continue to try modding that XferCommand during times when I want one of many arch machines to be a bit more polite.

Offline

#8 2013-01-06 22:27:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: XferCommand and speed limits

After you figure that out, why not make an alternative config file to be used in these cases.  Then simply use

# pacman --config /etc/pacman.d/pacman-alt.conf 

Offline

#9 2013-01-06 22:39:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: XferCommand and speed limits

If politeness is the main requirement, you could put 'pacman -Syuw --noconfirm' in a middle-of-the-night cron job, and then run 'pacman -Su' to your heart's content during the day.

Not quite on-topic, but as you have many Arch machines, you should also consider sharing the package cache to avoid unnecessary duplicate downloads.

Offline

#10 2013-01-08 15:05:58

thoth
Member
Registered: 2010-01-10
Posts: 40

Re: XferCommand and speed limits

or combine both:

pacman --config /etc/pacman.d/pacman-alt.conf -Syuw --noconfirm

and use pacserve the rest of the time on other machines:

pacsrv -Syu

as posted above the XferCommand is still what I'm using despite the very ominous warning from falconindy:

XferCommand = /usr/bin/wget --limit-rate 100K --passive-ftp -c -O %o %u

but only in my alternate conf and only for download.  bah wish there was a simple:

sudo apt-get -o Acquire::http::Dl-Limit=30 upgrade

Offline

#11 2013-01-08 15:09:12

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,095
Website

Re: XferCommand and speed limits

Like I said in the bug report, feel free to adjust your SigLevel if you dislike seeing the 404 errors.

Offline

Board footer

Powered by FluxBB