You are not logged in.

#1 2011-06-02 20:26:50

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

[SOLVED] Pacman Performance Issue

Hey everybody:

I have a weird performance problem with pacman.  When I tell it to download something, it works fine when it is finding the package, figuring out dependencies, and processing the command.

Then, when it gets to downloading, it'll take a few to several minutes to start downloading a package, download it at a normal/acceptable speed, then take a few to several minutes to start downloading the next package.

I'm not sure what's causing this problem but I could see this beeing a nuissance for upgrades and things like that.  Or right now, because it's a fresh install and I'm trying to install Gnome, lol.  This behavior is also experienced when I'm updating the mirrors (pacman -Syy).

I'm going to let it run overnight where it'll probably be done by the time I get back to work in the morning, but this seems like there's something wrong because I just tried on my laptop (on the same LAN) and it works as fast as I'd ever seen it.  In the past, I've never done any optimization or mirror ranking and I haven't experienced this issue before.

Thanks!

Last edited by mrmylanman (2011-06-03 12:41:45)


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#2 2011-06-02 20:34:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Pacman Performance Issue

Does that happen for all mirrors (pacman uses the first mirror from the list)? Both ftp and http, different locations?
Any differences between you laptop and the other computer? Are you using the same mirrorlist?

Offline

#3 2011-06-02 20:36:45

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [SOLVED] Pacman Performance Issue

check your dns servers.

Offline

#4 2011-06-02 22:06:16

Koven
Member
Registered: 2006-06-13
Posts: 154

Re: [SOLVED] Pacman Performance Issue

I've a similiar issue with the performance in pacman. I checked my dns servers and they give me a really fast answer to any query I do. I guess it might be a network problem, but I don't know where....

BR

Offline

#5 2011-06-02 22:32:37

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

Re: [SOLVED] Pacman Performance Issue

Well, the install on the desktop was brand new, but they were both working from the same (default) mirror list.  I commented out the first few entries, as well as archlinux.org and a few others that seemed far away from their names, and tried it again.  Same issue.

I thought it might be an issue with the DNS servers, so I tried pinging google, yahoo, and like xmission and a few others that it may not have cached and they all got resolved pretty quick.

Seems very strange.  I remember yum being extremely slow, now that I think about it, but I used Fedora last about 3 years ago now (this was a different building and different internet plan at the time).  Apt seemed quick enough (since Fedora I have been dual-booting Windows and Debian).

We have a fiber optic connection at work, not particularly fast at download but has good upload (more important for us), and we have a local DNS caching server.  It has caused some problems before, but it seems to have been behaving today (and for several months now).

Thanks again, love the forums and I'm glad to be getting Debian off my work PC (strange as it is, I'm more comfortable with Arch now than I am with Debian).

Last edited by mrmylanman (2011-06-02 22:37:02)


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#6 2011-06-03 04:30:35

kofrad
Member
From: South Florida, USA
Registered: 2011-05-15
Posts: 45

Re: [SOLVED] Pacman Performance Issue

I'd look at your local dns cache as the problem. I'm currently using pdns with no issues, pacman resolves as quick as it should. However, I tried out another dns cache server at some point, rescached, while using that server I experienced the lag you describe, only on pacman. I never found the root issue to the problem, I only got around it by going back to pdnsd.


Desktop: Arch Linux | AMD Athlon 64 X2 Dual Core 5000+ | 3GB RAM | GeForce 6800 XT 512MB | 1TB+
Audio Studio: XP SP3 | Intel Pentium 4 3GHz Prescott | 1GB DDR | GeForce 6800 128MB | 120GB

Offline

#7 2011-06-03 11:06:29

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

Re: [SOLVED] Pacman Performance Issue

I'll look into setting that up on my work PC and see if it improves the situation.  Thanks for the heads up, I haven't heard of that software before, only bind and dnsmasq


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#8 2011-06-03 12:04:10

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

Re: [SOLVED] Pacman Performance Issue

So I got to work just now, and I found that Gnome hasn't finished downloading yet, and so I set up pdnsd.  DNS queries are quick and responsive (not 1ms for subsequent queries, but around 15, so I'm not sure).  The issue with pacman is still ocurring.


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

#9 2011-06-03 12:41:31

mrmylanman
Member
From: Altamonte Springs, FL, USA
Registered: 2011-03-13
Posts: 178

Re: [SOLVED] Pacman Performance Issue

Since I am not sure how to get logging information out of pacman aside from "installing xxxxxx", I decided to try out wget as the xfer command, and found out that I am indeed a bonehead.  I chose kernel.org as the mirror during installation, and I did not realize it left that in the pacman mirrorlist (I don't think it's there on my laptop so maybe I did delete that additional line at some point).  Anyhow, now it's pulling from Georgia Tech and it's going perfectly fine now.

Problem solved!


Arch user since 2011-03-13

Thinkpad X220 Intel Core i7-2640M CPU, 16GB DDR3-1333 RAM, 160GB Intel SATA II SSD & 60GB OCZ mSATA SSD, 12.5" IPS 1366x768 Display, 6-cell Battery
(Installation date:  2012-03-19)

Offline

Board footer

Powered by FluxBB