[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3494
  • Last Modified:

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

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.
0
ignition00
Asked:
ignition00
1 Solution
 
omarfaridCommented:
Hi,

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

for more info, please see

http://bama.ua.edu/cgi-bin/man-cgi?ulimit+1

For more info about kernel parameters, please see

http://docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html
0
 
ignition00Author Commented:
Omarfarid,
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

Thanks
0
 
omarfaridCommented:
Hi,

The link below may help in finding what ulimit returns

http://bama.ua.edu/cgi-bin/man-cgi?getrlimit+2
0
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

 
tfewsterCommented:
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
0
 
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
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
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now