Project

General

Profile

Actions

Bug #2162

closed

unaligned requests are not handled async by AIO Sendfile

Added by arjan_wijnveen almost 15 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
High
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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


Files

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
Actions #1

Updated by stbuehler over 14 years ago

  • Target version set to 1.5.0
Actions #2

Updated by gstrauss over 8 years ago

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

Updated by gstrauss over 8 years ago

  • Status changed from Patch Pending to Obsolete
Actions

Also available in: Atom