[pacman-dev] Variable execution time for pacman -Qdt?

Eli Schwartz eschwartz at archlinux.org
Tue Aug 8 11:51:51 UTC 2017


On 08/08/2017 05:44 AM, Will S wrote:
> I have noticed that the first time I run pacman -Qdt after not running it
> for a while it can take a variable amount of time -- usually at least 20
> seconds and as long as one minute. If I run it again shortly after that it
> completes in less than a second. Is there a simple explanation for this
> variation? I have 1705 packages installed and pacman -Qdt lists 26.
> 
> The reason I'd like it to be fast is that yaourt calls this command before
> a system update, so I get a 20-60 second lag before being prompted for my
> password for sudo pacman -Syu.

Because the second time, /var/lib/pacman/local/ is in your HDD's disk
cache due to those files having been accessed so recently.

But that much lag is pretty unusual.

-- 
Eli Schwartz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20170808/e2d10ed0/attachment.asc>


More information about the pacman-dev mailing list