Skip to content

Commit 9ab3738

Browse files
committed
Linux net buf increase hint sysct.conf path change
Changed the path to from /etc/sysctl.conf to /etc/sysctl.d/60-ultragrid.conf. It seems like systemd 256 no longer applies /etc/sysctl.conf directly but only the sysctl.d/*conf. Keeping the changes separate is nicer, anyways. It should work for non-systemd systems as well, checked Alpine and Void (runit).
1 parent 32322f2 commit 9ab3738

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/video_rxtx/rtp.cpp

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -257,20 +257,23 @@ void rtp_video_rxtx::display_buf_increase_warning(int size)
257257
#else
258258
#define SYSCTL_ENTRY "net.core.rmem_max"
259259
#endif
260-
log_msg(LOG_LEVEL_INFO,
261-
"Please set " SYSCTL_ENTRY " value to %1$d or greater (see also\n"
262-
"https://github.com/CESNET/UltraGrid/wiki/OS-Setup-UltraGrid):\n"
260+
log_msg(
261+
LOG_LEVEL_INFO,
262+
"Please set " SYSCTL_ENTRY " value to %1$d or greater (see also\n"
263+
"https://github.com/CESNET/UltraGrid/wiki/OS-Setup-UltraGrid):\n"
263264
#ifdef __APPLE__
264-
"\tsysctl -w kern.ipc.maxsockbuf=%2$d\n"
265+
"\tsysctl -w kern.ipc.maxsockbuf=%2$d\n"
265266
#endif
266-
"\tsysctl -w " SYSCTL_ENTRY "=%1$d\n"
267-
"To make this persistent, add these options (key=value) to /etc/sysctl.conf\n"
268-
"\n***\n\n",
269-
size
267+
"\tsysctl -w " SYSCTL_ENTRY "=%1$d\n"
268+
"To make this persistent, add these options (key=value) to "
269+
"/etc/sysctl.d/60-ultragrid.conf\n"
270+
"\n***\n\n",
271+
size
270272
#ifdef __APPLE__
271-
, size * 4
273+
,
274+
size * 4
272275
#endif /* __APPLE__ */
273-
);
276+
);
274277
#undef SYSCTL_ENTRY
275278
}
276279

0 commit comments

Comments
 (0)