Added mmap
configuration debug tool.
Run it with the following script:
<?php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
var_dump(\danog\MadelineProto\Tools::testFibers());
It will print out the maximum number of startable fibers, according to the current system configuration.
If the number of maxFibers
is smaller than 100000
, modify the system configuration to increase the number of mmap
'able regions:
echo 262144 | sudo tee /proc/sys/vm/max_map_count
To persist the change across reboots:
echo vm.max_map_count=262144 | sudo tee /etc/sysctl.d/40-madelineproto.conf