Process Limits

This topic presents the various limits you need to understand when developing your SDK applications.

When a process exceeds a specified memory limit, the operating system might swap out the related memory page until more memory becomes available.

Limits on the Routing Engine

On the Routing Engine, restrictions on SDK daemons depend on whether the daemon has been defined with the Application role or the Daemon role in the build manifest (for more information, see Specifying Roles.)

Application Role Limits on the Routing Engine

Daemon Role Limits on the Routing Engine

Limits on the Multiservices PIC

The following limits apply to daemons running on the Multiservices PIC.

To display the limits, use the following command:

root@ms-pic% limit

The limits appear as follows:

cputime      unlimited
filesize     unlimited
datasize     32768 kbytes
stacksize    8192 kbytes
coredumpsize unlimited
memoryuse    30720 kbytes
vmemoryuse   unlimited
descriptors  64
memorylocked 10240 kbytes
maxproc      64
sbsize       unlimited

Altering Resource Limits on the Multiservices PIC

The following code snippet shows how to obtain and reset a resource limit:

   struct rlimit rlim;
   
   getrlimit(RLIMIT_DATA, &rlim);
   rlim.rlim_cur = rlim.rlim_max;
   setrlimit(RLIMIT_DATA, &rlim);

2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:26:47 2010 for Juniper Networks Partner Solution Development Platform JUNOS SDK 10.2R1 by Doxygen 1.4.5