2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 01:51:26 +00:00

ovs-ctl: Allow to set custom core file size for ovs daemons.

Allow to set custom core file size with --ulimit-core argument.
This argument can be set in ovs config file
in rhel can set OPTIONS in /etc/sysconfig/openvswitch
in debian can set OVS_CTL_OPTS in /etc/default/openvswitch-switch.

Acked-by: Gaetan Rivet <gaetanr@nvidia.com>
Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
Roi Dayan 2025-05-18 10:53:11 +03:00 committed by Eelco Chaudron
parent d000ff1cd5
commit 261f02ba32
3 changed files with 10 additions and 1 deletions

View File

@ -199,6 +199,11 @@ The following options are less important:
Sets the Linux Out-Of-Memory (OOM) killer score for the OVS daemon
after it's been started.
* ``--ulimit-core=<LIMIT>``
Sets ulimit core file size for the OVS daemon after it's
been started.
* ``--ovsdb-server-priority=<niceness>`` or
``--ovs-vswitchd-priority=<niceness>``

2
NEWS
View File

@ -9,6 +9,8 @@ Post-v3.5.0
- ovs-ctl:
* Added a new option, --oom-score=<score>, to set the daemons' Linux
Out-Of-Memory (OOM) killer score.
* Added a new option, --ulimit-core=<LIMIT>, to set the daemon's ulimit
core file size.
- ovs-appctl:
* Added JSON output support to the 'ovs/route/show' command.
- SSL/TLS:

View File

@ -110,7 +110,7 @@ check_core_config () {
ulimit -c unlimited
fi
elif test X"$FORCE_COREFILES" = Xyes; then
ulimit -c 67108864
ulimit -c $ULIMIT_CORE
fi
}
@ -357,6 +357,7 @@ set_defaults () {
OVSDB_SERVER_UMASK=
OVS_VSWITCHD_UMASK=
OOM_SCORE=
ULIMIT_CORE=67108864
DB_FILE=$dbdir/conf.db
DB_SOCK=$rundir/db.sock
@ -450,6 +451,7 @@ Less important options for "start", "restart" and "force-reload-kmod":
--no-record-hostname do not attempt to determine/record system
hostname as part of start command
--oom-score=SCORE Set oom-score after starting ovs daemon.
--ulimit-core=LIMIT Set ulimit core file size.
Debugging options for "start", "restart" and "force-reload-kmod":
--ovsdb-server-wrapper=WRAPPER