Closed Bug 545334 Opened 14 years ago Closed 14 years ago

4k size buffer is very small and makes page loading/files downloading noticeable slower

Categories

(Core :: Networking, defect)

Other
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- beta1+

People

(Reporter: romaxa, Assigned: dougt)

Details

(Keywords: perf)

Attachments

(2 files, 2 obsolete files)

We did some measurements on Maemo devices with different NECKO buffers size, SMALL 2k, normal 4k and increased(16k).
And found that with 16k buffers we have less SYS-CPU load (kernel/drivers).

It is easy to check even with wget, that downloading with small buffer size (2-4k) make CPU load higher that with 16k
Attached patch netwerk buffer size fix (obsolete) — Splinter Review
Attachment #426171 - Flags: review?(jduell.mcbugs)
Attached patch Patch for downloading (obsolete) — Splinter Review
we probably can just completely remove the necko small buffers stuff.  No one uses it (or should given this new data).

What is the ideal values here?  Can we run different values through tp4?
Comment on attachment 426171 [details] [diff] [review]
netwerk buffer size fix

need data.
Attachment #426171 - Flags: review?(jduell.mcbugs) → review-
i'll clean up the code, and get some data.
Assignee: nobody → mozbugz
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Alfred suggested that we keep this bug open for the FF preferences that would change the buffer size and segment count
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Attached file Tp4 Data
I tested some builds using different buffer sizes and segment counts.  It looks likes 24 buffers of 32k should be the default used in necko.  What is more interesting is that CPU usage is much less than the other runs.
Attachment #426171 - Attachment is obsolete: true
Attachment #426172 - Attachment is obsolete: true
Attached patch patch v.1Splinter Review
Attachment #445731 - Flags: review?(jst)
blocking2.0: --- → ?
Attachment #445731 - Flags: review?(jst) → review+
Seems like a worthy thing to do for 1.9.3, given the performance improvements.
blocking2.0: ? → beta1+
http://hg.mozilla.org/mozilla-central/rev/a8c70cdbf50b

will close if this needs to be backed out for tests.
sad... we don't run tp4_%cpu on linux against mc; only on try.  worse, perftastic isn't showing anything conclusive on WINNT5.1 for tp4(cpu%).  Either way, it didn't hurt anything making this change.  Marking fixed.

I filed a bug 567304 to get tp4_%cpu run on linux.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Keywords: perf
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: