You are not logged in.

#1 2014-11-07 03:03:16

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Slow local database access with pacman/AUR[SOLVED]

When I initiate pacman -Syu, during the "Synchronizing package database..." dialogue it lags for way too long. This is not related to the mirrorlist as I've updated the mirrorlist and tried several mirrors and the network is fast but this happens to be related to the local database. Just a few days ago it was really fast but I am not sure what could be causing this lag. I tried "pacman-optimize && sync" as well as "pacman -Scc" and I get the same results. Has anyone else experienced this problem?

Last edited by rg_arc (2014-11-07 22:17:30)

Offline

#2 2014-11-07 07:41:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Slow local database access with pacman/AUR[SOLVED]

Run pacman in verbose or debug mode to see if there are any errors...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-11-07 08:24:38

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Slow local database access with pacman/AUR[SOLVED]

Here is the output of:

# pacman -Syu --debug |& tee paclog.txt

http://ix.io/f5h

Offline

#4 2014-11-07 12:50:02

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Slow local database access with pacman/AUR[SOLVED]

rg_arc wrote:

it lags for way too long.

How long is way too long?

Offline

#5 2014-11-07 14:38:36

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,425
Website

Re: Slow local database access with pacman/AUR[SOLVED]

At the "Synchronizing package database..." stage, it accesses the remote server and three files on your harddrive...   have you tried changing mirrors?

Offline

#6 2014-11-07 15:20:30

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,375

Re: Slow local database access with pacman/AUR[SOLVED]

Isn't there a tool for cleaning up the database? Ah-yes pacman-optimize.

Last edited by nomorewindows (2014-11-07 16:26:40)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#7 2014-11-07 19:49:58

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Slow local database access with pacman/AUR[SOLVED]

Allan wrote:

At the "Synchronizing package database..." stage, it accesses the remote server and three files on your harddrive...   have you tried changing mirrors?

"...This is not related to the mirrorlist as I've updated the mirrorlist and tried several mirrors and the network is fast but this happens to be related to the local database...."

nomorewindows wrote:

Isn't there a tool for cleaning up the database? Ah-yes pacman-optimize.

"..I tried "pacman-optimize && sync" as well as "pacman -Scc" and I get the same results..."

Did you actually read my post?



drcouzelis wrote:
rg_arc wrote:

it lags for way too long.

How long is way too long?

Typically that dialogue lasts for like half a second before going straight to the mirror. This lags for about 15-20 seconds or so. I'm using a SSD too, which is why I think its so strange.

Offline

#8 2014-11-07 19:58:51

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Slow local database access with pacman/AUR[SOLVED]

rg_arc wrote:
Allan wrote:

At the "Synchronizing package database..." stage, it accesses the remote server and three files on your harddrive...   have you tried changing mirrors?

"...This is not related to the mirrorlist as I've updated the mirrorlist and tried several mirrors and the network is fast but this happens to be related to the local database...."

Did you actually read my post?

In Allan's defense, he is the lead developer of pacman, so if anyone knows what might be going on it would be him... smile

Last edited by drcouzelis (2014-11-07 19:59:35)

Offline

#9 2014-11-07 21:19:04

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: Slow local database access with pacman/AUR[SOLVED]

Where does the lag occur?  In the original post you say it's after

When I initiate pacman -Syu, during the "Synchronizing package database..." dialogue it lags for way too long.

but then later you say

Typically that dialogue lasts for like half a second before going straight to the mirror. This lags for about 15-20 seconds or so.

Offline

#10 2014-11-07 21:39:16

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Slow local database access with pacman/AUR[SOLVED]

apg wrote:

Where does the lag occur?  In the original post you say it's after

When I initiate pacman -Syu, during the "Synchronizing package database..." dialogue it lags for way too long.

but then later you say

Typically that dialogue lasts for like half a second before going straight to the mirror. This lags for about 15-20 seconds or so.

I'm referring to the same "Synchronizing package database..." dialogue. I'm watching the internet monitor to see if during that time its pinging the mirrors, but there is no internet activity for a good while. Which suggests it could be related to a lag in accessing the local database on my desktop.

rgedit: I should be more specific. Typically the Synchronizing package database dialogue would take maybe .5 of a second but since about three days ago it is taking much longer. Even after changing the mirrorlist (even switching the top mirror in the mirrorlist file) and issuing the "pacman-optimize && sync" command I still get the same results.

Last edited by rg_arc (2014-11-07 21:42:39)

Offline

#11 2014-11-07 21:45:07

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: Slow local database access with pacman/AUR[SOLVED]

pacman does not access the local database until after it has finished checking the sync databases.  If "Synchronizing package database..." is the last message you see before the lag you have a network/mirror problem not a local database problem.

Offline

#12 2014-11-07 22:18:25

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Slow local database access with pacman/AUR[SOLVED]

Ok I solved it by switching to NetworkManager. I was using the systemd-networkd.service.

Offline

#13 2014-11-07 22:22:42

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: Slow local database access with pacman/AUR[SOLVED]

so this was a DNS issue?

Offline

#14 2014-11-07 22:37:11

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Slow local database access with pacman/AUR[SOLVED]

oliver wrote:

so this was a DNS issue?

I can't be sure exactly what it was. I am assuming networkd was having trouble resolving ipv4/ipv6 maybe? I was using the same DNS NetworkManager is using now Google's DNS servers.

Here is my systemd-networkd service:

[Match]
Name=enp3s0

[Network]
DNS=8.8.8.8
DNS=8.8.4.4
#DNS=109.69.8.34
#DNS=185.16.40.143

[Address]
Address=10.0.0.2/24

[Route]
Gateway=10.0.0.1

Last edited by rg_arc (2014-11-07 22:50:00)

Offline

Board footer

Powered by FluxBB