changes to compile server in defs file

This commit is contained in:
Dhanya Maliakal 2015-11-02 15:55:15 +01:00
parent 63507840e0
commit f77b78b5c6
2 changed files with 7 additions and 3 deletions

View File

@ -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:

View File

@ -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