Re: How hard to make KMail multi-threaded?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 07 October 2020 01:51:49 pm Dr. Nikolaus Klepp wrote:
> Anno domini 2020 Wed, 7 Oct 13:40:31 -0500
> > Ah, sure!
> >
> > - Start KMail
> > - Setup ~50 filters.
> > - Setup mail checking every ~15 minutes [1]
> > - When KMail checks mail the whole program is 'frozen' until it finishes
> > checking for mail. [2]
> > - You can use any other program on the machine with no ill effects.
> >
> > [1] I average slightly over 50 downloaded messages per 15 minute check.
> > [2] e.g. If you're in the middle of typing a mail, you can no longer type
> > anything into KMail.  If you try to click on some other folder, nothing
> > happens.  If you drag some other program’s window over KMail, the KMail
> > GUI gets whitened/blanked out until the mail check stops.
> >
> > This is on my work machine (info below), so it’s not a 10 year old
> > laptop, which was why I was thinking it was a multi-thread issue?
> >
> > Best,
> > Michael
>
> This is strange. Do you get hundreds of mails in 15 minutes?
>
> Could you run "htop" in a terminal so that you see which program is
> blocking? It might be something spawned from kmail or something totally
> different.

Yeah, due to spikiness of things, I’d guess some mail checks get 200-300 
mails, some get 10.  The average of ~50+ was over the last 15 day period 
(75,000 in 15 days if someone wants to check my maths...).

htop attached of KMail at idle.  I had the main window and 3 messages open (= 
4 child processes?).  During a mail check it climbs to 100% CPU% for the 
parent KMail row, the children don’t change at all, sits at 100% until it’s 
done (1-3 seconds) and then drops back to ~0% CPU%.

My graphical skills lack, headers are:

PID / USER / PRI / NI / VIRT / RES / SHR / S / CPU% / MEM% / TIME+ / Command / 

The 0.7 is CPU%
2119M is VIRT

I don’t know htop well enough, but it’d seems CPU% has to be for a single CPU?  
Yeah, gotta be, load average: 0.30, 0.20, 0.14, so it’s not doing anything to 
even 1 minute load numbers.

Attachment: tde-kmail-01.png
Description: PNG image

____________________________________________________
tde-users mailing list -- users@xxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxx
Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@xxxxxxxxxxxxxxxxxx

[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux