-
Notifications
You must be signed in to change notification settings - Fork 304
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
Performance issues when tracking logged in users #5254
Comments
We'll try to recreate this, thanks for reporting @harishbalachandran ! |
Hi @harishbalachandran, we tried replicating this on our side -- this sounds like a performance issue, especially since it is only showing up when 16/26 users are experiencing this. 0.16.8 has additional performance tweaking options available. Can you add the following lines to your CONTENT_DB_SQLITE_PRAGMAS = [("journal_mode", "MEMORY"),
("temp_store", "2")] That makes the content db run its journals in memory, speeding up reads and writes to the content database. Since this bug is related to the KA topic tree (stored in the content db), it should provide some speedups for your use case. If the issue still persists, it would help if @amarkamthe can take a look at the device in question and gather some more statistics for us. |
@harishbalachandran - do you have any additional info for us to work with? As @aronasorman noted, it's probably a performance issue. Can you retrieve the |
@benjaoming @aronasorman , |
@harishbalachandran I would never close such a beautiful issue report without finding an explanation / fix :) |
Hey there, did you manage to find more data on the issue? I'm bumping it to 0.17, but don't feel discouraged, it's just that there's some other important fixes that we need to get out there! :) |
Hey @benjaoming I guess this is pretty much same as 5317. If faced this during the upgrade from 0.16.5 to 0.16.8, and now we are facing the same for any upgrade from one version to other. |
@harishbalachandran IMO #5317 is a release blocker and very important to get fixed (thanks for reporting it!!), whereas this issue ATM is impossible to fix because it's too hard to understand what the problem is. Did you try @aronasorman 's suggested SQLite pragma settings? |
Commit 688b0e2 which is merged into |
We have deployed dozens of RACHEL Plus servers in schools in Liberia where they typically have about 50 students in a math classroom. We share one laptop between two students, so that means up to 25 laptops logged into KA-Lite at once. We have upgraded to KA-Lite 0.16.9, and have also made the modification to move all the KAL database from the internal eMMC to the 50GB HDD which supposedly has faster write speeds, but we still are having performance issues. We may be somewhat unique in that we are depending heavily upon the student tracking and progress stats so that we can correlate any improvement in math scores with the amount of time spent and exercises completed in Ka-Lite. |
@L-Amstutz - thanks for sharing detailed feedback! It does sound like we need to introspect our memory and processing footprints more in detail with special attention to content logging and calculation of recommendations from the topic tree. I would think we should pay special attention to:
When re-creating the issue with many users hitting the same server, we should also try to isolate the issue once it starts occurring to better understand its nature. For instance, does it happen - as you say - that loading the next exercise is slow, or is this page slow because another page view has made the system stall? As I said in my above comment, I've already implemented a fix to a problem that did indeed use 100% CPU once it started occurring. So at this point, there's already hope that the 0.17 series has fixed it... but it seems it's going to be difficult to verify :) |
Ben, are there any other server stats that I should include in the list of “dstat plugins” to run when we do our stress test? Intel CAP support has suggested the ones I used which include CPU usage, RAM memory, Paging, Network I/O, Disk I/O, and “most expensive” processes. If you want to take a list at all the dstat options ( http://www.tecmint.com/wp-content/pdf/dstat.pdf ) and find if there are any other logs that would be helpful, I would be glad to include them in our test runs.
Leon
From: Benjamin Bach [mailto:[email protected]]
Sent: Tuesday, December 27, 2016 2:53 PM
To: learningequality/ka-lite <[email protected]>
Cc: Leon Amstutz <[email protected]>; Mention <[email protected]>
Subject: Re: [learningequality/ka-lite] Investigating possibly downgraded performance in 0.16.8 (#5254)
@L-Amstutz<https://github.com/L-Amstutz> - thanks for sharing detailed feedback! It does sound like we need to introspect our memory and processing footprints more in detail with special attention to content logging and calculation of recommendations from the topic tree.
I would think we should pay special attention to:
1. Our logging calls via javascript. They hit a couple of different API end points registering student progress.
2. Pages that use the data and whether they cause endless loops etc.
When re-creating the issue with many users hitting the same server, we should also try to isolate the issue once it starts occurring to better understand its nature. For instance, does it happen - as you say - that loading the next exercise is slow, or is this page slow because another page view has made the system stall?
As I said in my above comment, I've already implemented a fix to a problem that did indeed use 100% CPU once it started occurring. So at this point, there's already hope that the 0.17 series has fixed it... but it seems it's going to be difficult to verify :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#5254 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/APpS_rOmfReMW9UEkHeFGJq8Cr2IRv3Eks5rMWyfgaJpZM4JeRMA>.
|
Hi @L-Amstutz - I'm not familiar with dstat, but if it only does analysis per process, then it cannot help us troubleshoot because everything is happening inside the You could try looking at your |
Summary
The topic tree, videos and exercise are not loading on the tablets which are connected to KA lite hotspot using the Wifi Dongle.
There were 26 students accessing KA lite and almost 16 faced this problem where they were not able to access the content since their topic tree, videos and exercises were not loading.
**Note: The server was upgraded from 0.16.5 to 0.16.8 using the following two commands:
We did not face these problems in version 0.16.5 and close to 35 users were able to access the content very smoothly.**
System information
OS: Ubuntu version 14.04 LTS
Installer: "pip install ka-lite" and "sudo kalite manage setup"
Version: 0.16.8 upgraded from 0.16.5
Screenshots
The text was updated successfully, but these errors were encountered: