Bug 916794
Summary: | pulp-admin orphan list, Performance & Memory concerns (~17 minutes and consuming consuming ~1.65GB memory) | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | John Matthews <jmatthew> |
Component: | user-experience | Assignee: | Jason Connor <jconnor> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | jason.dobies, mmccune, skarmark |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 2.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-04-08 16:02:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John Matthews
2013-02-28 22:40:36 UTC
Restarted Apache and Mongo No other operations were run root 7728 0.1 0.0 206560 5836 ? Ss 17:45 0:00 /usr/sbin/httpd apache 7730 1.0 0.5 1048808 41124 ? Sl 17:45 0:00 \_ (wsgi:pulp) apache 7731 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7732 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7733 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7734 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7735 0.0 0.0 208212 6096 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7736 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7737 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7738 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd mongodb 7792 1.3 0.4 775900 32548 ? Sl 17:46 0:00 /usr/bin/mongod --quiet -f /etc/mongodb.conf run # time pulp-admin orphan list &> orphan.list real 17m46.740s user 16m12.143s sys 0m9.459s root 7728 0.0 0.0 206560 5836 ? Ss 17:45 0:00 /usr/sbin/httpd apache 7730 4.5 22.0 2752916 1689444 ? Sl 17:45 1:01 \_ (wsgi:pulp) apache 7731 0.0 0.0 208212 6096 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7732 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7733 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7734 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7735 0.8 2.6 407172 206324 ? S 17:45 0:11 \_ /usr/sbin/httpd apache 7736 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7737 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd apache 7738 0.0 0.0 208212 6092 ? S 17:45 0:00 \_ /usr/sbin/httpd mongodb 7792 1.2 4.6 1741588 356424 ? Sl 17:46 0:16 /usr/bin/mongod --quiet -f /etc/mongodb.conf run Saw memory consumption in wsgi process jump quickly from: ~1.0GB/.040GB to ~2.7GB/1.7GB Roughly 1.65GB diff from running this query. My thoughts: 1) Possible issue with performance of "pulp-admin orphan list", maybe some mongo queries need to be tuned. 2) Issue in comment #0 about seeing MemoryError was probably hit since after the initial sync we were already consuming close to ~6GB of memory. Interesting how it looks like running a removal on the orphan packages was much quicker: ~1 minute opposed to when I ran a list ~17minutes. I kicked off a pulp-admin orphan remove --all # pulp-admin tasks list +----------------------------------------------------------------------+ Tasks +----------------------------------------------------------------------+ Operations: Resources: orphans (content_unit) State: Successful Start Time: 2013-02-28T23:21:20Z Finish Time: 2013-02-28T23:22:25Z Result: N/A Task Id: bd47d4ee-7cff-41ed-b181-a334480765a7 John's looking into if this occurs when passing the -s flag. My suspicion is that the sheer amount of units that were orphaned when he ran this was crushing the JSON serialization. The remove not only has to run the same query but delete files on disk, which leads me to believe the query is performing fine and the issue is elsewhere. If the summary view turns out to be as efficient as I'm hoping, this bug will turn into changing the default view for orphan list to be the summary and adding a --details option if the user is suicidal. I changed the way orphans are looked up and the amount of data that gets gathered with each orphan. Changes in master and pulp-2.1 build: 2.1.0-0.25.beta moving to verified [root@cloud-qe-8 ~]# rpm -q pulp-server pulp-server-2.1.0-0.26.beta.noarch [root@cloud-qe-8 ~]# [root@cloud-qe-8 ~]# time pulp-admin orphan list +----------------------------------------------------------------------+ Summary +----------------------------------------------------------------------+ Distribution: 1 Erratum: 44 Package Category: 10 Package Group: 202 Rpm: 4477 Total: 4734 real 2m1.260s user 0m1.003s sys 0m0.059s [root@cloud-qe-8 ~]# [root@cloud-qe-8 ~]# ps auxf | grep wsgi root 23795 0.0 0.0 103244 824 pts/1 S+ 16:40 0:00 \_ grep wsgi apache 23753 3.2 0.2 1197348 48724 ? Sl 16:39 0:01 \_ (wsgi:pulp) [root@cloud-qe-8 ~]# pmap -d 23753 | tail -n 1 mapped: 1197348K writeable/private: 255104K shared: 996K [root@cloud-qe-8 ~]# pmap -d 23753 | tail -n 1 mapped: 1197348K writeable/private: 255368K shared: 996K [root@cloud-qe-8 ~]# Pulp 2.1 released http://www.pulpproject.org/2013/04/05/pulp-2-1-0-released/ |