On Thu, 2 Feb 2017, Jacob Champion wrote:

On 02/02/2017 03:05 PM, Yann Ylavic wrote:
Hmm, Linux raises SIGBUS if an mmap is used after the underlying file
has been truncated (see [1]).

See also https://bz.apache.org/bugzilla/show_bug.cgi?id=46688 .

Niklas, just to clarify: you're not willfully truncating large files as they're being served, right? I *can* reproduce a SIGBUS if I start truncating files during my stress testing. But EnableMMAP's documentation calls that case out explicitly.

We're using our own large-file tuned cache module (I know, we should really publish it properly), and clean on oldest atime with a script that does rm. There's nothing cache-related that I know of that ever truncates files.

Just to rule it out, I changed our httpd init script to leave the stacksize ulimit at Linux default (8MB) without changing anything else.

/Nikke
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se      |     [email protected]
---------------------------------------------------------------------------
 This tagline SHAREWARE.  Send $5.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Reply via email to