Re: Downsides to madvise/fadvise(willneed) for application startup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Theodore Tso
Date: Friday, April 16, 2010 - 5:23 am

On Apr 16, 2010, at 7:41 AM, Andi Kleen wrote:


... and those people who are executing the binary out of the build directory are probably running the regression  test (i.e., "make; make check") and on most developer machines, if they're lucky they have enough memory that the executable will still be in their page cache.   :-)

This being said, on modern file systems (i.e., btrfs, ext4, xfs, et. al), delayed allocation should mostly hide this problem; and if not, and the linker can estimate in advance how big the resulting binary will be, it could be modified to use the fallocate(2) system call.

-- Ted


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Downsides to madvise/fadvise(willneed) for application ..., Theodore Tso, (Fri Apr 16, 5:23 am)