Skip to main content

Lab 018: Linux Resource Limits


Lab 018: Linux Resource Limits

Requirements

On our Storage server in Stratos Datacenter we are having some issues where nfsuser user is holding hundred of processes, which is degrading the performance of the server. Therefore, we have a requirement to limit its maximum processes. Please set its maximum process limits as below:

a. soft limit = 1026 b. hard_limit = 2024


Note

This lab focuses on Linux Resource Limits configuration and management.

Prerequisites

  • SSH access to the target server with root or sudo privileges.
  • Required utilities and packages available.

Steps

Login to the storage server and switch to root. For the server credentials, check out the Project Nautilus documentation.

sshpass -p '*****' ssh -o StrictHostKeyChecking=no natasha@172.16.238.15
sudo su -
*****

Edit the limitss.conf file and add the following

vi /etc/security/limits.conf

...........
@nfsuser soft nproc 1026
@nfsuser hard nproc 2024
...........

Verification

  • Confirm changes applied successfully.
  • Verify configuration with appropriate show/list commands.
  • Test functionality if applicable.

Resources