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