You are not logged in.

#1 2007-05-22 17:48:43

moon_dog
Member
Registered: 2007-05-05
Posts: 23

pacman lag

pacman lags the first time i use it after a boot, or if i haven't used it in a bit, say 30 minutes.  i'll enter a command (ex. pacman -S xxxx), and it will pause for about 1 minute then ask for confirmation.  the next few times i use it it's really quick to respond, and goes back to being laggy if i don't use it for a while.

Offline

#2 2007-05-22 20:35:42

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: pacman lag

Sounds like the old pacman (v2) to me. You sure you've upgraded properly?

pacman -V

"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#3 2007-05-22 22:13:40

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacman lag

No, this is actually "normal" - pacman uses thousands of tiny files on disk, which causes a decent lag the first time they are used, due to the disk seek time.  Still, 1 minute is excessive - here the initial lag is only around 10-15 seconds.  This *is* being worked on, but for now most people either
a) optimize the partition that pacman is on
b) throw some tricks at it

For (a), can you tell me what filesystem /var is on your system?  If it's ext3, you can turn on dir_index and noatime on that partition, which will speed it up significantly.

For (b), you can do something like, add "pacman -Ss initializing > /dev/null" or something to rc.local, which will do that first load of all files when your machine boots... it's crappy, but it does work.

Offline

#4 2007-05-25 14:14:12

moon_dog
Member
Registered: 2007-05-05
Posts: 23

Re: pacman lag

hey phrakture, my filesystem should be ext3.  how do i turn on dir_index and noatime?

Offline

#5 2007-05-25 16:07:27

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Offline

Board footer

Powered by FluxBB