On Jul 1, 2022, at 6:50 AM, Andy Smith <andy@strugglers.net> wrote:
On Fri, Jul 01, 2022 at 08:40:23AM +0000, Andy Smith wrote:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 770203 www-data 20 0 4516756 3.4g 1.6g R 99.7 43.5 12:08.00 python3 /usr/share/mailman3-web/manage.py runjo+
This has been going for nearly 6 hours now at 100% CPU and I've no idea if it's ever going to finish. If I strace it, it is doing *something*, albeit very slowly. I can't see what it needs the 100% CPU for.
Output from 10 minutes or so of:
$ sudo strace --output='|tee strace.txt' -tp 770203
is at:
It's only 145k and doesn't seem to do much. An occasional open,seek,read,close…
Any good way to find out what it's spending its CPU time on? "top" says it is 100% "user" so I think it's something the python code is doing, not anything inside the kernel.
What indexer are you using? If it’s whoosh, this is wholly expected.
Switch to xapian. You’ll thank me.
There’s good implementation details in this list archive.
- Mark
mark@pdc-racing.net | 408-348-2878