ha/service-mgmt/sm
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
..
centos Debian: Remove conf files from etc-pmon.d 2022-09-26 13:40:41 +00:00
debian Merge "Debian: Remove conf files from etc-pmon.d" 2022-09-30 19:10:32 +00:00
opensuse openSUSE: Open Build Service Artifacts 2019-10-09 10:05:20 -05:00
scripts Set max open file limit for sm service 2023-01-03 17:51:01 -03:00
src Remove sm-watchdog service since NFS is now stable 2022-08-19 19:57:43 +00:00
LICENSE Remove version from sm folder 2019-09-26 14:11:31 -05:00
Makefile Remove version from sm folder 2019-09-26 14:11:31 -05:00