Open Bug 1819895 Opened 1 year ago Updated 1 month ago

Daily unusable. High CPU activity in morkParser::ReadRow and nsImapMailFolder::GetDatabase, high memory usage, then crashes OOM during Autosync (fastmail with server-side filters).

Categories

(MailNews Core :: Database, defect)

Thunderbird 112
Unspecified
Linux
defect

Tracking

(Not tracked)

People

(Reporter: emilio, Unassigned)

References

Details

(Keywords: crash, perf:responsiveness, Whiteboard: [snnot3p])

It hangs constantly. It seems to be doing a ton of main-thread I/O.

Perf profile: https://share.firefox.dev/3ZfQdrY

This is:

CodeName=Thunderbird Daily
Version=112.0a1
BuildID=20230302101845

I'd use a firefox profiler profile, but I can't because I can't even pull up the inspector.

Follow up from Matrix, Emilio is gonna get some coredump backtracery my way so I can have a gander and
see what's going on :)

Flags: needinfo?(emilio)

(Let's assume not supernova related, until proved otherwise)

Whiteboard: [snnot]

Yeah, I can't provide much more than the profile above unfortunately because removing the mail db "fixed" it, it seems. I have this bigger profile from daily in https://crisal.io/tmp/daily-perf.txt which could be useful?

Flags: needinfo?(emilio)
See Also: → 1819063

(In reply to Emilio Cobos Álvarez (:emilio) from comment #0)

It hangs constantly. It seems to be doing a ton of main-thread I/O.

Perf profile: https://share.firefox.dev/3ZfQdrY

Stack (partial):
nsAutoSyncState::ProcessExistingHeaders
...
nsImapMailFolder::GetDatabase
...
morkParser::ReadRow
morkBuilder::OnRowEnd
morkRow::TakeCells
morkPool::AddRowCells
morkZone::ZoneNewRun
morkZone::zone_new_chip
morkZone::zone_grow_at
orkinHeap::Alloc
replace_malloc
Allocator::malloc
BaseAllocator::malloc
arena_t::AllocRun
nsProfileLock::FatalSignalHandler

Possible matches :

  • bug 588952 - autosync should use new async folder opening to avoid extremely bad performance at startup or when reading messages with very big IMAP folders (like gmail All Mail)
  • bug 729504 - mail.check_all_imap_folders_for_new enabled and low value for "check for new messages every" yields high mork activity and frequent short hangs when writing mail.
  • bug 561272 - UI unresponsive for several minutes with high CPU while .msf files are thrashed with reads and lseeks. global indexing is disabled (linux?)
  • bug 1242046 - Removing unnecessary |Seek| that caused the C-C TB to operate slowly in terms of I/O
  • bug 585429 - 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)]
Component: General → Database
Product: Thunderbird → MailNews Core
Summary: Latest daily is unusable. High mork activity, high memory usage, then crashes OOM. → Latest daily is unusable. High mork activity, high memory usage, then crashes OOM during Autosync
Whiteboard: [snnot] → [snnot3p]

(In reply to Emilio Cobos Álvarez (:emilio) from comment #5)

Yeah, I can't provide much more than the profile above unfortunately because removing the mail db "fixed" it, it seems.

The Inbox.msf file ?
Do you have server side filter? (short list of server side issues https://mzl.la/3Z2mH9S )
Non-gmail backed account?

Flags: needinfo?(emilio)
OS: Unspecified → Linux

I do have various server-side filters to manage bugmail, yeah. This is a fastmail account, effectively.

Flags: needinfo?(emilio)

You might try setting mail.db.max_open to higher values - >=100. Default is 30.

Ref: bug 561272, bug 1305207

See Also: → 589310
Summary: Latest daily is unusable. High mork activity, high memory usage, then crashes OOM during Autosync → Latest daily is unusable. High mork activity, high memory usage, then crashes OOM during Autosync (fastmail with server-side filters)
Summary: Latest daily is unusable. High mork activity, high memory usage, then crashes OOM during Autosync (fastmail with server-side filters) → Daily unusable. High CPU activity in morkParser::ReadRow and nsImapMailFolder::GetDatabase, high memory usage, then crashes OOM during Autosync (fastmail with server-side filters).
See Also: → 1869260

bug 1869260 has a performance profile. Perhaps we return to this after that bug is resolved.

You need to log in before you can comment on or make changes to this bug.