Re: Swap

From: Andreas Dilger (adilger@turbolabs.com)
Date: Tue Nov 20 2001 - 23:23:36 EST


On Nov 21, 2001 02:45 +0100, Håvard Kvålen wrote:
> > (I just tried looking at XMMS and Freeamp - I *think* they are using
> > read(), but strace seems to do bad things with threaded programs,
> > argh...)
>
> You are right about XMMS, it uses read(). I'm not sure about Freeamp.

When I was hacking on mpg123, it was using mmap by default unless it was
unable to mmap the file (e.g. stdin) where it uses read. You could turn
this off at compile time, so it only uses read. I found that to work
better on low memory machines.

Cheers, Andreas

--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

- 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/



This archive was generated by hypermail 2b29 : Fri Nov 23 2001 - 21:00:26 EST