Not signed in (Sign In)

Not signed in

Want to take part in these discussions? Sign in if you have an account, or apply for one below

  • Sign in using OpenID

Site Tag Cloud

2-category 2-category-theory abelian-categories adjoint algebra algebraic algebraic-geometry algebraic-topology analysis analytic-geometry arithmetic arithmetic-geometry book bundles calculus categorical categories category category-theory chern-weil-theory cohesion cohesive-homotopy-type-theory cohomology colimits combinatorics complex complex-geometry computable-mathematics computer-science constructive cosmology definitions deformation-theory descent diagrams differential differential-cohomology differential-equations differential-geometry digraphs duality elliptic-cohomology enriched fibration foundation foundations functional-analysis functor gauge-theory gebra geometric-quantization geometry graph graphs gravity grothendieck group group-theory harmonic-analysis higher higher-algebra higher-category-theory higher-differential-geometry higher-geometry higher-lie-theory higher-topos-theory homological homological-algebra homotopy homotopy-theory homotopy-type-theory index-theory integration integration-theory k-theory lie-theory limits linear linear-algebra locale localization logic mathematics measure-theory modal modal-logic model model-category-theory monad monads monoidal monoidal-category-theory morphism motives motivic-cohomology nforum nlab noncommutative noncommutative-geometry number-theory of operads operator operator-algebra order-theory pages pasting philosophy physics pro-object probability probability-theory quantization quantum quantum-field quantum-field-theory quantum-mechanics quantum-physics quantum-theory question representation representation-theory riemannian-geometry scheme schemes set set-theory sheaf simplicial space spin-geometry stable-homotopy-theory stack string string-theory superalgebra supergeometry svg symplectic-geometry synthetic-differential-geometry terminology theory topology topos topos-theory tqft type type-theory universal variational-calculus

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome to nForum
If you want to take part in these discussions either sign in now (if you have an account), apply for one now (if you don't).
    • CommentRowNumber1.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 21st 2011

    With the indirect help of Urs, Jacques and I have identified a place where a bit of Instiki takes longer than it should. When a page is saved, then various caches need to be cleared. The “cache bug” that has been referred to from time to time occurs when a page is renamed but the old one remains in the cache. Jacques had some code to sort that out which meant that every time a page was saved, all the pages referring to it also got cleared out of the cache. While this is a reasonable solution, it couldn’t cope with the sheer number of links that Urs puts on pages! In the logs, I was seeing thousands of cached items getting cleared! (Each page has several views and each of those needs clearing, so it’s not necessarily thousands of pages.) Although each item doesn’t take long, add them all up and it’s significant.

    But all that isn’t necessary if the page name doesn’t change. So now Jacques has recoded it so that the general sweep only occurs for a new page or a name change. So for saves that don’t change the name, things should now be a bit quicker - at least for pages that have lots of referring pages. I’d be interested in whether or not this is detectable for anyone … not looking at anyone in particular!

    • CommentRowNumber2.
    • CommentAuthorUrs
    • CommentTimeSep 21st 2011
    • (edited Sep 21st 2011)

    Hi Andrew,

    thanks!! And thanks to Jacques!!

    I’d be interested in whether or not this is detectable for anyone … not looking at anyone in particular!

    Okay, I’ll collect impressions and then let you know.

    • CommentRowNumber3.
    • CommentAuthorTobyBartels
    • CommentTimeSep 21st 2011

    The “cache bug” that has been referred to from time to time occurs when a page is renamed but the old one remains in the cache. Jacques had some code to sort that out which meant that every time a page was saved, all the pages referring to it also got cleared out of the cache.

    Any hope of clearing this up by actually removing the old name from the cache?

    • CommentRowNumber4.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 21st 2011

    As far as I understand it, this should be fixed sine the old name gets expired at page save. What also needs to be cleared are any pages referring to that old name as they should either point to the new name (if the redirect is in place) or have a “non existing wikilink” type link.

    Is the cache bug still in existence, then?

    • CommentRowNumber5.
    • CommentAuthorTobyBartels
    • CommentTimeSep 21st 2011

    I’m pretty sure that I saw it recently, maybe a week ago. I’ll report here the next time that I see it for sure.

    • CommentRowNumber6.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 21st 2011

    After writing that, I encountered one on my course wiki where I wanted to rename a page but since I wanted to use the original page name again, I removed the automatic redirect. The original page remained in the cache. I’ve reported it to Jacques.

    • CommentRowNumber7.
    • CommentAuthorzskoda
    • CommentTimeSep 22nd 2011

    I sometimes do that, I mean remove the automatic redirect when I think that a “bad” trial name did not stick to use yet. So in past I had created the cache bug maybe more often than others did.

    • CommentRowNumber8.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 22nd 2011

    The bug appears to be more subtle than I thought. I can’t recreate it, and nor can Jacques, so please report all instances of the cache bug!

    (In fact, I’ll make a separate discussion for that.)

    • CommentRowNumber9.
    • CommentAuthorTobyBartels
    • CommentTimeSep 23rd 2011
    • CommentRowNumber10.
    • CommentAuthorUrs
    • CommentTimeSep 24th 2011

    I can’t know if the first part of the next sentence is causally related to the second part, but it is nevertheless noteworthy:

    Since yesterday I am in the US and since yesterday the nnLab experience that I have is uncomparably better to what I usually have: it’s quick and nice.

    Is it possible that there is a causal relation here? What’s going on?

    • CommentRowNumber11.
    • CommentAuthorTodd_Trimble
    • CommentTimeSep 24th 2011

    Could be, Urs – I rarely have problems with the nLab, or at least nothing like what you report.

    Where in the US are you?

    • CommentRowNumber12.
    • CommentAuthorUrs
    • CommentTimeSep 24th 2011

    Could be, Urs – I rarely have problems with the nLab, or at least nothing like what you report.

    Okay, interesting. All this is also consistent with two other comments in the other thread.

    • Tom had reported that the Lab often seems slow to him.

    • Toby had reported that the Lab never seems slow to him.

    So that is beginning to explain something. I need to think if this maybe points to some way that I could solve the problem for me (short of moving to the US entirely just for nnLab edits :-).

    Where in the US are you?

    I am once again visiting Hisham. Since he is now in Pittsburgh, I am in Pittsburgh. Just arrived last night.

    • CommentRowNumber13.
    • CommentAuthorFinnLawler
    • CommentTimeSep 24th 2011

    The Lab is often a bit sluggish from Ireland too, although I don't tend to get the very long delays that you describe when saving a page. Maybe that has something to do with the pages I typically edit, though, such as their size or number of wiki-links.

    • CommentRowNumber14.
    • CommentAuthorTobyBartels
    • CommentTimeSep 24th 2011

    This is weird. Isn’t the server in Europe?

    • CommentRowNumber15.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 25th 2011

    No! It’s in the US.

    • CommentRowNumber16.
    • CommentAuthorUrs
    • CommentTimeSep 26th 2011
    • (edited Sep 26th 2011)

    Okay, great.

    (I mean, not that it is in the US, but that we have figured out how this relates to the discussion we’ve been having. :-)

    So then here is a second observation, which might be noteworthy in this context:

    my experience is that the nnLab responsiveness drops more than linearly with connection quality.

    More in detail: I go by train a lot and use my cell-phone connection to connect to the internet when on the train. This works, but the connection rate is generally much lower as long as the train moves.

    Now I notice the following frequently: when the connection is bad, all web pages build up correspondingly more slowly, of course. But the nnLab reacts slower than the average other page when the connection is bad. Moreover, there is a point at which random pages still build up, albeit very slowly (so the connection has not completely broken down yet) but no nnLab page comes through at all anymore.

    Does this ring a bell with anyone? Is this maybe a hint for some effect that one could in principle try to fix?

    • CommentRowNumber17.
    • CommentAuthorzskoda
    • CommentTimeSep 26th 2011

    I have a very bad mobile connection, but no correlation between slowness of the nnLab and the quality of the connection at the time, as long as the response time is not on the boundary of allowed by the browser setting (the time for response too long and then it gives up). Is it possible that if certain time expires for your browser that your browser starts reloading page from the beginning – maybe you have that kind of setup. If so then there is a source of “nonlinearity”…

    • CommentRowNumber18.
    • CommentAuthorAndrew Stacey
    • CommentTimeSep 26th 2011

    Is it all pages that have this effect, or is it a particular type (eg saving pages, or viewing pages that you’ve just saved)?

    • CommentRowNumber19.
    • CommentAuthorzskoda
    • CommentTimeNov 2nd 2011

    Today afternoon the nnLab is slowlier than any time in last few weeks, in my experience.

    • CommentRowNumber20.
    • CommentAuthorAndrew Stacey
    • CommentTimeNov 2nd 2011

    Yes, I noticed that.

    On the other hand, I’ve been doing a fair bit of heavy stuff with the nJournal so that might be a cause of some of the slowness.

    • CommentRowNumber21.
    • CommentAuthorUrs
    • CommentTimeNov 2nd 2011
    • (edited Nov 2nd 2011)

    heavy stuff

    Isn’t it just the usual slowness due to the fact that there is a long page with lots of links? I am glad that we now have such a page that is not regarded as “just one of those weird pages that Urs produces” ;-)

    • CommentRowNumber22.
    • CommentAuthorTom Leinster
    • CommentTimeNov 3rd 2011

    I'm sure there was a conversation once about relative speeds of the Café in Europe and the USA. My own experience for years has been that when I submit a comment, there's a long wait between (i) clicking the "submit" button (or is it called "post"?) in the popup comment window, and (ii) the popup window refreshing to indicate that the process has finished. By "long" I guess I mean something like 30-60 seconds, on a fast wired broadband connection where even long Café posts with lots of comments load much more quickly than that. And previewing a comment can also take a while.

    I believe that in this previous conversation, the evidence from various users suggested that this problem existed in Europe and not the USA.

    (I'm aware that these are not the only parts of the world.)

    • CommentRowNumber23.
    • CommentAuthorDavidRoberts
    • CommentTimeNov 3rd 2011

    I have the same problem as Tom when posting to the cafe.

    • CommentRowNumber24.
    • CommentAuthorAndrew Stacey
    • CommentTimeNov 3rd 2011

    Isn’t it just the usual slowness due to the fact that there is a long page with lots of links?

    If you’d said “lots of maths” then I’d’ve agreed with you. A short while ago Jacques did some profiling and identified that it is maruku (the Markdown processor) that is the slowest part.

    • CommentRowNumber25.
    • CommentAuthorTodd_Trimble
    • CommentTimeNov 3rd 2011

    It takes a while for me to post a comment to the Café too (that is, waiting for the popup window to finish doing what it does after hitting ’Post’). Instead of waiting, I usually exit the popup window and just refresh the Café page that I’m commenting on, where the comment appears essentially immediately after I post.

    • CommentRowNumber26.
    • CommentAuthorUrs
    • CommentTimeNov 3rd 2011
    • (edited Nov 3rd 2011)

    If you’d said “lots of maths”

    I have no experience with long nnLab pages that don’t have lots of math in them.

    It just seems to me that when I edit “Leinster2011” the sluggishness that I experience is the same as when I edit, say, my pages on cohesion etc.

    • CommentRowNumber27.
    • CommentAuthorMike Shulman
    • CommentTimeNov 3rd 2011

    22, 23, and 25: Same here (from California). It’s basically always been that way at the Cafe.

    • CommentRowNumber28.
    • CommentAuthorTobyBartels
    • CommentTimeNov 4th 2011

    I agree with Mike about the Café (from Nebraska, and from California back when I was last there over a year and a half ago).

    • CommentRowNumber29.
    • CommentAuthorTom Leinster
    • CommentTimeNov 4th 2011

    Oh, OK. Maybe I misremembered.

    • CommentRowNumber30.
    • CommentAuthorUrs
    • CommentTimeNov 4th 2011

    Maybe I misremembered.

    What you remember is me noticing a speedup with nnLab pages when I went from Europe to Pittsburgh a few weeks back.

    This has nothing to do with the nnCafé. I think it’s clear that the bug there that makes comment preview windows not disappear earlier (because the comment itself appears much earlier! You don’t have to wait.) is hardly related to what makes the nnLab slow. But then, who knows.

    • CommentRowNumber31.
    • CommentAuthorTom Leinster
    • CommentTimeNov 4th 2011

    No, it was a conversation from a couple of years back that I remembered, not your comment a few weeks ago in the thread above. (I don't think I'd seen this thread until a couple of days ago.) It was because of this comment of yours that I wrote what I wrote about the Café. I thought there might just be some connection. But I guess not.

    Yes, I know the comment appears long before the popup refreshes, thanks. I often do what Todd does.

    • CommentRowNumber32.
    • CommentAuthorUrs
    • CommentTimeNov 4th 2011

    Ah, okay, I didn’t know that.

    • CommentRowNumber33.
    • CommentAuthorMike Shulman
    • CommentTimeNov 4th 2011

    Although, for some reason on the Cafe, sometimes when I do wait for the popup window to refresh, my comment doesn’t appear on the refresh! I have to manually reload the page again to make it show up.

    • CommentRowNumber34.
    • CommentAuthorTobyBartels
    • CommentTimeNov 4th 2011

    Yes, I also get Mike #33. So really, forget the popup window (once you’ve waited long enough for an error) and refresh the original.

    • CommentRowNumber35.
    • CommentAuthorzskoda
    • CommentTimeNov 10th 2016

    Today I have persistently save problem: upon save the page loads for a while and returns bad gateway page. Upon reinspecting in show it is seen that the page correctly saved though the browser did not get such an information. Is there some systematic change with the behavious of save operation going on ?