diff options
author | Joerg Hofrichter <joerg.hofrichter@ni.com> | 2020-04-24 11:30:29 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-05-01 15:22:07 -0500 |
commit | 55793604e5e9dbaec81c8fbf8129d4ac7528ab69 (patch) | |
tree | 00af418ccedc8d6ad6e0ef8b9fba314a7ca153ae /mpm/systemd/CMakeLists.txt | |
parent | 1a00949b19eaecb84af0f27c370400dc71a9fd84 (diff) | |
download | uhd-55793604e5e9dbaec81c8fbf8129d4ac7528ab69.tar.gz uhd-55793604e5e9dbaec81c8fbf8129d4ac7528ab69.tar.bz2 uhd-55793604e5e9dbaec81c8fbf8129d4ac7528ab69.zip |
mpm: systemd: added sysconf file for setting network buffer sizes
udp_zero_copy requires the network send buffer size (net.core.wmem_max)
and the network receive buffer size (net.core.rmem_max) to be set to
2500000 bytes (UDP_DEFAULT_BUFF_SIZE in udp_common.hpp).
Add a sysconf file (usrp-hwd.conf) to automatically set the recommended
values.
Diffstat (limited to 'mpm/systemd/CMakeLists.txt')
-rw-r--r-- | mpm/systemd/CMakeLists.txt | 8 |
1 files changed, 8 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} +) |