-
Notifications
You must be signed in to change notification settings - Fork 311
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
Dbus linking function is quite expensive #189
Comments
Should this be filed against fleet? There's no default set here.. |
I thought anyone using it could benefit from it. But, yeah, I'll file it against fleet. Thanks @jonboulle for your quick reply. |
@hectorj2f I just don't really get what you're proposing here in go-systemd - that we have another helper function that sets it to false by default? |
@jonboulle My intention is detailed in the following points:
I just wanted to discuss these aspects with the developers of this library. |
@jonboulle I see no interest here so we can close this issue ;). I'd think about adding this change to fleet in https://github.com/coreos/fleet/blob/master/systemd/manager.go#L268. |
Hello there,
I am trying to improve the performance of
dbus
methods and I realized that the linking operation is quite expensive. This operation becomes a bottleneck whenever you need tolink-start
many systemd units. In fact, the response time increases over the time whenever you want to link multiple units.As a result of my investigation, I found that the force
(force=true)
property of thedbus
function doesn't bring any benefit (when using the latest version of dbus). It is true that theforce
property set totrue
could bring some consistency in case of race condition. However, I think it should be configured to befalse
to offer a better performance.What is it your impression ? The improvements in terms of performance are in the order of seconds and could change the complexity of this operation.
Why did you decide to define
force=true
as default ?Thanks.
The text was updated successfully, but these errors were encountered: