Closed Bug 521312 Opened 16 years ago Closed 16 years ago

Huge memory consumption while determining which messages to index in inbox

Categories

(MailNews Core :: Database, defect)

1.9.1 Branch
x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: shopping_mozilla, Unassigned)

Details

(Keywords: perf, Whiteboard: dupme [gloda key])

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729) Build Identifier: 3.0b4 After opening Thunderbird (in safe-more or otherwise) a message appears in the status bar stating "Determining which messages to index in inbox". When watching the memory in task manager I can see it reach between 500MB and 700MB while the VM jumps from 500MB up to 1.3GB. Since I only have 2GB of ram there is plenty of hard drive thrashing as the numbers jump up and down. The VM can be seen going from 300MB to 700MB and back numerous times within several seconds. I have several inboxs with thousands of email but Thunderbird 2.0 handled them just fine. Reproducible: Always
Keywords: perf
Component: General → Search
QA Contact: general → search
This suggests we need to be triggering garbage collections more frequently rather than deferring them until the database commit. We should look into this once the correctness issues are dealt with.
Component: Search → Database
Product: Thunderbird → MailNews Core
QA Contact: search → database
Whiteboard: [gloda key]
The gloda correctness patch adds logic to initiate garbage collections when the number of headers 'touched' crosses a threshold.
Whiteboard: [gloda key] → [gloda key][fixed in gloda correctness patch]
Reporter, the gloda correctness patch has landed and is available in current nightlies. If you could please give things another try, that will help me understand if your problem was what I thought it was. It would be ideal if you could run without any extensions for this. You can find the latest nightlies here: http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-1.9.1/
Whiteboard: [gloda key][fixed in gloda correctness patch] → [gloda key]
Severity: critical → normal
Whiteboard: [gloda key] → [gloda key][waiting on reporter to try new build]
shopping, please test and report success! (hopefully) Note, there have been other checkins since 2009-11-08 that you will want to have tested, so please the topmost item on try http://www.mozillamessaging.com/en-US/thunderbird/early_releases/
Whiteboard: [gloda key][waiting on reporter to try new build] → closeme 2009-12-15 [gloda key][waiting on reporter to try new build]
Version: unspecified → 1.9.1 Branch
Tested the most recent release (RC2) and things are much better. Physical RAM usage never went over 160MB during indexing. CPU usage peaked around 40% but dropped to zero after indexing was completed. This is on a T5600 Core 2 laptop with 2GB of RAM.
thanks for the feedback
Whiteboard: closeme 2009-12-15 [gloda key][waiting on reporter to try new build] → dupme [gloda key]
asuth if you have a preferred disposition for this bug, eg duplicate, feel free to change my closing WFM per reporter.
Severity: normal → major
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.