Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
8db0e44d
Commit
8db0e44d
authored
Sep 14, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log which sysctl variables are changed in RFsim
parent
21790f9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
radio/rfsimulator/simulator.c
radio/rfsimulator/simulator.c
+4
-0
No files found.
radio/rfsimulator/simulator.c
View file @
8db0e44d
...
@@ -611,24 +611,28 @@ static void customNetForPerf()
...
@@ -611,24 +611,28 @@ static void customNetForPerf()
char
sysctlmem
[
256
];
char
sysctlmem
[
256
];
memset
(
sysctlmem
,
0
,
256
);
memset
(
sysctlmem
,
0
,
256
);
sprintf
(
sysctlmem
,
"/sbin/sysctl -n -e -q -w net.core.rmem_default=%d"
,
SYSCTL_MEM_VALUE
);
sprintf
(
sysctlmem
,
"/sbin/sysctl -n -e -q -w net.core.rmem_default=%d"
,
SYSCTL_MEM_VALUE
);
LOG_W
(
HW
,
"running command
\"
%s
\"
to increase RFsim performance
\n
"
,
sysctlmem
);
res
=
system
(
sysctlmem
);
res
=
system
(
sysctlmem
);
if
(
res
!=
0
)
{
if
(
res
!=
0
)
{
LOG_W
(
HW
,
"Cannot set net.core.rmem_default to %d
\n
"
,
SYSCTL_MEM_VALUE
);
LOG_W
(
HW
,
"Cannot set net.core.rmem_default to %d
\n
"
,
SYSCTL_MEM_VALUE
);
}
}
memset
(
sysctlmem
,
0
,
256
);
memset
(
sysctlmem
,
0
,
256
);
sprintf
(
sysctlmem
,
"/sbin/sysctl -n -e -q -w net.core.rmem_max=%d"
,
SYSCTL_MEM_VALUE
);
sprintf
(
sysctlmem
,
"/sbin/sysctl -n -e -q -w net.core.rmem_max=%d"
,
SYSCTL_MEM_VALUE
);
LOG_W
(
HW
,
"running command
\"
%s
\"
to increase RFsim performance
\n
"
,
sysctlmem
);
res
=
system
(
sysctlmem
);
res
=
system
(
sysctlmem
);
if
(
res
!=
0
)
{
if
(
res
!=
0
)
{
LOG_W
(
HW
,
"Cannot set net.core.rmem_max to %d
\n
"
,
SYSCTL_MEM_VALUE
);
LOG_W
(
HW
,
"Cannot set net.core.rmem_max to %d
\n
"
,
SYSCTL_MEM_VALUE
);
}
}
memset
(
sysctlmem
,
0
,
256
);
memset
(
sysctlmem
,
0
,
256
);
sprintf
(
sysctlmem
,
"/sbin/sysctl -n -e -q -w net.core.wmem_default=%d"
,
SYSCTL_MEM_VALUE
);
sprintf
(
sysctlmem
,
"/sbin/sysctl -n -e -q -w net.core.wmem_default=%d"
,
SYSCTL_MEM_VALUE
);
LOG_W
(
HW
,
"running command
\"
%s
\"
to increase RFsim performance
\n
"
,
sysctlmem
);
res
=
system
(
sysctlmem
);
res
=
system
(
sysctlmem
);
if
(
res
!=
0
)
{
if
(
res
!=
0
)
{
LOG_W
(
HW
,
"Cannot set net.core.wmem_default to %d
\n
"
,
SYSCTL_MEM_VALUE
);
LOG_W
(
HW
,
"Cannot set net.core.wmem_default to %d
\n
"
,
SYSCTL_MEM_VALUE
);
}
}
memset
(
sysctlmem
,
0
,
256
);
memset
(
sysctlmem
,
0
,
256
);
sprintf
(
sysctlmem
,
"/sbin/sysctl -n -e -q -w net.core.wmem_max=%d"
,
SYSCTL_MEM_VALUE
);
sprintf
(
sysctlmem
,
"/sbin/sysctl -n -e -q -w net.core.wmem_max=%d"
,
SYSCTL_MEM_VALUE
);
LOG_W
(
HW
,
"running command
\"
%s
\"
to increase RFsim performance
\n
"
,
sysctlmem
);
res
=
system
(
sysctlmem
);
res
=
system
(
sysctlmem
);
if
(
res
!=
0
)
{
if
(
res
!=
0
)
{
LOG_W
(
HW
,
"Cannot set net.core.wmem_max to %d
\n
"
,
SYSCTL_MEM_VALUE
);
LOG_W
(
HW
,
"Cannot set net.core.wmem_max to %d
\n
"
,
SYSCTL_MEM_VALUE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment