unable to anonymously mmap 16777216: Resource temporarily unavailable

Problem

When attempting to burn a DVD using growisofs, the following error message is printed:

unable to anonymously mmap 16777216: Resource temporarily unavailable

Affected Distributions

Details

This is caused by a low default memorylocked resource limit in newer Linux kernels.

Solution

To work around this limit, issue the following command prior to running the growisofs command:

# ulimit -l unlimited