On Mon, 15 Apr 2013 03:07:41 +0200 Lionel Cons wrote:
> Based on the recent discussion about using mmap() for reading the
> results of command substitutions I did some testing and found that on
> Solaris (Solaris 11 and a 64bit build) ksh93 still behaves not
> optimal. The primary problem I see is that MANY mmap() calls with a
> very small map size (524288 bytes) are executed instead of either
> mapping the input file in one large chunk or at least uses a chunk
> size large enough that the system can use largepages (2M for x86,
> 4M/32M/256M for SPARC64) if possible. Using a chunk size of 524288
> bytes is a joke.

> Is there a specific reason why the the code in sfrd.c only maps such
> small chunks (I'd expect that a 64bit process could easily map 16GB
> each time) from a file or is this a bug?

provide some iffe code that spits out the optimal mmap() page size
for the current os/arch/configuration and that can be rolled into sfio

_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to