[Systems] Wiki speed (was Re: Wiki account creation OpenID Problem)
Sam P.
sam.parkinson3 at gmail.com
Wed Jun 24 04:02:45 EDT 2015
Hi All,
I just saw that the docker container on freedom that does the
magical-wiki-visual-editor-node-js-service was not running, so that was why
only the edit source thing was working :)
IDK what happened there - did somebody restart docker on freedom? or
restart freedom? all of the containers were down :(
So about the visual editor, here were my tests on wiki-devel (running "time
curl http://wiki-devel.sugarlabs.org/go/Welcome_to_the_Sugar_Labs_wiki >
/dev/null" on sunjammer):
* ~2sec average time with visual editor and all the others
* ~1.5sec without visual editor => probs a bit of network cost, but not the
whole thing
* ~1.7sec without mobile front end (but with VE and all the others)
* ~2sec without the media viewer lightbox (but with VE and all the others)
Don't trust my test results, but it would probably help a little to move
VE together with the rest of the wiki.
It would be pretty cool to containerize or chuck the wiki in a new VM.
That would make it eaiser to move the VE thing onto the same machine.
Moving it onto a newer OS could also let us play with HHVM, which seems to
work nicely with media wiki [1][2].
Thanks,
Sam
[1] Nice CPU Usage graph! http://hhvm.com/blog/7205/wikipedia-on-hhvm
[2] "How we made editing Wikipedia twice as fast"
https://blog.wikimedia.org/2014/12/29/how-we-made-editing-wikipedia-twice-as-fast/
On Mon, Jun 22, 2015 at 5:39 PM Bernie Innocenti <bernie at codewiz.org> wrote:
> On 22/06/15 02:01, Sam P. wrote:
> > Hi Bernie,
> >
> > Maybe it is the VisualEditor? It needs to connect to a nodejs service
> > on freedom (sunjammer is too old to do nodejs). I would think that it
> > would only need the service when visually editing, but who knows.
>
> Likely!
>
> I'd say this gives us one more good reason to move the wiki to a new VM.
>
> > Thanks,
> > Sam
> >
> >
> > On Mon, 22 Jun 2015 2:44 pm Bernie Innocenti <bernie at codewiz.org
> > <mailto:bernie at codewiz.org>> wrote:
> >
> > The wiki takes 3 seconds to render a page even from localhost.
> >
> > During this time, there's some cpu usage from apache, but not 100%,
> > suggesting that php is doing either disk I/O or network I/O. Hmmm...
> >
> > Sebastian: wiki-devel is also slow. Try disabling one extension at a
> > time until you find the culprit.
> >
> > On 21/06/15 23:21, James Cameron wrote:
> > > On Sun, Jun 21, 2015 at 09:52:08PM -0500, Sebastian Silva wrote:
> > >> By the way we've been on a slow link for some time and have felt
> the
> > >> wiki is painfully slow, it would be a good deed to try to
> optimize
> > >> it for slower links - I think likely it is the new fancy
> javascripty
> > >> UIs...
> > >>
> > >> I could only usefully edit it with the old "code" editor.
> > >
> > > Sometimes this is caused by a local configuration or filtering
> > problem
> > > with your service provider.
> > >
> > > To test by exclusion, set up an SSH tunnel to your
> > shell.sugarlabs.org <http://shell.sugarlabs.org>
> > > account:
> > >
> > > ssh -D 9000 shell.sugarlabs.org <http://shell.sugarlabs.org
> >
> > >
> > > Then in Firefox, Preferences, Advanced, Network, Connection,
> > Settings,
> > > set Manual proxy configuration, set SOCKS Host to localhost, and
> port
> > > to 9000, and set SOCKS v5.
> > >
> > > Then test wiki.sugarlabs.org <http://wiki.sugarlabs.org> again.
> > >
> > > For this type of proxy, before login, the Wiki shows IP address of
> > > 2001:4830:134:7:0:0:0:11
> > >
> > > You might also be interested in wikipediafs on Debian.
> > >
> >
> >
> > --
> > _ // Bernie Innocenti
> > \X/ http://codewiz.org
> > _______________________________________________
> > Systems mailing list
> > Systems at lists.sugarlabs.org <mailto:Systems at lists.sugarlabs.org>
> > http://lists.sugarlabs.org/listinfo/systems
> >
>
>
> --
> _ // Bernie Innocenti
> \X/ http://codewiz.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/private/systems/attachments/20150624/dc2327d7/attachment.html>
More information about the Systems
mailing list