DefaultTasksMax / TasksMax / UserTasksMax

This document (000015901) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 SP2 and later ServicePacks
SUSE Linux Enterprise Server 15 GA and later ServicePacks
SUSE Linux Enterprise Server for SAP Applications 12 SP2 and later ServicePacks
SUSE Linux Enterprise Server for SAP Applications 15 GA and later ServicePacks

Situation

Sometimes default resource limitations are too resctricting and TasksMax values need adjusting.


Setting TaskMax values:

Global:

DefaultTasksMax only used in /etc/systemd/system.conf

Example of /etc/systemd/system.conf file:
[Manager]
DefaultTasksMax=15288


Unit/service:

In .unit files directly using TasksMax 
Example for sshd.service in /etc/systemd/system/sshd.service.d/override.conf file:
[Service] 
TasksMax=18100


Users:

For all users in /etc/systemd/logind.conf or specific user in /etc/systemd/logind.conf.d/userid.conf file using UserTasksMax .

Example of /etc/systemd/logind.conf file:
[Login]
UserTasksMax = 12288

Example of /etc/systemd/logind.conf.d/repair1.conf file: 
[Login]
UserTasksMax=18000

 

Resolution

Verifying: 
Looking system level DefaultTasksMax :

systemctl show --property DefaultTasksMax

which will return:
DefaultTasksMax=15288


Looking for sshd.service TaskMax value:

systemctl status sshd.service |grep -e Tasks

which will return:
     Tasks: 1 (limit: 18100)


Looking for what is the current TasksMax set for user:
Example: Checking TasksMax value for user repair1 which uid is 1001 .
This translates to user-slice : user-1001.slice
Now knowing the user-slice we can check the TasksMax value :

systemd-analyze dump | sed -n "/-> Unit user-1001.slice:/,/-> Unit /p"| grep -e "TasksMax="

which will return :
    TasksMax=18000
 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000015901
  • Creation Date: 26-Feb-2020
  • Modified Date:11-Mar-2020
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center