Добрый день!
Python не поддерживает мультиядерные процессоры?
Кратко:
Программа-органайзер вики WikidPad 2.1 тормозит: ввод текста с задержками.
Найденное решение: Если в BIOS отключить Hyper threading и все ядра, кроме одного, ввод текста без тормозов.
Программа WikidPad написана на Python.
http://wikidpad.sourceforge.net/ - здесь бинарникик и исходные тексты.
Формат файлов - plain text.
Кодировка UTF-8 без BOM.
Тормоза при вводе текста проявляются на больших текстах со множеством заголовков, например 17000 строк.
Ставил WikidPad 2.1 отсюда:
http://www.getdeb.net/updates/Ubuntu/12.10/?q=wikidpad
Везде Ubuntu 14.04 64-хразрядная.
Везде python 2.7.6, python3 3.4 (но он не используется WikidPad 2.1, насколько понял).
Пробовал также запуск из исходников python wikidpad.
Три компьютера.
2 с SSD, один из них с процессором Intel Core i3, второй с AMD-450.
Ноутбук с процессором Intel Core i3, HDD.
Ноутбук Dell 500 с процессором Intel Celeron 550.
Вот на этом ноутбуке ввод текста в записи WikidPad идет без задержек,
а на компьютерах с более мощными процессорами, но с тем же ПО,
после ввода 2-3 слова заметное торможение.
То же с обработкой текста - выделением, копированием и т.п.
В top процесс python на ноутбуке Dell 500 % CPU не поднимается выше 88%,
на других, помощнее машинах в процессе ввода в top ~110-112%.
Это в строчке процесса python.
Что это может быть?
И как победить?
(“Гуглил” python slowly, писал в группу WikidPad - не помогло).
Из переписки в группе поддержки:
——– Перенаправленное сообщение ——–
Тема: Re: WikidPad works slowly in Ubuntu 14.04
Дата: Fri, 12 Sep 2014 08:47:27 +1200
От: ‘Graham Harris’ graham@harris.net.nz <wikidPad@yahoogroups.com>
Отвечать: wikidPad@yahoogroups.com
Кому: wikidPad@yahoogroups.com
I have begun to think that WikidPad is being slowed down by running on a
multi-CPU machine.
Python has poor multi-cpu support and some sources suggest that it can
even be slowed down in some cases. I suspect WikidPad is one of those
cases.
I could test the theory by running WikidPad in a virtual machine that can
see only 1 CPU, and comparing performance with the same WikidPad running
outside the VM, where it has 4 CPUs. I haven't got round to doing that
yet.
Graham
On Thu, September 11, 2014 23:58, RB wrote:
> Ross,
>
>
> I tried to run a version of 2.3.beta12 - the same problem.
> Slows down as you type.
> Tried to rebuild the database.
> In redesigning often happens at the end of an error "NOT NULL constraint
> failed:
> wikiwordmatchterms.matchtermnormcase . Instead of trying to use GadFly
> SQL.
> It did not help.
> So this problem and for version WikidPad 2.3.
> Once managed to rebuild the database, which was faster than typing, but
> then again entering slowed. It is strange that the old Dell laptop 500 no
> such problem. Maybe it has something to do with the processors?
>
>
> Who that will advise?
>
>
), and hopping someone here might shed some light on this conundrum.