Project

General

Profile

Bug #2162

unaligned requests are not handled async by AIO Sendfile

Added by arjan_wijnveen over 9 years ago. Updated about 3 years ago.

Status:
Obsolete
Priority:
High
Assignee:
-
Category:
core
Target version:
Start date:
2010-02-06
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:
Yes

Description

When a request is made for a file using the network_linux_aio backend an mmap() is setup, however when the request is unaligned (for example seeking in a video with mod_flv_streaming) the backend drops back to sync sendfile.
This causes a huge performance hit for video streaming sites. This patch forces the request to be aligned by padding the read offset to the previous page boundary

network_linux_aio.c.patch (2.04 KB) network_linux_aio.c.patch patch against trunk arjan_wijnveen, 2010-02-06 23:10
chunk.c.patch (352 Bytes) chunk.c.patch patch against trunk arjan_wijnveen, 2010-02-06 23:10
chunk.h.patch (325 Bytes) chunk.h.patch patch against trunk arjan_wijnveen, 2010-02-06 23:10

History

#1

Updated by stbuehler over 9 years ago

  • Target version set to 1.5.0
#2

Updated by gstrauss about 3 years ago

  • Missing in 1.5.x changed from No to Yes
#3

Updated by gstrauss about 3 years ago

  • Status changed from Patch Pending to Obsolete

Also available in: Atom