Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in GeSHi->parse_non_string_part() (line 2148 of /var/www/d7.romka.eu/sites/all/libraries/geshi/geshi.php).
GNU
Вы находитесь на устаревшей версии сайта romka.eu. Она оставлена здесь на случай если я захочу поностальгировать по тому как выглядел интернет в 2012 году :) Так этот сайт выглядел с июня 2012 по февраль 2023. Эта версия сайта не обновляется, комментирование материалов отключено. Обновленная версия сайта доступна по адресу http://romka.eu.
Значение аргумента x может меняться в диапазоне от 1 до 30 000. Выполнение команды для одного аргумента занимает от 30 секунд до 15 минут. Нужно максимально быстро выполнить эту команду для заданного диапазона аргументов на N-ядерном сервере максимально используя ресурсы сервера.
Возможные варианты решения
Простой цикл от 1 до 30 тысяч с запуском команды на каждой итерации будет использовать только 1 ядро. Это решение неприемлемо: оно будет работать слишком долго и не задействует все доступные ресурсы сервера.
Можно вручную разбить диапазон на N частей и запустить N циклов вида:
for i in `seq 11000`
do
./do-something.sh -x $i
done
Второе решение лучше первого — оно задействует все доступные ядра процессора, но оно все равно неприемлемо. Команды выполняются с непостоянной скоростью. В каком-то из диапазонов могут попасться только легкие команды, которые выполнятся, предположим, за несколько минут, а в каком-то — тяжелые и их выполнение затянется на несколько часов. Таким образом, часть ядер быстро освободится, будет простаивать и ресурсы сервера опять будут использованы неоптимально.
Последние комментарии