Skip to content
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

Improve edX Performance #55

Closed
usernamenumber opened this issue May 7, 2015 · 2 comments
Closed

Improve edX Performance #55

usernamenumber opened this issue May 7, 2015 · 2 comments

Comments

@usernamenumber
Copy link
Contributor

_Note:_ You will need access to a cubietruck mini-pc to help with this directly, but advice is always welcome!

edX and edX portal are both now working on the cubietruck, but each take ~20 seconds to load. This needs to be improved.

@usernamenumber usernamenumber added this to the Initial test deployment milestone May 7, 2015
@usernamenumber
Copy link
Contributor Author

Advice from @natea:

"""
You might want to take a look at this page which provides some tips on
improving performance / memory consumption of edX.
http://ianhowson.com/open-edx-reducing-memory-consumption.html

Also, do you have adequate swap space configured on the Linux partition?
"""

@usernamenumber
Copy link
Contributor Author

Success! (or at least improvement)

LMS and CMS on my cubie now take a little over 10 seconds to load the first time, but after that they load in as little as _2-5 seconds_. I would still like to get independent verification of this, but that can be done under #34, so I'll mark this one as done.

I made the following changes:

  • Tweaked the edX config in the base image so that LMS starts 2 workers instead of 4
  • Added some sysctl tweaks recommended on the cubietruck forums to the provisioning system
  • Added a script that sets up a swapfile (cubietruck default setup has no virtual memory!), and a step to run it in the setup instructions

The latter two changes can be seen in cadf142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant