atomic icon indicating copy to clipboard operation
atomic copied to clipboard

`atomic host status` is 50x slower than `rpm-ostree status`

Open cgwalters opened this issue 8 years ago • 1 comments

[root@host-172-16-171-196 ~]# time rpm-ostree status
State: idle
Deployments:
● rhel-atomic-host:rhel-atomic-host/7/x86_64/standard
             Version: 7.3.5 (2017-05-22 22:00:44)
              Commit: 0ccf9138962e5c2c3794969a228e751d13bb780f5b0a1f15f4a9649df06ba80a

real    0m0.014s
user    0m0.004s
sys     0m0.007s
[root@host-172-16-171-196 ~]# time atomic host status
State: idle
Deployments:
● rhel-atomic-host:rhel-atomic-host/7/x86_64/standard
             Version: 7.3.5 (2017-05-22 22:00:44)
              Commit: 0ccf9138962e5c2c3794969a228e751d13bb780f5b0a1f15f4a9649df06ba80a

real    0m0.708s
user    0m0.653s
sys     0m0.045s
[root@host-172-16-171-196 ~]# 

Simply starting the Python interpreter is still 4x slower than rpm-ostree status, but it's nowhere near as bad:

[root@host-172-16-171-196 ~]# time python -c 'print "hello"'
hello

real    0m0.045s
user    0m0.038s
sys     0m0.007s

So it's something slow in the atomic command.

cgwalters avatar Jun 28 '17 14:06 cgwalters

I'll look into it

baude avatar Jun 28 '17 14:06 baude