Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
c44e135a
Commit
c44e135a
authored
1 year ago
by
Corné Lukken
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SS-1538
-annotate-udp-buffer' into 'master'
L2SS-1538
: Explain how to increase UDP buffer size Closes
L2SS-1538
See merge request
!748
parents
0da37e29
3cc33b3e
No related branches found
No related tags found
1 merge request
!748
L2SS-1538: Explain how to increase UDP buffer size
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tangostationcontrol/tangostationcontrol/clients/udp_receiver.py
+5
-1
5 additions, 1 deletion
...tationcontrol/tangostationcontrol/clients/udp_receiver.py
tangostationcontrol/tangostationcontrol/devices/sdp/statistics.py
+1
-0
1 addition, 0 deletions
...tioncontrol/tangostationcontrol/devices/sdp/statistics.py
with
6 additions
and
1 deletion
tangostationcontrol/tangostationcontrol/clients/udp_receiver.py
+
5
−
1
View file @
c44e135a
...
@@ -83,11 +83,15 @@ class UDPReceiver(Thread, StatisticsClientThread):
...
@@ -83,11 +83,15 @@ class UDPReceiver(Thread, StatisticsClientThread):
)
)
if
self
.
parameters
[
"
recv_buffer_size
"
]
<
self
.
options
[
"
recv_buffer_size
"
]:
if
self
.
parameters
[
"
recv_buffer_size
"
]
<
self
.
options
[
"
recv_buffer_size
"
]:
# Typically this is the host OS not allowing us to allocate buffers
# of this size. Try increasing it using (as root):
# sysctl -w net.core.rmem_max=$((16*1024*1024))
logger
.
error
(
logger
.
error
(
f
"
OS does not allow requested buffer size.
"
f
"
OS does not allow requested buffer size.
"
f
"
This could result in UDP packet loss.
"
f
"
This could result in UDP packet loss.
"
f
'
Requested
{
self
.
options
[
"
recv_buffer_size
"
]
}
bytes,
'
f
'
Requested
{
self
.
options
[
"
recv_buffer_size
"
]
}
bytes,
'
f
'
got
{
self
.
parameters
[
"
recv_buffer_size
"
]
}
.
'
f
'
got
{
self
.
parameters
[
"
recv_buffer_size
"
]
}
. Verify
'
f
'
if
"
sysctl net.core.rmem_max
"
is sufficiently large.
'
)
)
# specify what host and port to listen on
# specify what host and port to listen on
...
...
This diff is collapsed.
Click to expand it.
tangostationcontrol/tangostationcontrol/devices/sdp/statistics.py
+
1
−
0
View file @
c44e135a
...
@@ -58,6 +58,7 @@ class Statistics(OPCUADevice):
...
@@ -58,6 +58,7 @@ class Statistics(OPCUADevice):
)
)
# size of UDP receive buffer
# size of UDP receive buffer
udp_recv_buffer_size_R
=
AttributeWrapper
(
udp_recv_buffer_size_R
=
AttributeWrapper
(
doc
=
"
Buffer size for receiving UDP packets.
"
,
comms_id
=
StatisticsClient
,
comms_id
=
StatisticsClient
,
comms_annotation
=
{
"
type
"
:
"
udp
"
,
"
parameter
"
:
"
recv_buffer_size
"
},
comms_annotation
=
{
"
type
"
:
"
udp
"
,
"
parameter
"
:
"
recv_buffer_size
"
},
datatype
=
numpy
.
uint64
,
datatype
=
numpy
.
uint64
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment