Hi, I've read some reports that calling mmap() on SMP systems can be
slow. Solaris has quite a few memory allocators, which makes a bit hard
to figure out the best memory allocation technique on SMP hardware.

I have single threaded application, which allocates large chunks of
memory (256K at a time) for caching data. This allocated memory can
grow to several gigabytes in size. What do you think will give better
performance on large SMP systems, calling mmap() or one of Solaris'
general memory allocators?

Also, Solaris' mmap() has MAP_NORESERVE flag. Would you normally use
this flag when mmaping chunks of memory for caching data? So that you
expect this data to remain in memory per performance reasons and not be
written to disk.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to