Request for Review: 7007769: VM crashes with SIGBUS writing PerfData if tmp space is full
forax at univ-mlv.fr
Tue Dec 21 00:18:25 PST 2010
On 12/20/2010 08:49 PM, Bob Vandette wrote:
> New changeset for review.
> If there is very little /tmp space, the VM will be able to successfully mmap the
> performance data area in /tmp but when the VM attempts to access this memory
> region, it will crash with a SIGBUS if there is insufficient disk space in /tmp.
> Solaris will fail the ftruncate call we use to extend the newly created file but Linux does not.
> To work around this problem, I write a single byte to each page of the file about to be mmap'd
> top reserve the space on the disk.
> Bob Vandette
Linux has a specific mmap option that you can use in this case:
More information about the hotspot-runtime-dev