Closed Bug 534520 Opened 15 years ago Closed 13 years ago

Significant lag selecting Inbox Smart/unified Folder (or any very large folder)

Categories

(Thunderbird :: Folder and Message Lists, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(blocking-thunderbird5.0 -)

RESOLVED INCOMPLETE
Tracking Status
blocking-thunderbird5.0 --- -

People

(Reporter: llowrey, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: perf)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729) Build Identifier: 3.0 - Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b2pre Thunderbird/3.0 When I select the Inbox smart folder I see "Searching folder..." and one core of my CPU goes to 100% for about 10 seconds. While this is happening, I cannot open any messages in that folder. If I select an individual inbox, this process takes less than a second. The time seems proportional to folder size based on the lag for the Sent smart folder. Inbox #1: ~13,000 Inbox #2: ~25,000 Inbox #3: < 1,000 Reducing the sizes of my inboxes is not the answer I'm looking for. Since each folder takes less than 1 second to access, I would expect the smart folder to take less than 3s, not 10s. Reproducible: Always Steps to Reproduce: 1. Click on Inbox smart folder 2. 3. Actual Results: Functions correctly, after 10 second delay (and 100% CPU usage). Expected Results: No, or very short delay (1-2sec max)
Does this happens in -safe-mode (http://kb.mozillazine.org/Safe_mode) ? Anything in Tools -> Error console when this happens ?
Keywords: perf
(In reply to comment #1) > Does this happens in -safe-mode (http://kb.mozillazine.org/Safe_mode) ? Yes. No change. > Anything in Tools -> Error console when this happens ? Error console is empty.
ultimately this will likely be a dup of an existing virtual folder bug
Whiteboard: dupme
Performance is improved for me. I am now down to ~5sec for my combined inbox and ~3sec for Sent. I am running 3.0.3 but I don't know for sure what to attribute the improvement to. I have not used the combined folders since the performance has been so poor so I can't tell if it was the update to 3.0.3 or the fact that I also in the mean time removed an e-mail account. At 5 sec I find the performance to still be too slow to be tolerated on a daily use basis.
(In reply to comment #5) > At 5 sec I find the performance to still be too slow to be tolerated on a daily > use basis. Larkin, I'd agree. How are things in version 3.1? Mike, rsx11m, Roland, can you find descriptions of this in gsfn or forum? I'm pretty sure I've seen some.
I'm at 8 seconds for 42,000 messages. It acts like it's trying to merge and sort on access. If that's the case then it's entirely reasonable that it would take something on the order of 8 seconds. I imagine that a collection of inboxes totaling 42,000 messages is probably an edge case and therefore not worth addressing.
Larkin, how much memory is being used by thunderbird, and how much memory available in your machine [1]? and what type and speed of PC? bug 520272 might help here (larkin is all imap with imap accounts with 28,500, 14,200, and 500 messages in the inboxes.) [1] memory details at https://wiki.mozilla.org/Thunderbird:Testing:Memory_Usage_Problems#Overview
Memory is ranging from 150MB to 160MB and fluctuates within that range. Windows ResourceMonitor shows 1.3GB free physical memory. My present machine is dual core AMD Turion Ultra X2 2.3GHz. The host is Windows 7 x64 w/ 4GB of RAM. Disk is SSD, if it matters. I am traveling so i can't test my desktop speed atm.
(In reply to comment #6) > Mike, rsx11m, Roland, can you find descriptions of this in gsfn or forum? I'm > pretty sure I've seen some. Larkin's observation that it's size related meshes with observations in GS for large folders. For Inboxes or Sent folders that are large (byte-wise) but contain relatively few messages (i.e., have not been compacted or cannot be compacted), lag to open can be minutes, regardless of folder view. (In reply to comment #7) > I'm at 8 seconds [...] 42,000 messages is probably an edge case and therefore not > worth addressing. I this a reversal of the opinion in Comment #5 that 5 seconds is "too slow to be tolerated on a daily use basis" ? I don't know that 42,000 messages is an "edge" case; most long-time users (e.g., those migrating from TB2 or other clients) will have a significant number of saved messages.
No reversal. I still cannot use the combined inbox... without being driven mad. I do use the "Unified Folders" view but have the combined inbox expanded to reveal the individual inboxes. I find it convenient to have all the inboxes in one spot. Navigating to the individual inboxes is instantaneous. My edge case opinion is based on the belief that many, if not most, users divide their mail into multiple smaller folders. I personally find that tedious but I feel that I am in the minority.
(In reply to comment #9) > Memory is ranging from 150MB to 160MB and fluctuates within that range. Windows > ResourceMonitor shows 1.3GB free physical memory. sounds like nominal/normal memory usage. > My present machine is dual core AMD Turion Ultra X2 2.3GHz. The host is Windows > 7 x64 w/ 4GB of RAM. Disk is SSD, if it matters. I am traveling so i can't test > my desktop speed atm. hmm, mkanat has SSD Intel X25-M G2 (CPU: Intel Core 2 Duo E6700 (2.66Ghz), RAM: 2GB CL2 DDR2) and was also complaining about performance with his big bugmail folder. coincidence? My main interested here is the imap case, which bug 520272 will help. But there may be non-imap related issues (or even other imap issues). Speculatively adding bug 347837 as a potential helper. xref bug 588952 - Extremely bad performance at startup or when reading messages with very big IMAP folders
Depends on: 520272, 347837
Summary: Significant lag selecting Inbox Smart Folder → Significant lag selecting Inbox Smart Folder (or any very large folder)
Unless we are going to tell gmail users or anyone with a large inbox that they shouldn't keep there stuff in a big folder, 50k is certainly not an edge case. Additionally, we now have archive folders :)
blocking request for 3.2 on evaluating the questions posed above, and whether the bugs that presumably should fix this (bug 347837, bug 520272 and perhaps others) should be targeted for 3.2
blocking-thunderbird3.2: --- → ?
Depends on: 293088
what's the consensus on these items? (In reply to comment #14) > blocking request for 3.2 on evaluating the questions posed above, and whether > the bugs that presumably should fix this (bug 347837, bug 520272 and perhaps > others) should be targeted for 3.2 switching request to 3.3
blocking-thunderbird3.2: ? → ---
blocking-thunderbird5.0: --- → ?
Don't think this is going to block 3.3, since it didn't block 3.1.
Perhaps it's not a good idea to display all messages all the time. If you try a folder with about 10^6 messages, Thunderbird will be quite busy for a while figuring out how to display that. Perhaps there should be an option to have a paged view if the message number goes over a limit + some indexing / caching / searching magic that essentially provides a view to operate on a subset of messages.
I don't think there's anything specific enough here that we can block 3.3 on. Perf improvements are always wanted though.
blocking-thunderbird5.0: ? → -
Flags: wanted-thunderbird+
Is this better for you in version 5 (or 6) now that Bug 520272 was fixed in v5? ( Optimize perceived speed of switching IMAP folders) Is speed now acceptable?
Summary: Significant lag selecting Inbox Smart Folder (or any very large folder) → Significant lag selecting Inbox Smart/unified Folder (or any very large folder)
please comment if you have additional information, including whether or not you still see this problem using a newer version.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
See Also: → 1098069
You need to log in before you can comment on or make changes to this bug.