You are not logged in.

#1 2010-12-07 21:06:53

Nanthiel
Member
From: Slovenia
Registered: 2009-09-20
Posts: 148

[Solved] Pacman extremely slow after pacman-optimize

Hello everyone,

I have the problem described in the subject.
After running pacman-optimize for the first time, pacman got really slow when doing any database things.

Help would be greatly appreciated,
Matej

Last edited by Nanthiel (2010-12-08 11:17:14)

Offline

#2 2010-12-07 23:25:39

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

Re: [Solved] Pacman extremely slow after pacman-optimize

Try it again.   All pacman-optimize does is creates a tarball of you database and tries to re-extract it again.  Hopefully that gets it in one contiguous block of disk space, but if your disk is full that becomes less likely and it can actually get more spread out...

Offline

#3 2010-12-08 11:16:46

Nanthiel
Member
From: Slovenia
Registered: 2009-09-20
Posts: 148

Re: [Solved] Pacman extremely slow after pacman-optimize

Thanks, that seemed to do the job! I was sceptic at first, as I've already done that about twice.

I also ran pacman -Sc, as the cache was already eating half my / partition.

Offline

#4 2010-12-08 11:23:02

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

Re: [Solved] Pacman extremely slow after pacman-optimize

Ah.... the pacman -Sc would have freed up some nice contiguous blocks for the database to go on.

As an aside, this will be much less of an issue when pacman-3.5 is released.

Offline

#5 2010-12-08 12:23:05

Nanthiel
Member
From: Slovenia
Registered: 2009-09-20
Posts: 148

Re: [Solved] Pacman extremely slow after pacman-optimize

How so, if I may ask?

Offline

#6 2010-12-08 12:34:37

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

Re: [Solved] Pacman extremely slow after pacman-optimize

The sync databases will be one tar file instead of hundreds of small files and the local database will probably have some files merged that did not need to be separate.  So there will be far fewer files to spread across your harddrive.

Offline

Board footer

Powered by FluxBB