mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
changes to compile server in defs file
This commit is contained in:
parent
63507840e0
commit
f77b78b5c6
@ -8,7 +8,9 @@
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#ifdef __cplusplus
|
||||
#include <string>
|
||||
#endif
|
||||
#include "ansi.h"
|
||||
|
||||
|
||||
@ -112,7 +114,7 @@ public:
|
||||
RUNNING /**< acquisition running, no data in memory */
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
/** returns string from enabled/disabled
|
||||
\param b true or false
|
||||
\returns string enabled, disabled
|
||||
@ -172,6 +174,7 @@ public:
|
||||
default: return std::string("idle"); \
|
||||
}};
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
protected:
|
||||
|
@ -43,10 +43,11 @@ UDPStandardImplementation::UDPStandardImplementation(){
|
||||
|
||||
//to increase socket receiver buffer size and max length of input queue by changing kernel settings
|
||||
if(myDetectorType == EIGER);
|
||||
else if(system("echo $((100*1024*1024)) > /proc/sys/net/core/rmem_max"))
|
||||
else if(system("echo $((100*1024*1024)) > /proc/sys/net/core/rmem_max")){
|
||||
FILE_LOG(logDEBUG) << "Warning: No root permission to change socket receiver buffer size in file /proc/sys/net/core/rmem_max";
|
||||
else if(system("echo 250000 > /proc/sys/net/core/netdev_max_backlog"))
|
||||
}else if(system("echo 250000 > /proc/sys/net/core/netdev_max_backlog")){
|
||||
FILE_LOG(logDEBUG) << "Warning: No root permission to change max length of input queue in file /proc/sys/net/core/netdev_max_backlog";
|
||||
}
|
||||
/** permanent setting by heiner
|
||||
net.core.rmem_max = 104857600 # 100MiB
|
||||
net.core.netdev_max_backlog = 250000
|
||||
|
Loading…
x
Reference in New Issue
Block a user