HP-UX: Determin various kernel parameters: max_thread_proc, maxfiles, nproc etc.

Posted on 2007-10-15
Last Modified: 2013-12-06
HP-UX Superdome:
I need a Korn Shell script that will echo the parameters for the following values:
- max_thread_proc
- Maxfiles
- Nkthread
- Nproc
- Maxdsize

This is probably quite easy if you know how, I don't have a clue.
Question by:ignition00
    LVL 40

    Expert Comment


    in ksh, you may use ulimit -a to list process limits.

    for more info, please see

    For more info about kernel parameters, please see

    Author Comment

    Nice to work with you on another question in the same day :-)

    I need some help mathcing up the output from ulimit to the switches:
    [domain1636053@ssh ~]$ ulimit -a
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) 1000
    max nice                        (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 8190
    max locked memory       (kbytes, -l) 32
    max memory size         (kbytes, -m) 1000
    open files                      (-n) 1024
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 1000
    max rt priority                 (-r) 0
    stack size              (kbytes, -s) 10240
    cpu time               (seconds, -t) 60
    max user processes              (-u) 10
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited
    [domain1636053@ssh ~]$

    How do the outputs listed match to the orginal list:
    - max_thread_proc
    - Maxfiles
    - Nkthread
    - Nproc
    - Maxdsize

    LVL 40

    Expert Comment


    The link below may help in finding what ulimit returns
    LVL 20

    Accepted Solution

    What do you need this info for? `ulimit` shows individual users limits, but the system-wide kernel settings can be shown by kctune (or  it may be kmtune, depending or your version of HP-UX) .

    `man k*tune` for more info the command on your system
    LVL 16

    Expert Comment

    by:Hanno Schröder
    No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

    I will leave the following recommendation for this question in the Cleanup Zone:
    Accept tfewster's comment as answer.

    Any objections should be posted here in the next 4 days. After that time, the question will be closed.
    JustUNIX, Experts Exchange Cleanup Volunteer
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now