aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpm/systemd/CMakeLists.txt8
-rw-r--r--mpm/systemd/usrp-hwd.conf2
2 files changed, 10 insertions, 0 deletions
diff --git a/mpm/systemd/CMakeLists.txt b/mpm/systemd/CMakeLists.txt
index f56ccb076..da811c30f 100644
--- a/mpm/systemd/CMakeLists.txt
+++ b/mpm/systemd/CMakeLists.txt
@@ -10,6 +10,9 @@ PKG_CHECK_MODULES(SYSTEMD "systemd" REQUIRED)
PKG_GET_VARIABLE(SYSTEMD_SYSTEM_UNITDIR systemd systemdsystemunitdir)
message(STATUS "Systemd system unit directory ${SYSTEMD_SYSTEM_UNITDIR}")
+PKG_GET_VARIABLE(SYSTEMD_SYSCTLDIR systemd sysctldir)
+message(STATUS "Systemd sysctl directory ${SYSTEMD_SYSCTLDIR}")
+
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/usrp-hwd.service.in
${CMAKE_CURRENT_BINARY_DIR}/usrp-hwd.service
@@ -19,3 +22,8 @@ install(FILES
${CMAKE_CURRENT_BINARY_DIR}/usrp-hwd.service
DESTINATION ${SYSTEMD_SYSTEM_UNITDIR}
)
+
+install(FILES
+ ${CMAKE_CURRENT_SOURCE_DIR}/usrp-hwd.conf
+ DESTINATION ${SYSTEMD_SYSCTLDIR}
+)
diff --git a/mpm/systemd/usrp-hwd.conf b/mpm/systemd/usrp-hwd.conf
new file mode 100644
index 000000000..cf4996afa
--- /dev/null
+++ b/mpm/systemd/usrp-hwd.conf
@@ -0,0 +1,2 @@
+net.core.wmem_max=2500000
+net.core.rmem_max=2500000