Extend pipe buffer size error message

The message now logs the instructions on how to increase the per-process
page limit for pipe buffers. This can happen if fs.pipe-max-size
multiplied by the number of workers exceeds the value of
fs.pipe-user-pages-soft multiplied by 4096.
This commit is contained in:
Markus Mäkelä 2019-09-21 10:20:39 +03:00
parent 6830f517b4
commit 8ac11a97c2
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -148,7 +148,9 @@ MessageQueue* MessageQueue::create(Handler* pHandler)
*/
if (fcntl(fds[0], F_SETPIPE_SZ, this_unit.pipe_max_size) == -1)
{
MXB_WARNING("Failed to increase pipe buffer size to '%d': %d, %s",
MXB_WARNING("Failed to increase pipe buffer size to '%d': %d, %s. "
"Increase pipe-user-pages-soft (sysctl fs.pipe-user-pages-soft) "
"or reduce pipe-max-size (sysctl fs.pipe-max-size).",
this_unit.pipe_max_size, errno, mxb_strerror(errno));
}
else