Global indexing slows because of high system I/O rate, slow I/O, or lack of multicore support (antivirus, slow disk, disk errors, etc) [was Significantly speed up global indexing (gloda)]
Categories
(MailNews Core :: Database, defect)
Tracking
(Not tracked)
People
(Reporter: michel, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: perf, reproducible, Whiteboard: [patchlove][ref comment 7, comment 27])
User Story
(aceman impacted) worth noting the blockers to bug 1023000 - https://mzl.la/2C5Wr3w
Attachments
(1 file)
|
978 bytes,
patch
|
asuth
:
review-
|
Details | Diff | Splinter Review |
| Reporter | ||
Comment 1•16 years ago
|
||
Updated•16 years ago
|
Updated•16 years ago
|
Comment 4•16 years ago
|
||
Updated•16 years ago
|
Comment 5•16 years ago
|
||
| Reporter | ||
Comment 6•16 years ago
|
||
Comment 7•16 years ago
|
||
| Reporter | ||
Comment 8•16 years ago
|
||
Comment 9•16 years ago
|
||
| Reporter | ||
Comment 10•16 years ago
|
||
| Reporter | ||
Comment 11•16 years ago
|
||
Comment 12•16 years ago
|
||
| Reporter | ||
Comment 13•16 years ago
|
||
Comment 14•16 years ago
|
||
Comment 15•15 years ago
|
||
Comment 16•15 years ago
|
||
Comment 17•15 years ago
|
||
Comment 18•15 years ago
|
||
Comment 19•15 years ago
|
||
| Reporter | ||
Comment 20•15 years ago
|
||
Comment 21•14 years ago
|
||
Comment 22•14 years ago
|
||
Comment 23•14 years ago
|
||
Comment 24•10 years ago
|
||
Comment 25•10 years ago
|
||
Comment 26•10 years ago
|
||
Comment 27•10 years ago
|
||
| Reporter | ||
Comment 28•10 years ago
|
||
Comment 29•10 years ago
|
||
Comment 30•8 years ago
|
||
Updated•8 years ago
|
Comment 31•7 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #24)
Do you still see this slowdown of 6msgs/iteration (I see 60)
And what were you able to determine relative to comment #23?
Yes, it is glacially slow (3 msgs/sec) even when indexing other folders (like 10000 msgs) while the gloda.sqlite file is only 130MB.
There is no I/O to be mentioned and TB is using 100% of 1 CPU core.
The patch only causes the work to be updated in the Activity manager in larger chunks, but the overall speed isn't visibly changed.
Updated•7 years ago
|
Updated•4 years ago
|
Comment 32•3 years ago
|
||
(In reply to :aceman from comment #31)
(In reply to Wayne Mery (:wsmwk) from comment #24)
...
The patch only causes the work to be updated in the Activity manager in larger chunks, but the overall speed isn't visibly changed.
Not great, but it would still be a win if overall CPU is reduced. Do we know if that happens?
Can you create a performance profile? https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance
Updated•1 year ago
|
Comment 33•4 months ago
|
||
(In reply to Andrew Sutherland [:asuth] (he/him) from comment #5)
...
If every SQLite transaction is taking several seconds, something may be
wrong with your I/O subsystem. A really slow hard disk (possibly impacted
by fragmentation), ...
...
Slow I/O could cause us to decrease the tokens we use per unit time slice.
Since our SQLite commits are time-based rather than token based, I could see
how this would net out to really slow indexing.
...
If you could provide info on what anti-virus/anti-malware software you have
active as well as general info on the hard disk (RPMs, drive utilization),
that would be useful.
...
If you have a SMART tool
...
(In reply to Michel Krämer from comment #6)
(In reply to comment #5)
... something may be wrongwith your I/O subsystem. A really slow hard disk (possibly impacted by
fragmentation), failing hard disk, or ridiculously overzealous and inefficient
virus checker are among the more likely options that come to mind.
... did some performance tests and you're right. The main problem is my virus
scanner (Microsoft Security Essentials).
...
(In reply to Michel Krämer from comment #0)
...
large. Indexing takes several days on my dual core computer!
...
- Have more than 10.000 messages
- Start Thunderbird and wait for it to index all messages :-)
Actual Results:
Indexing is very very slow (several days)
...
It is amazing how much has changed in 15 years!
"Disk RPM's"
"fragmentation"
"Microsoft Security Essentials"
"Dual Core Computer"
I am guessing a lot of those I/O slowdowns could be fixed by SSD's and stronger CPU's alone.
Comment 34•4 months ago
|
||
(In reply to :aceman from comment #31)
...
There is no I/O to be mentioned and TB is using 100% of 1 CPU core.
...
...updated in the Activity manager in larger chunks, but the overall speed isn't visibly changed.
(In reply to Wayne Mery (:wsmwk) from comment #32)
Not great, but it would still be a win if overall CPU is reduced. Do we know if that happens?
Does or can Thunderbird, or more specifically this process, use multiple cores if they are available? With modern processors, one would think they could all be put to use here, even if that is not "the" solution.
Can a bug be opened to do this?
Comment 35•4 months ago
|
||
There's no point to opening another bug because a) the current form of global search will be going away within the next 2 years b) it would probably require some rearchitecting, i.e. significant manpower. It's not as simple as "just add cores". It also doesn't help users on the lower end of the hardware spectrum.
Description
•