Thank you Bawolff, and sorry, I have had private issues the last few days.
We have round about 133,000 pages, thereof 57,000 articles (approx. 40,000 redirects, don't know where the difference is)
I started the Mostlinked job manually 5 hrs ago and it is still running. The mysqld process uses 100...150% CPU but users working on articles will hardly notice the server load. It is a virtual system with 4 CPUs, total CPU usage varying between 15% and 40%. No noticeable swapping.
The database processlist shows the event scheduler, the special page, my shell process and a count of sleeping processes (usually 0 to 5 as far as I saw). Explaining the special page process:
mysql> explain for connection 158074;
+----+-------------+-----------+------------+-------+---------------+--------------+---------+-----------------------------+---------+----------+----------------------------------------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+-----------+------------+-------+---------------+--------------+---------+-----------------------------+---------+----------+----------------------------------------------+
| 1 | SIMPLE | pagelinks | NULL | index | NULL | pl_namespace | 1030 | NULL | 2391153 | 100.00 | Using index; Using temporary; Using filesort |
| 1 | SIMPLE | page | NULL | ref | name_title | name_title | 4 | ppdb.pagelinks.pl_namespace | 5684 | 100.00 | Using where; Using index |
+----+-------------+-----------+------------+-------+---------------+--------------+---------+-----------------------------+---------+----------+----------------------------------------------+
2 rows in set (0,00 sec)
Though I have some SQL experience, I don't understand the EXPLAIN output. There are 2.43 million records in the pagelinks table (not 2,39m as shown). And why is key_len = 1030? Here is the pagelinks description:
mysql> describe ppdb.pagelinks;
+-------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+--------------+------+-----+---------+-------+
| pl_from | int unsigned | NO | PRI | 0 | |
| pl_namespace | int | NO | PRI | 0 | |
| pl_title | varchar(255) | NO | PRI | | |
| pl_from_namespace | int | NO | MUL | 0 | |
+-------------------+--------------+------+-----+---------+-------+
mysql> show indexes from ppdb.pagelinks;
+-----------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Visible | Expression |
+-----------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
| pagelinks | 0 | PRIMARY | 1 | pl_from | A | 139218 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 0 | PRIMARY | 2 | pl_namespace | A | 227346 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 0 | PRIMARY | 3 | pl_title | A | 2391153 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 1 | pl_backlinks_namespace | 1 | pl_from_namespace | A | 20 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 1 | pl_backlinks_namespace | 2 | pl_namespace | A | 165 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 1 | pl_backlinks_namespace | 3 | pl_title | A | 379761 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 1 | pl_backlinks_namespace | 4 | pl_from | A | 2356577 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 1 | pl_namespace | 1 | pl_namespace | A | 20 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 1 | pl_namespace | 2 | pl_title | A | 181466 | NULL | NULL | | BTREE | | | YES | NULL |
| pagelinks | 1 | pl_namespace | 3 | pl_from | A | 2378003 | NULL | NULL | | BTREE | | | YES | NULL |
+-----------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+