Mogens Kjaer escreveu:
Vinicius wrote:
Hello,
time yum --help takes: real 0m7.125s user 0m0.404s sys 0m0.039s
rpm -q yum: yum-2.1.12-0.fc3
Why, please?
You can do a:
strace -t -o/tmp/yum.log yum --help
and look in the /tmp/yum.log file where the bottleneck is.
Mogens
I see several lines as "open("/usr/lib/python2.3/lib-dynload/yum.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)" for example.
Is it relevant?
In my output, what seems more relevant is that it appears to be connecting to the mirror and downloading information. That seems wrong for a help request (yum --help). Here are the relevant lines:
13:15:11 connect(4, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("209.132.177.50")}, 16) = 0
13:15:11 send(4, "GET /download/mirrors/updates-te"..., 136, 0) = 136