Repository navigation
Closed
Labels
bugbroken, incorrect, or confusing behaviorseverity-high2nd top severity, seen by most users, causes major problems
Milestone
Description
Description
After upgrading 3001 to 3002 massively increased runtime for highstates has been observed.
A 3001 minion highstate:
[root@bb2 ~]# time salt-call state.highstate
...
Summary for local
--------------
Succeeded: 259 (changed=4)
Failed: 0
--------------
Total states run: 259
Total run time: 90.437 s
real 2m22.719s
user 0m23.485s
sys 0m3.956s
[root@bb2 ~]#
The same host once the minion and the master have been upgraded to 3002:
[root@bb2 ~]# time salt-call state.highstate
...
Summary for local
Summary for local
--------------
Succeeded: 255 (changed=4)
Failed: 1
--------------
Total states run: 256
Total run time: 279.516 s
real 9m33.315s
user 0m22.670s
sys 0m3.968s
[root@bb2 ~]#
The failure was a service error:
----------
ID: service_iptables
Function: service.running
Name: iptables
Result: False
Comment: Running scope as unit run-15222.scope.
Job for iptables.service failed because the control process exited with error code. See "systemctl status iptables.service" and "journalctl -xe" for details.
Started: 23:01:31.466069
Duration: 97.186 ms
Changes:
Possibly unrelated...
Setup
Salt Version:
Salt: 3001.1
Dependency Versions:
cffi: 1.13.0
cherrypy: 5.6.0
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.11.1
libgit2: Not Installed
M2Crypto: 0.35.2
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.2
mysql-python: 1.3.12
pycparser: 2.19
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.6.8 (default, Apr 2 2020, 13:34:55)
python-gnupg: Not Installed
PyYAML: 3.13
PyZMQ: 17.0.0
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.4
System Versions:
dist: centos 7 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-1127.19.1.el7.x86_64
system: Linux
version: CentOS Linux 7 Core
Master and Minion are using the same stack, when running on 3002 the libraries are unchanged.
Downgrading to 3001 resolves the issue.
Metadata
Metadata
Assignees
Labels
bugbroken, incorrect, or confusing behaviorseverity-high2nd top severity, seen by most users, causes major problems
Activity
ixs commentedon Oct 22, 2020
@cachedout as requested on slack...
garethgreenaway commentedon Oct 22, 2020
@ixs Thanks for the report. Can you provide an example of the state where you're seeing these slow times?
ixs commentedon Oct 23, 2020
@garethgreenaway not really. It's a highstate run with a bunch of basic states plus third party formulas and a lot of pillars.
I'm trying to recreate the problem inside a venv right now so that I can come up with a test for git bisect...
ixs commentedon Oct 25, 2020
Deleted the last two comments because I was following down a wrong path there looking at runtime.
What needs to be looked at instead is memory consumption.
I wrote a quick shell script that bascially does the following:
python setup.py sdist
Build a RPM from it using the regular salt SPEC file.
Install that on my master.
run /usr/bin/time -v on salt-master and salt-minion. Run salt-call state.highstate on the master itself.
Then compare the memory consumption of both. 3001 was always under 110MB and 3002 was always above.
Git bisect says, 5c15def is the first bad commit.
comparing the previous commit and that one shows a striking difference in memory consumption:
ixs commentedon Oct 25, 2020
It might be worthwhile to check that #58785 and this issue are not about the same underlying issue. Increased memory consumption (90MB vs. 200MB) on a 10min runtime is pretty extreme and could be seen as a memory leak...
ixs commentedon Oct 25, 2020
Running a second
git bisectround and keeping the log files from my salt run, shows a pretty clear increase in memory consumption with commit 5c15def.[-][BUG] Massive performance regression with 3002[/-][+][BUG] Memory regression with 3002[/+]ixs commentedon Oct 25, 2020
For reference: Test scripts, git bisect built RPMS and the logs containing runtime info from GNU time are at https://github.com/ixs/salt-58791
ixs commentedon Oct 25, 2020
Reverting the following changes brings memory consumption back down to 90MB.
GNU time says Maximum resident set size (kbytes): 91688 which is fine.
I'd recommend rolling a 3002.1 release ASAP.
RPMS and a python sdist tarball and logs is at https://github.com/ixs/salt-58791/tree/master/archive/fba062ce8e96d9fe657fdc7cc8ce808cc7a4aacd
ixs commentedon Oct 25, 2020
@OrangeDog @whytewolf @tuxthepenguin84 @Arderos @jbouter Have a look at https://github.com/ixs/salt-58791/tree/master/archive/fba062ce8e96d9fe657fdc7cc8ce808cc7a4aacd and feel free to try out the centos7 RPMS there or the salt tarball.
That has regular memory consumption for me, I bet it also fixes your issues.
garethgreenaway commentedon Oct 27, 2020
@ixs Thanks for the report. It's likely that the cause is the same as in #58785 and the fix in #58811 will solve this issue. We're planning for the 3002.1 release early next week.
20 remaining items
dwoz commentedon Jun 4, 2021
@ixs Can you confirm this has been resolved with 3002.2?
garethgreenaway commentedon Mar 6, 2023
Closing this out with the assumption that the fix went into 3002.2. If the issue persists please let us know.