!NRlxVJuxyvJXxRglqq:matrix.org

Project MediaWiki Manager

17 Members
Announcement board for https://mwstake.org/mwstake/wiki/MWStake_MediaWiki_Manager2 Servers

Load older messages


SenderMessageTime
30 Mar 2021
@hexmode:matrix.orghexmodeok, you convinced me. I will.21:51:35
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)Lol, my silence was very convincing21:52:01
@hexmode:matrix.orghexmodeI confess, I talked myself into this whole thing as a way to avoid some other stuff I should really be doing21:52:42
@hexmode:matrix.orghexmodeand, to defend my honor, of course.21:52:53
@hexmode:matrix.orghexmodebut since this is code I'm giving to $CLIENTS, I can justify some of the time.21:54:41
31 Mar 2021
@hexmode:matrix.orghexmodeupdated with some stats and a comparision with my old server: https://pastebin.com/XKTSJRXW00:45:07
@hexmode:matrix.orghexmodeI think one thing that really slows down the old server is quota checking on the fs, but I'm not sure right now00:45:36
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)is sorting included in this benchmark?02:30:17
@hexmode:matrix.orghexmode there is sorting in the function being measured (scroll down to line 83), so, yes, sorting time is included. 16:32:35
@hexmode:matrix.orghexmodeupdated https://pastebin.com/XKTSJRXW a bit with another benchmark and a few more stats. My takeaway: If you are on a 4.x linux kernel with extfs4, keep the number of files in the directory under 10,000. If you go above 100,000 files in a directory, it will slow way down.19:22:15
@hexmode:matrix.orghexmodeIf you have to have 100,000 files in a directory on ext4, use a newer kernel.19:22:57
@hexmode:matrix.orghexmodeNow to compare run time to a single php file with the same statements (so, remove the listing of files, sorting of files, and reading of files) to see how much time this all adds to the who process.19:24:27
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)I'd be interested in seeing how each of the components do timewise20:21:04
@hexmode:matrix.orghexmodeupdated https://pastebin.com/XKTSJRXW a final time with new script and stats comparing a 1 file with X number of echo statements to X number of files with 1 echo statement. Where X=100, multiple files are about 22x slower. Where X=100,000, multiple files are about 136x slower (on new kernels).20:24:00
@hexmode:matrix.orghexmodeWhat do you mean "each component"?20:24:41
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)How much time sorting takes vs how much time reading takes20:24:57
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)I haven't tried regressing these data into a function yet, but I'd have to assume O(n log n) applies here20:25:43
@hexmode:matrix.orghexmodeSorting is happening all in memory and reading is going to disk. Sorting is going to be faster. Further, PHP uses quicksort, which is fast.20:30:11
@hexmode:matrix.orghexmodebut you've thrown another distraction gauntlet down. I'm not picking it up right now.20:30:42
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)No worries, appreciate all of the work you've done so far20:31:05
14 Apr 2021
@dataspects:matrix.org@dataspects:matrix.org

Recent developments inspired by yesterday's discussion between Cindy, Jeffrey, Bryan (thanks again 😀 to all of you) and myself:

  1. The container-internal LocalSettings.php now contains:
$mwmls = "../mwmLocalSettings.php";
# MWStake MediaWiki Manager
if(file_exists($mwmls)) {
	require_once($mwmls);
} else { 
	echo "ERROR: ../mwmLocalSettings.php include not loaded.";
}
  1. The installer creates a volumed-in mwm.sqlite database.
  2. When enabling/disabling an extension, mwm.sqlite is updated (https://github.com/dataspects/mediawiki-manager/blob/main/cli/lib/addToMWMSQLite.php and https://github.com/dataspects/mediawiki-manager/blob/main/cli/lib/removeFromMWMSQLite.php).
  3. Upon each update of mwm.sqlite, mwmLocalSettings.php is recompiled by https://github.com/dataspects/mediawiki-manager/blob/main/cli/lib/updateMWMLocalSettings.php.

These redesigns are preliminary steps to address the 3 main issues identified during yesterday's talk:

  • Avoid regexing seds
  • Move functionality from bash-only into higher-level language
  • Avoid editing of LocalSettings.php

Developing...

15:36:42
22 Apr 2021
@lionalext:matrix.orglionalext joined the room.15:59:45
27 Apr 2021
@jeffreywang:matrix.orgJeffrey Wang (MyWikis) set a profile picture.22:45:09
4 May 2021
@cicalese:matrix.orgcicalese dataspects: Take a look at Adam Shoreland's new blog post about WBStack on Kubernetes: https://addshore.com/2021/04/wbstack-infrastructure-2021/. 14:28:31
@dataspects:matrix.org@dataspects:matrix.orgThis looks promising... 👍️15:53:31
7 May 2021
@jeffreywang:matrix.orgJeffrey Wang (MyWikis)here's Lex's new repo for the CLI portion of MWM: https://github.com/dataspects/mediawiki-cli17:34:12
11 May 2021
@addshore:matrix.orgaddshoreHi all! Just found this channel, sounds like we could have some interesting conversations :)16:25:04
@cicalese:matrix.orgcicalese Hah! I was just looking for this to find the comment above directing dataspects to your blog post, addshore . Glad to see you made it here first! 17:00:09
12 May 2021
@dataspects:matrix.org@dataspects:matrix.org Hi addshore , great to see you here! I'm currently 100% taken on another project, but we should converse at the next MWStake meeting... 👍️ 13:16:39
25 Jun 2021
@freephile:matrix.orgrundg changed their display name from freephile to rundg.16:35:40

Show newer messages


Back to Room ListRoom Version: 5