You are not logged in.

#26 2008-08-13 20:29:45

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] pacman insanely slow

ekerazha wrote:

I was replying to zenlord, you should read more carefully.

You are the one who should read more carefully :
http://bbs.archlinux.org/viewtopic.php? … 28#p406228
http://bbs.archlinux.org/viewtopic.php? … 29#p406229

Please go back to the topic now, if you have anything useful to add.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#27 2008-08-13 20:33:22

ekerazha
Member
Registered: 2007-02-27
Posts: 290

Re: [SOLVED] pacman insanely slow

shining wrote:
ekerazha wrote:

I was replying to zenlord, you should read more carefully.

You are the one who should read more carefully :
http://bbs.archlinux.org/viewtopic.php? … 28#p406228
http://bbs.archlinux.org/viewtopic.php? … 29#p406229

Please go back to the topic now, if you have anything useful to add.

I was replying the the second part indeed, as there are known issues (slowness) using pacman on XFS... and you should know this.

Offline

#28 2008-08-13 20:34:07

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] pacman insanely slow

void.pointer wrote:

Okay guys let's calm down. The main issue seems to be a networking issue, as I've already speculated in earlier posts. There's no need to get into a war about file system performance. I appreciate everyone's help, I really do, but I don't want to see anything bad happen! Let's here more suggestions on solving the real problem, if possible. So far you guys are doing great and I really appreciate your help!

There has been a number of suggestions that I didn't see you answering :
1) how many mirrors did you try
2) if the issue happens using both ftp and http mirrors
3) if firefox is slow as well, accessing the same files, for example :
ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
4) same with wget, how long does it take for resolving :
wget ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz

If 3 and 4 works fine, is pacman still much slower using this mirror?
(it is not recommended to use this mirror but well you already provided a dig output for it, and it shouldn't cause too much load to just download the small core.db.tar.gz file)

5) did you disable ipv6?

edit:
6) try other dns servers like opendns : https://www.opendns.com/start . just put the ip found there in /etc/resolv.conf

Last edited by shining (2008-08-13 20:52:43)


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#29 2008-08-13 20:47:48

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [SOLVED] pacman insanely slow

I experienced something similar recently, when I changed my ISP and the whole wifi setup, pacman would take forever just to confirm that repos are up to date.  I think I solved it by setting my computers to use OpenDNS.

Offline

#30 2008-08-13 21:03:43

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: [SOLVED] pacman insanely slow

ekerazha wrote:

I was replying to zenlord, you should read more carefully.

However... the unefficiency of the pacman DB is a date-of-fact, as already discussed and proven many many times (here and on the ML).

Please, let's try to keep this discussion on topic and useful. As it would be very bad to lock this discussion, since there is some issue going on, we would be forced to delete the inappropriate posts.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#31 2008-08-13 22:10:37

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: [SOLVED] pacman insanely slow

I had a similar problem. Using an http repo fixes it, since it doesn't check if your db is up to date.


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#32 2008-08-13 22:33:33

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: [SOLVED] pacman insanely slow

shining wrote:

There has been a number of suggestions that I didn't see you answering :
1) how many mirrors did you try

I'm using whatever is default on archlinux. I believe there's a full list in /etc/pacman.d/mirrorlist

shining wrote:

2) if the issue happens using both ftp and http mirrors

As I said, I'm using the default. What http mirrors should I use? Is it as simple as going into the mirror list and renaming all 'ftp' to 'http'?

shining wrote:

3) if firefox is slow as well, accessing the same files, for example :
ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz

I can't test this on my linux machine in question because I do not have a desktop environment installed. I don't really want to install one either. I'll try this on my windows machine when I get home. It's on the same LAN, so if this is a DNS issue I would expect the problem to show itself on my windows machine too. I'll let you know ASAP.

::EDIT::
I just tried this on my windows machine and it's pretty quick. It took less than a second to get a download request dialog in firefox when I visited the link you provided.

shining wrote:

4) same with wget, how long does it take for resolving :
wget ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz

[robert@server ~]$ time wget ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
--2008-08-13 22:24:26--  ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
           => `core.db.tar.gz'
Resolving ftp.archlinux.org... 209.85.41.145, 209.85.41.144
Connecting to ftp.archlinux.org|209.85.41.145|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /core/os/i686 ... done.
==> SIZE core.db.tar.gz ... 32335
==> PASV ... done.    ==> RETR core.db.tar.gz ... done.
Length: 32335 (32K)

100%[==============================================================>] 32,335       168K/s   in 0.2s

2008-08-13 22:24:37 (168 KB/s) - `core.db.tar.gz' saved [32335]


real    0m11.130s
user    0m0.003s
sys     0m0.007s

Above, the "Resolving ftp.archlinux.org..." is what took the longest. I would say it probably took 9-10 seconds out of the 11 seconds total.

shining wrote:

If 3 and 4 works fine, is pacman still much slower using this mirror?
(it is not recommended to use this mirror but well you already provided a dig output for it, and it shouldn't cause too much load to just download the small core.db.tar.gz file)

I still have to answer #3 later, but I'll answer this one once I have the results. Could you explain what you mean please? I am not sure I understand this question. What do you mean by "this mirror"?

shining wrote:

5) did you disable ipv6?

Yes. I followed the instructions here.

shining wrote:

edit:
6) try other dns servers like opendns : https://www.opendns.com/start . just put the ip found there in /etc/resolv.conf

I wasn't aware I was hosting a DNS server? I'm a bit confused about this suggestion. What is this supposed to help?
::EDIT::
Sorry, I feel stupid. I know what you mean now. Have my machine *use* a different DNS server. Below is what my /etc/resolv.conf looks like. Note it is delegating to my router as the DNS server (Which is what my windows machines do, I believe. My router ultimately knows the real DNS servers). 'router' here is the domain name of my router. It should map to 192.168.10.1.

 # Generated by dhcpcd for interface eth0
 search router
 nameserver 192.168.10.1

I can't manually change this file per your suggestion, since it is auto-generated when I reboot and also when I restart /etc/rc.d/network.
Sorry for not being able to answer some of these questions. Again, I'll answer them when I get home. I'm currently at work and I cannot test some of these things.

Last edited by void.pointer (2008-08-13 23:33:40)

Offline

#33 2008-08-13 22:59:07

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: [SOLVED] pacman insanely slow

OK, shoot me if you will. Tested the dig and time wget-commands and all was very well.

So I looked inside the mirrorlist and found out that I had all servers uncommented. Changing this and leaving only 1 open (belnet in Belgium), made the pacman-sync run much smoother.

Sorry to have wasted some of your time sad - I hope this post will help some other guy once...

Zl.

Offline

#34 2008-08-13 23:31:43

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: [SOLVED] pacman insanely slow

zenlord wrote:

OK, shoot me if you will. Tested the dig and time wget-commands and all was very well.

So I looked inside the mirrorlist and found out that I had all servers uncommented. Changing this and leaving only 1 open (belnet in Belgium), made the pacman-sync run much smoother.

Sorry to have wasted some of your time sad - I hope this post will help some other guy once...

Zl.

You're not wasting anyone's time. Thanks for helping out. I am in the USA, so I tried commenting out everything that wasn't in USA and it still ran pretty bad. I even commented out all the FTP mirrors and it was still bad. As a last resort I kept only 1 uncommented and no substantial difference.

Offline

#35 2008-08-14 00:08:32

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [SOLVED] pacman insanely slow

Questions to answer:
- are downloads slow to start from the windows box you talked about in your first post?
- have you tried disabling ipv6 yet?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#36 2008-08-14 00:11:40

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: [SOLVED] pacman insanely slow

cactus wrote:

Questions to answer:
- are downloads slow to start from the windows box you talked about in your first post?

Not at all. It's very fast. Takes less than a second to start the download.

cactus wrote:

- have you tried disabling ipv6 yet?

This question was answered in my previous post (The large one) about 2 or 3 up.

Offline

#37 2008-08-14 00:25:00

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [SOLVED] pacman insanely slow

void.pointer wrote:

I can't manually change this file per your suggestion, since it is auto-generated when I reboot and also when I restart /etc/rc.d/network.

If you switch to netcfg to configure wifi you should be able to specify DNS servers explicitly in the configuration file for the network.  Also, you could set Arch system to use static IP and then the resolve.conf file will not be automatically updated each time you connect.  Or you can also set DNS globally by editing the settings of your router.

Offline

#38 2008-08-14 03:47:51

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: [SOLVED] pacman insanely slow

I did it this morning after reading this thread, and everything (core, extra and community, no other repo's) was up to date, but still it took 36 seconds to complete the -Sy. I have always found this to be rather strange, since pacman itself says everything is up to date, so I guess nothing has to be sync'ed, no?

I had this issue one before as well, nothing would update. pacman -Syy solved it. I believe it was corrupt database, however that happened.

If you have not done so, as the shinning suggested. try running

pacman -Syy

I didn't see where u tried this yet.

Offline

#39 2008-08-14 03:57:22

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: [SOLVED] pacman insanely slow

[robert@server forum]$ time sudo pacman -Syy
:: Synchronizing package databases...
 core                      31.4K   38.3K/s 00:00:01 [##############################] 100%
 extra                    396.5K   60.3K/s 00:00:07 [##############################] 100%
 community                354.0K   76.2K/s 00:00:05 [##############################] 100%
 aurbuild                   0.5K  120.0K/s 00:00:00 [##############################] 100%

real    0m24.569s
user    0m0.263s
sys     0m1.023s
[robert@server forum]$ time sudo pacman -Sy
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 aurbuild is up to date

real    1m30.125s
user    0m0.003s
sys     0m0.023s

Notice the substantial difference in timing between the two.

Offline

#40 2008-08-14 06:55:18

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] pacman insanely slow

void.pointer wrote:
shining wrote:

4) same with wget, how long does it take for resolving :
wget ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz

[robert@server ~]$ time wget ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
--2008-08-13 22:24:26--  ftp://ftp.archlinux.org/core/os/i686/core.db.tar.gz
           => `core.db.tar.gz'
Resolving ftp.archlinux.org... 209.85.41.145, 209.85.41.144
Connecting to ftp.archlinux.org|209.85.41.145|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /core/os/i686 ... done.
==> SIZE core.db.tar.gz ... 32335
==> PASV ... done.    ==> RETR core.db.tar.gz ... done.
Length: 32335 (32K)

100%[==============================================================>] 32,335       168K/s   in 0.2s

2008-08-13 22:24:37 (168 KB/s) - `core.db.tar.gz' saved [32335]


real    0m11.130s
user    0m0.003s
sys     0m0.007s

Above, the "Resolving ftp.archlinux.org..." is what took the longest. I would say it probably took 9-10 seconds out of the 11 seconds total.

I would say, let's forget about pacman for a while and concentrate on the wget testcase. 10 seconds for resolving is simply crazy.
And in the same time, "dig ftp.archlinux.org" reports a query of only a few milliseconds? That doesn't make sense.

 # Generated by dhcpcd for interface eth0
 search router
 nameserver 192.168.10.1

I can't manually change this file per your suggestion, since it is auto-generated when I reboot and also when I restart /etc/rc.d/network.

You can disable the auto-generation by adding the -R flag to dhcpcd arguments in /etc/conf.d/dhcpcd
After than you can manually change the file.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#41 2008-08-14 06:57:40

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: [SOLVED] pacman insanely slow

zenlord wrote:

OK, shoot me if you will. Tested the dig and time wget-commands and all was very well.

So I looked inside the mirrorlist and found out that I had all servers uncommented. Changing this and leaving only 1 open (belnet in Belgium), made the pacman-sync run much smoother.

Sorry to have wasted some of your time sad - I hope this post will help some other guy once...

Just for clarification, the mirror used is the first one pacman finds, that means the first uncommented one.
So it does not matter how many you have uncommented. What matters is that the first uncommented mirror is fast from where you are.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#42 2008-08-19 16:12:06

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: [SOLVED] pacman insanely slow

Well, I managed to solve the slow downs I believe. I'll never know for sure what really caused the slow downs, but at least it is faster now. Basically to solve the problem all I did was comment out servers in /etc/pacman.d/mirrorlist one at a time and do a "sudo pacman -Sy" until I found a server that was fast. Now I get the following timings:

[robert@server ~]$ time sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 aurbuild is up to date
:: Starting full system upgrade...
warning: subversion: local (1.5.1-5) is newer than extra (1.4.6-4)
 local database is up to date

real    0m7.834s
user    0m0.197s
sys     0m0.110s

I appreciate everyone's help.

Offline

#43 2008-08-19 16:33:17

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED] pacman insanely slow

@void.pointer

I'm glad you got this working.  Please mark this thread as solved.  Thank you.

Offline

Board footer

Powered by FluxBB