Last modified: 2014-10-31 00:24:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72421, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70421 - Audit base install to see if resource footprint can be reduced
Audit base install to see if resource footprint can be reduced
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Bryan Davis
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-04 22:14 UTC by Bryan Davis
Modified: 2014-10-31 00:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bryan Davis 2014-09-04 22:14:34 UTC
THere has been some discussion on irc of the runtime resource consumption of a "normal" MediaWiki-Vagrant install. It seems like time to spin up a brand new VM and do a process by process inspection of the resources that are being used with an eye to removing things that unnecessary.
Comment 1 Bryan Davis 2014-09-04 22:14:52 UTC
Should be a fun evening of detective work.
Comment 2 Bryan Davis 2014-09-10 05:47:48 UTC
Start a clean vm:
* vagrant destroy -f
* vagrant reset-roles
* vagrant up
* vagrant ssh

Check resources in use:

$ ps ax|wc -l
95

$ free -m
             total       used       free     shared    buffers     cached
Mem:           993        839        154          8         36        510
-/+ buffers/cache:        292        701
Swap:            0          0          0

Top memory use:
8.2% hhvm --mode=server
6.1% php /srv/jobrunner/redisJobRunnerService
5.4% mysql
2.1% apache
0.7% redis-server

The ram consumed by the 2 idle hhvm containers is an obvious target to find improvements for. (The php that is running the jobrunner is just hhvm in disguise.)

I have seen `puppet agent` running occasionally too, but not consistently.
Comment 3 Gerrit Notification Bot 2014-09-17 03:50:02 UTC
Change 160908 had a related patch set uploaded by BryanDavis:
Disable puppet service

https://gerrit.wikimedia.org/r/160908
Comment 4 Gerrit Notification Bot 2014-09-23 21:38:09 UTC
Change 160908 merged by jenkins-bot:
Disable puppet service

https://gerrit.wikimedia.org/r/160908
Comment 5 Bryan Davis 2014-09-23 22:11:24 UTC
(In reply to Bryan Davis from comment #2)
> 
> I have seen `puppet agent` running occasionally too, but not consistently.

This should be fixed by https://gerrit.wikimedia.org/r/160908
Comment 6 Gerrit Notification Bot 2014-09-24 16:46:56 UTC
Change 162631 had a related patch set uploaded by BryanDavis:
Do not start puppet agent in Labs

https://gerrit.wikimedia.org/r/162631
Comment 7 Gerrit Notification Bot 2014-09-26 17:20:04 UTC
Change 162631 merged by jenkins-bot:
Do not start puppet agent in Labs

https://gerrit.wikimedia.org/r/162631
Comment 8 Bryan Davis 2014-10-31 00:24:19 UTC
There is probably more that can be done on this front, but short of changing the jobrunner to use php5 instead of hhvm I don't see any easy wins.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links