Closed Bug 1242050 Opened 9 years ago Closed 8 years ago

C-C TB: use a default output stream buffer size of 16KB instead of 4KB

Categories

(MailNews Core :: Database, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 52.0

People

(Reporter: ishikawa, Assigned: ishikawa)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: perf)

Attachments

(1 file)

I created a patch to make the default buffering to 16KB for message copying. In this day and age, we can use 16KB for output buffering without worrying about memory exhaustion. (Already, mork uses 32KB buffering.) Do note, though, the buffering is not effective until bugs below are patched. [] Bug 1116055 [] Bug 1242030 - Consolidated patch set from bug 1122698, bug 1134527, bug 1134529, bug 1174500 [] Bug 1242042 - Enabling buffering for file stream to write message for C-C TB [] Bug 1176857 - 1116055-acelist.patch: One liner patch posted in Bug 1116055 to return a buffered stream from mbox::getNewOutputStream by aceman [] Bug 1242046: Removing unnecessary |Seek| that caused the C-C TB to operate slowly in terms of I/O I will post the roadmap of related patches shortly. TIA
Assignee: nobody → ishikawa
Summary: C-C TB: use a default ouput stream buffer size of 16KB instead of 4KB → C-C TB: use a default output stream buffer size of 16KB instead of 4KB
Keywords: perf
Component: OS Integration → Database
Product: Thunderbird → MailNews Core
Blocks: 558528
The previous version of this memo was posted to https://bugzilla.mozilla.org/show_bug.cgi?id=1116055#c101 on Jan 23, and then I got boggled down to fix Windows ONLY errors on try-comm-server and could not follow up adequately. Finally the strange errors observed only for Windows build on try-comm-central have been fixed. So here is the updated road-map for this and other patches. (Feb 2016 version) ======================================== PLANNED ORDER of landing patches ======================================== bug 1116055 -> bug 1242030 (consolidation of 1122698, 1134527, 1134529, 1174500) -> bug 1242042 -> bug 1176857 -> bug 1242046 -> bug 1242050 -> bug 1170606 ======================================== An overview of patches in bugzilla entries. ---------------------------------------- [In February 2016, I fixed the errors observed ONLY UNDER WINDOWS when we use Maildir format for storage. Thus I needed to tweak my patch set somewhat and added a patch to take care of this issue and so I updated this write-up.] ... [10] New in 2016 1242050 - C-C TB: use a default output stream buffer size of 16KB instead of 4KB buffer-by-16K-by-default.patch: output buffer by 16KB by default I created a patch to make the default buffering to 16KB for message copying. In this day and age, we can use 16KB for output buffering without worrying about memory exhaustion. (Already, mork uses 32KB buffering.) This should help when a local LAN uses a jumbo packet, too. This patch is theoretically independent of any of the other patches here. But in practice, the buffering is not effective at all without the patches in [1]-[9] above. I may want to land this patch first to help aceman to get ahead with his own patch to make this setting of buffer size more flexible.
Hi, I would like to propose this patch to be included. This is a very safe patch. The submission on tryserver is as follows. https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=c7ded2eeb081&selectedJob=16980 I have kept this patch as part of my performance improvement (for downloading message copy to local folder), but since this buffering is used for all types of buffered output (where buffering is effective), it should be proposed as an independent patch and I understand aceman is waiting to work on make this value a user-settable variable. TIA PS: The rest of performance improvement can wait for a while.
Attachment #8711188 - Flags: review?(Pidgeot18)
Depends on: 1242046
Blocks: 1170606
We should probably ask someone other than jcranmer to review this fairly trivial patch.
Comment on attachment 8711188 [details] [diff] [review] buffer-by-16K-by-default.patch Review of attachment 8711188 [details] [diff] [review]: ----------------------------------------------------------------- Yes, this should be safe. Also it can be landed independently of the other patches in the stack.
Attachment #8711188 - Flags: review?(Pidgeot18) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 52.0
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: