How to Use ulimit

Source: Internet
Author: User

How to Use ulimit to manage different types of system resources through some Parameter options. In this section, we will explain how to use these parameters. The format of the www.2cto.com ulimit command is ulimit [options] [limit]. For the specific options meaning and simple examples, see the following table. Table 1. ulimit parameter description: www.2cto.com option [options] Meaning example-H sets the hard resource limit. Once set, it cannot be added. Ulimit-Hs 64; hard resources are restricted. The thread stack size is 64 KB. -S sets the soft resource limit. It can be added after setting, but cannot exceed the hard resource setting. Ulimit-Sn 32; restrict soft resources and 32 file descriptors. -A displays all current limit information. Ulimit-a; displays all current limit information. -C: maximum core file size, in blocks. Ulimit-c unlimited; the size of the generated core file is not limited. -The maximum data segment size of the d process, in Kbytes. Ulimit-d unlimited; do not limit the Data Segment Size of the process. -F process can create the maximum number of files, in blocks. Ulimit-f 2048; restrict the maximum file size that can be created by a process to 2048 blocks. -L maximum lockable memory size, in Kbytes. Ulimit-l 32; the maximum lockable memory size is 32 Kbytes. -Maximum memory size of m, in Kbytes. Ulimit-m unlimited; maximum memory is not limited. -N indicates the maximum number of file descriptors that can be opened. Ulimit-n 128; a maximum of 128 file descriptors can be used. The size of the-p MPs queue buffer, in Kbytes. Ulimit-p 512; limit the MPs queue buffer size to 512 Kbytes. -S thread stack size, in Kbytes. Ulimit-s 512; limits the thread stack size to 512 Kbytes. -T indicates the maximum CPU usage time, in seconds. Ulimit-t unlimited; the maximum CPU usage time is not limited. -U maximum number of processes available to users. Ulimit-u 64; limit that users can use up to 64 processes. -V process maximum available virtual memory, in Kbytes. Ulimit-v 200000; Limit the maximum available virtual memory to 200000 Kbytes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.