Wikipedia:Don't worry about performance: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Line 28: Line 28:
System administrators have access to a wealth of profiling, logging and administration data which allow them to easily identify performance bottlenecks. If a feature of the MediaWiki software is causing unacceptable performance on the cluster, MediaWiki developers or sysadmins will take appropriate action to fix it. Examples of limitations introduced to avoid performance issues are the [[Wikipedia:Template limits|limitations on template inclusion]], the [[Wikipedia:Deletion process#Pages with many revisions|restrictions on deleting pages with more than 5,000 revisions]], and the 2 MB maximum size of pages.
System administrators have access to a wealth of profiling, logging and administration data which allow them to easily identify performance bottlenecks. If a feature of the MediaWiki software is causing unacceptable performance on the cluster, MediaWiki developers or sysadmins will take appropriate action to fix it. Examples of limitations introduced to avoid performance issues are the [[Wikipedia:Template limits|limitations on template inclusion]], the [[Wikipedia:Deletion process#Pages with many revisions|restrictions on deleting pages with more than 5,000 revisions]], and the 2 MB maximum size of pages.


Some remedies made by sysadmins are not technical blocks, but 'ordinary' wiki edits. If a sysadmin makes an on-wiki change because of performance considerations, '''do not reverse it nor block them'''; equally if a sysadmin tells you to make a change, '''listen to them'''. Past examples of such actions have included [//en.wikipedia.org/w/index.php?title=MediaWiki:Copyright&diff=177429486&oldid=154363988 editing system messages], [//en.wikipedia.org/w/index.php?title=Special%3ALog&type=block&user=Tim+Starling&page=User%3ABetacommandBot blocking users] and [//en.wikipedia.org/w/index.php?title=Template_talk:WikiProject_Biography&diff=prev&oldid=341610951 altering high-use templates].
Some remedies made by sysadmins are not technical blocks, but 'ordinary' wiki edits. If a sysadmin makes an on-wiki change because of performance considerations, '''do not reverse it nor block them'''; equally if a sysadmin tells you to make a change, '''listen to them'''. Past examples of such actions have included [//en.wikipedia.org/w/index.php?title=MediaWiki:Copyright&diff=177429486&oldid=154363988 editing system messages]{{Dead link}}, [//en.wikipedia.org/w/index.php?title=Special%3ALog&type=block&user=Tim+Starling&page=User%3ABetacommandBot blocking users] and [//en.wikipedia.org/w/index.php?title=Template_talk:WikiProject_Biography&diff=prev&oldid=341610951 altering high-use templates].


== Editors cannot break the site, only admins can do that ==
== Editors cannot break the site, only admins can do that ==

Revision as of 20:49, 12 May 2018

You, as a user, should not worry about site performance. In most cases, there is little you can do to appreciably speed up or slow down the site's servers. The software is, on the whole, designed to prohibit users' actions from slowing it down much.

Wikimedia pays people to worry, so you don't have to

Wikimedia employs numerous IT professionals to act as system administrators; these staff members are responsible for providing a stable and responsive platform on which to run the WMF wikis. That platform forms a cluster of over four hundred servers, with over five terabytes of RAM and over 2,400 processor cores. The whole architecture, and the MediaWiki software which runs on it, has been designed to minimise editors' ability to affect the performance of the site. More importantly, running MediaWiki to host the Wikimedia wikis is what the cluster is for; so editors should do whatever they feel they need to with the software in order to further the project's goals. Performance is not a reason to avoid using redirects, stop linking between pages or avoid editing altogether. The servers would 'perform' best if there were no content on Wikipedia at all, but they would not be achieving their purpose.

If the sysadmins identify a performance problem, they will fix it

System administrators have access to a wealth of profiling, logging and administration data which allow them to easily identify performance bottlenecks. If a feature of the MediaWiki software is causing unacceptable performance on the cluster, MediaWiki developers or sysadmins will take appropriate action to fix it. Examples of limitations introduced to avoid performance issues are the limitations on template inclusion, the restrictions on deleting pages with more than 5,000 revisions, and the 2 MB maximum size of pages.

Some remedies made by sysadmins are not technical blocks, but 'ordinary' wiki edits. If a sysadmin makes an on-wiki change because of performance considerations, do not reverse it nor block them; equally if a sysadmin tells you to make a change, listen to them. Past examples of such actions have included editing system messages[dead link], blocking users and altering high-use templates.

Editors cannot break the site, only admins can do that

In a few cases, there are things sysops can do that will slow down or crash the site. These are, however, rare and not generally worth worrying about; although there are a few things admins can do maliciously which are very difficult to clean up, it shouldn't ever be possible to do something which will result in permanent data loss or unfixable breakage. On the rare occasion something spectacular occurs, follow instructions from the sysadmins who come in to pick up the pieces, and everything will be fine. Obviously you shouldn't do exactly the same thing again, but don't be afraid to do similar things. If you get chastised for trying to delete Wikipedia:Sandbox and crashing the site, don't try to delete the same page again, but also don't fearfully count the revisions of every page you want to delete. This damages Wikipedia far more than a minor temporary slowdown. If you're unsure about something, you can ask a sysadmin on IRC if it makes you feel better, but generally it's not necessary.

Editors still have a role to play

Nothing in this page is to say that editors should not be mindful of performance, only that it should not limit project development. Worry about performance if you can tell the difference yourself. If you find that a page takes ten seconds to load, and takes only one second to load if you remove a particular template, and you can reliably reproduce this and other editors confirm they can too, then obviously the template is slowing down that page. If you would like the page to load faster, then by all means simplify or optimise the template. You won't be measurably affecting the overall server performance either way, but you can still weigh the costs and benefits for an individual page, if you can measure them. Equally, in some areas the developers have provided tools with which you can more accurately measure performance, such as the template expansion limits, or the profiling data in the Edit filter. In these cases, editors can certainly make use of these tools to improve the performance that they can measure.

As such, these principles mainly cover site-wide performance, where the purpose of the servers is to support the wiki contents, not the other way around. The purpose of the wiki content is to serve the reader; and performance considerations can certainly play a part in that process. Using thumbnails with a large size in bytes instead of a smaller size in bytes (e.g., using a high-fidelity 50 kB PNG instead of an uglier 20 kB JPEG) can definitely slow down the loading of pages; but whether that's acceptable is an editorial choice, not something the developers or sysadmins will either prevent or encourage.

In short

Be proactive in optimising things where you can measure and quantify a performance impact. Do not worry about the performance implications of things that you can't measure; the WMF employs system administrators who will worry about site-wide performance.

See also