| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Note that other UNIXes I tested (Linux, IRIX) seem to handle mmap() more gracefully and the system remains fully usable during and after the mmap(). The amount of swapping is minimal.
There shouldn't really be any swap-out at all.
This was not due to the amount of free memory: The Linux box has about 256 MB RAM with ca. 150 MB free, the IRIX machine has only 64 MB with ca. 30 MB free. The Mac (a PowerBook 12") has 640 MB RAM, 180 MB were unused (inactive). All data was gathered with 'top'.
I know that I can give the VM manager hints about the memory usage (I use it sequentially), but memadvise() seems to be broken in OS X. I have this impression from previous posts to several mailing lists and my own experience.
| References: | |
| >Re: Strange behaviour of mmap() in OS X (From: Marcel Weiher <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.