ha/service-mgmt/sm/scripts
Alyson Deives Pereira 25ddaa31f9 Set max open file limit for sm service
The sm process initializes with the default limit
for the maximum number of open files. If somehow this default value is
set to a high value, performance degradation can occur. For instance,
the sm_service_action_run method from sm_service_action.c contains a
for loop that closes file descriptors up to this limit.

To avoid performance degradation, this change sets the limit for
the maximum open files to 1024 using the systemd property LimitNOFILE.

TEST PLAN:
PASS: Confirm that 1024 is the max open file limit in
  /proc/<sm_pid>/limits.

Story: 2010087
Task: 47102

Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
Change-Id: Iff848da7461a8b644057e9f58c69fa2d78499226
2023-01-03 17:51:01 -03:00
..
Makefile Debian: Remove conf files from etc-pmon.d 2022-09-26 13:40:41 +00:00
sm Update SM lsb script for quick start 2022-12-05 16:10:55 +00:00
sm-shutdown.service Remove version from sm folder 2019-09-26 14:11:31 -05:00
sm.conf Update SM lsb script for quick start 2022-12-05 16:10:55 +00:00
sm.logrotate Remove version from sm folder 2019-09-26 14:11:31 -05:00
sm.notification Removing unused flag disable_worker_services 2019-11-02 08:34:56 +08:00
sm.notify Remove version from sm folder 2019-09-26 14:11:31 -05:00
sm.service Set max open file limit for sm service 2023-01-03 17:51:01 -03:00
sm.shutdown Remove version from sm folder 2019-09-26 14:11:31 -05:00
sm.troubleshoot Remove sm-watchdog service since NFS is now stable 2022-08-19 19:57:43 +00:00