lkml.org 
[lkml]   [2001]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Swap
Date
> I bet they're getting mmap()d, like all mp3 programs seem to do

Just a note here - I see much fewer buffer underruns and more consistent
read-ahead/drop-behind behavior (i.e. no paging of other programs) when
using plain read(), as opposed to mmap(). This is in a video playback
program that pumps 3.6MB/sec!

MP3 datarates are less than 50KB/sec, so I don't really see why they stand
to benefit from mmap()... With mmap() you pay the extra cost of setting
up/tearing down the mapping, and the kernel->user copy is virtually
insignificant anyway (you already are paying for a single copy plus cache
pollution when moving the data from filesystem buffer to sound card DMA
buffer, so a second copy isn't a big deal)...

Regards,
Dan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.060 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site