mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
A typical OS imposed limit is 1024 open FD, which can bee too low when there are hundreds of concurrent voice calls. In systemd service file, set a super high limit of 65536. In osmo-mgw's user manual, add section 'Configure limits' describing this in detail. Related: OS#6256 Related: osmo-bsc I26c4058484b11ff1d035a919bf88824c3af14e71 Change-Id: I46512517bc3b5bb90cac7643e7ac73afba398d36
22 lines
567 B
Desktop File
22 lines
567 B
Desktop File
[Unit]
|
|
Description=Osmocom Media Gateway (MGW)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
LimitNOFILE=65536
|
|
StateDirectory=osmocom
|
|
WorkingDirectory=%S/osmocom
|
|
Restart=always
|
|
ExecStart=/usr/bin/osmo-mgw -s -c /etc/osmocom/osmo-mgw.cfg
|
|
RestartSec=2
|
|
# CPU scheduling policy:
|
|
CPUSchedulingPolicy=rr
|
|
# For real-time scheduling policies an integer between 1 (lowest priority) and 99 (highest priority):
|
|
CPUSchedulingPriority=1
|
|
# See sched(7) for further details on real-time policies and priorities
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|