[Bug 1882986] Re: open-iscsi is slowing down the boot process
Zakhar
1882986 at bugs.launchpad.net
Sun Jun 21 16:00:38 UTC 2020
(Please disconsider the previous post, the "targets database" was
corrupted)
-------------------
Steps to reproduce:
-------------------
- With VirutalBox running on top of Ubuntu Destktop 20.04, create a new Virtual machine
- Install Ubuntu Desktop 20.04 on the new guest (minimal install is Ok)
- sudo apt update
- sudo apt upgrade
- sudo install open-iscsi
- shutdown the guest
- Unplug the network cable on the Network interface of your guest (this simulates a Network-ready delay)
- Start the guest
- systemd-analyze
I did that 3 times to have an average:
Graphical / Total
31.528 / 33.155
31.471 / 33.151
31.490 / 33.150
- Now disable the 3 iscsi services/sockets:
- sudo systemctl disable iscsid.socket iscsid.service open-iscsi.service
- Shutdown again and repeat the 3 measures
Graphical / Total
25.516 / 27.153
25.512 / 27.139
25.526 / 27.157
So I guess there is a regression on bug #1755858, because here we run with an empty database, where the "optimisation" should have kicked in and prevented from loading the "slow bits" (as it is described in bug #1755858)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to open-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/1882986
Title:
open-iscsi is slowing down the boot process
Status in open-iscsi package in Ubuntu:
New
Bug description:
This is not a bug, but rather an "optimisation" request.
(Probably set this as "enhancement request" + Low)
Apparently, the package is assuming the user will need some iscsi
mounts for his session, and is putting dependencies in the systemd
services/targets which effects are to delay "graphical.target" to
after the point when the network is online.
A great job has been done by Ubuntu so that the O.S. appears to be
"snappy" from the boot, and when the session is in "auto-login", it
really makes a great difference and a good feeling of the system being
very quick.
This assumption of open-iscsi sort of ruins that effort.
As an example, on my PC the graphical target is delayed 10 seconds
more (was 22 seconds and is now 32). The impression is not as good and
the system feels "slow again" (although it is just a feeling!)
Step to reproduced (you don't even need to have iscsi LUNs to to so, just install the package!)
- Start from a clean 20.04, boot up and issue: systemd-analyze
- Now install open-iscsi, reboot and issue again: systemd-analyze
The result will probably be a big impact on "graphical target",
although total time does not change a lot.
My usage is not needing iscsi targets for my session.
I have a NAS with iscsi LUNs, and when I need those mounts, I just start them with a command.
sudo iscsiadm -m node -l
Then Gnome recognises a new disk has been inserted and does an "auto mount".
This command works whether the service was started or not.
This wrong assumption is easily fixed in my case with this command:
sudo systemctl disable iscsid.socket iscsid.service open-iscsi.service
Then, at the next reboot the graphical target is snappy again, and does not have to wait for network-online and remote-fs targets.
I don't know what can be done to cope with both situations : those who
need an iscsi target mounted for their session, and those who don't...
but I guess the philosophy now should be to assume the user does not
need such targets, and don't put dependencies that delay the snappy
boot process.
For those who need those mounted remote fs for their session, detailed
help on how to enable iscsi services at startup should be provided.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1882986/+subscriptions
More information about the foundations-bugs
mailing list