• Home
  • About
  • Map
  • Archives
  • Videos
  • Gallery
Grab the RSS feed

spiralbound.net

spiralbound.net
  • Home
  • Adventures
  • Data and Technology
  • Et cetera
  • Highlights

Increase The Max Number of Processes Per UID in Solaris

  • Data and Technology

    Posted on March 31st, 2006

    Written by cliff

    Related Posts

    • NetBackup, Solaris 9, and LTO2 drives
    • How to Enable SSL for CSWapache2
    • ZoneType.sh Version 2.0

    Tags

    kernel, kernel tuning, max number of processes per user, max number processes, maxuprc, max_nprocs, ncsize, ndquot, per-user processes, set maxuprc, set maxusers, set max_nprocs, set ndquot, set ufs_ninode, solaris, sysdef -i, user processes, v.v_maxup, v.v_proc, VFork failed
    Increase The Max Number of Processes Per UID in Solaris

    If you are running solaris 8 or 9, and getting strange errors like:

    “VFork failed”

    when you try to run commands, or

    “Mar 31 10:40:32 sauron genunix: [ID 748887 kern.notice] NOTICE: out of per-user processes for uid 1234″

    from the dmesg command output, the most likely cause is that you have exceeded the maximum number of processes per user that you are allowed to run on your server.

    To be sure, you can run:

    ps -ef | grep <uid> | wc -l

    and compare that number against the v.v_proc settings from the command:

    sysdef -i

    There will be a lot of output from “sysdef -i”, but you are looking for “v.v_proc” and “v.v_maxup”. “v.v_proc” is the max number of processes per user, and “v.v_maxup” is the max number of processes plus the reserved number for root.

    You should see something like this:

    4058 maximum number of processes (v.v_proc)
    99 maximum global priority in sys class (MAXCLSYSPRI)
    4053 maximum processes per user id (v.v_maxup)

    Since the settings in this example is 4058, if 4058 is something like what you are seeing in the output of:

    ps -ef | grep <uid> | wc -l

    Than you will need to increase the value of v.v_proc and v.v_maxup. The good news is it’s easy to to. The bad news is that the settings you need to change are NOT v.v_proc and v.v_maxup. It is, instead, the “maxusers” value. The other bad news is that you can’t change them dynamicly.

    Here is what you will most likely want to add to your /etc/system file. Tweak the setting as needed:

    set maxusers = <This should be something like the amount of available physical memory in MB>

    Then reboot the system, and your maximum number of processes per user should now be set to something much more reasonable than the Solaris defaults.

    As you can see, setting maxusers to a value will control max_nprocs and maxuprc. The algorythms are:
    max_nprocs = 10 + (16 x maxusers)
    maxuprc = max_nprocs – reserved_procs (default is 5)

    As a result, usually only maxusers is tuned.

    This entry was posted on Friday, March 31st, 2006 at 2:41 pm and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 1 Comment

    Take a look at some of the responses we have had to this article.

    1. Random Moments » Blog Archive » What i’ve been working on. (a big one)
      Nov 1st
      Reply

      [...] Thanks to help from the folliwing link http://spiralbound.net/2006/03/31/how-to-increase-the-maximum-number-of-processes-per-uid-in-solaris/ [...]

  • Leave a Reply

    Let us know what you thought. Click here to cancel reply.

  • Name(required):

    Email(required):

    Website:

    Message:

  • Sponsor
  • Recent Comments
    • fabioamd87 on IFCONFIG Does Not give You Link Status; ETHTOOL Does
    • Komil on Quick Start Guide for Asterisk
    • cheap tiffany s jewelry and mont blanc pens on German Kite Skates Across Australia
    • Kim on Giant Rabbits in North Korea
    • Emad on Little Japanese Trucks
    • Jonathan on Why Did my Arm Fall Asleep?
    • Jenn on 802 – Hip Hop Vermont Style

Copyright © 2010 spiralbound.net - Powered by Wordpress