Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ceph-volume: decrease number of pvs calls in lvm list #46753

Merged
merged 1 commit into from Jul 5, 2022

Conversation

guits
Copy link
Contributor

@guits guits commented Jun 20, 2022

current implementation of List.create_report() implies a lot of calls
to pvs process. This could be avoided.

current implementation:

>>> import timeit
>>> from ceph_volume.devices.lvm.listing import List
>>> timeit.timeit(List([]).main, number=1000)

...

93.03700458299136

new implementation:

>>> import timeit
>>> from ceph_volume.devices.lvm.listing import List
>>> timeit.timeit(List([]).main, number=1000)

...

62.16391600697534

In this example, it improves performance by ~30%

Fixes: https://tracker.ceph.com/issues/56127

Signed-off-by: Guillaume Abrioux gabrioux@redhat.com

@guits guits requested a review from a team as a code owner June 20, 2022 12:14
@guits guits changed the title ceph-volume: decrease number of pvs call in lvm list ceph-volume: decrease number of pvs calls in lvm list Jun 20, 2022
current implementation of `List.create_report()` implies a lot of calls
to `pvs` process. This could be avoided.

current implementation:
```
>>> import timeit
>>> from ceph_volume.devices.lvm.listing import List
>>> timeit.timeit(List([]).main, number=1000)

...

93.03700458299136
```

new implementation:

```
>>> import timeit
>>> from ceph_volume.devices.lvm.listing import List
>>> timeit.timeit(List([]).main, number=1000)

...

62.16391600697534
```

In this example, it improves performance by ~30%

Fixes: https://tracker.ceph.com/issues/56127

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
@guits
Copy link
Contributor Author

guits commented Jun 23, 2022

jenkins test ceph-volume tox

@adk3798
Copy link
Contributor

adk3798 commented Jul 1, 2022

https://pulpito.ceph.com/adking-2022-07-01_05:11:14-orch:cephadm-wip-adk-testing-2022-06-30-2110-distro-default-smithi/

4 Failed tests from

Command failed on smithi162 with status 123: "find /home/ubuntu/cephtest/archive/syslog -name '*.log' -print0 | sudo xargs -0 --no-run-if-empty -- gzip --"

and 1 dead test from

{'smithi050.front.sepia.ceph.com': {'attempts': 12, 'censored': "the output has been hidden due to the fact that 'no_log: true' was specified for this result", 'changed': True}}

I believe these are all infra issues and I did see these same failures in another run with different PRs (and notably, not on the same tests) in
https://pulpito.ceph.com/adking-2022-07-01_05:08:10-orch:cephadm-wip-adk3-testing-2022-06-30-2111-distro-default-smithi/

Quite confident the failures are unrelated to PRs in the run, so I think we're good here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants