[lkml]   [2001]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Swap
> 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)...


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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