You are not logged in.
Imagine staring at the following console output for 4 minutes:
# pacman -Su
:: Starting full system upgrade...The worst is that it causes a lot of I/O, making the whole system noticablly slower.
Same thing when I try to install/remove/query a package.
Running it a second time is faster, so I guess something is cached there.
Pacman-optimize does not help.
What could be the problem here?
(It has nothing to do with download speed. At that point nothing is being downloaded.)
Last edited by ermin (2009-09-18 04:23:41)
Offline
what's your file system?
Offline
Filesystem is ext3
Offline
The pacman database is a bunch of scattered files in /var/lib/pacman/, and if your disk is particularly slow and the files aren't laid out well, it can require a lot of random access to pull all of these files into filesystem cache. RAM helps a lot here; it also helps if you aren't maxing out your memory in use by programs and have plenty left for the cache and buffers.
Offline
try deadline scheduler, that will probably help as far as system responsiveness goes
Offline
Thanks.
The deadline I/O scheduler really helped. I didn't have time to test it extensively, but it seems like the whole system is more responsive.
Here and here are links with more information on I/O schedulers and how to switch them.
Edit: Bonus points to the one who can give a simple explanation as to why it helped.
Last edited by ermin (2009-09-18 04:27:10)
Offline
Wasn't there a pacman db optimiser of some sort floating around?
btw: I guess this is a good idea to have /var on a separate partition
Last edited by sand_man (2009-09-18 06:32:47)
![]()
Offline
could /var be stored in RAM ** safely ** ?
should I do something like this ?
http://wiki.archlinux.org/index.php/Ramdisk
thanks
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
could /var be stored in RAM ** safely ** ?
should I do something like this ?
http://wiki.archlinux.org/index.php/Ramdiskthanks
Sure why not.
![]()
Offline
k thanks
![]()
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
I read nooms method to improve the pacman speed. Also using some download accelerator (XferCommand) will improve the pacman speed. The filesystem as mentioned by bangkok_manouel plays a role. In my experience resierfs is very nice for /var partition.
Offline
I'm also using the "pacman DB in a file" AKA "pacman-cage" method, except I'm using reiserfs on my loopback image rather than plain ext2. You wouldn't think that would work so well, but it really does.
Offline
I read nooms method to improve the pacman speed. Also using some download accelerator (XferCommand) will improve the pacman speed. The filesystem as mentioned by bangkok_manouel plays a role. In my experience resierfs is very nice for /var partition.
There is a script to automate the whole process here. It should be a bit more secure than doing it yourself.
Offline