- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: maxdsiz
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 10:53 AM
02-06-2002 10:53 AM
What is the maxdsiz equivalent parameter in Solaris ? Please excuse if I have posted it wrong place. Curious to know.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 01:43 PM
02-06-2002 01:43 PM
SolutionI'm not sure there is a DOCUMENTED direct relationship, but:
There is often a need to change the default har d and soft limit values. Sometimes the maximums need to be r educed to keep processes from hogging the system and sometimes the default number of files needs to be incr eased. Rather than setting limits in every user login script the global default limits in the kernel can be changed. In generic Unix System V Release 4 this is performed by setting some symbolic variables and r ebuilding the kernel. In Solaris 2 the /etc/system method cannot be used since there are no variables corresponding to the individual limits, just a single rlimits data str ucture. The kernel must be patched using adb. The elements ar e laid out as shown by the sysdef -i command, which shows the values in hexadecimal.
To increase the default number of file descriptors per pr ocess rlimits+28 must be patched with adb as shown below .
The commands shown below permanently patch the default number of file descriptors to 128 (0x80) in the /kernel/unix file using "?" and also patch the current copy in memory using "/".
Soft:Hard Resource byte offset in hex Infinity:Infinity cpu time 0: 4 Infinity:Infinity file size 8: c 1fefe000:1fefe000 heap size 10:14 800000: ff00000 stack size 18:1c Infinity:Infinity core file size 20:24 40: 400 file descriptors 28:2c Infinity:Infinity mapped memory 30:34
# cp /kernel/unix /kernel/unix.orig # adb -k -w /kernel/unix /dev/mem rlimits,e?X rlimits: rlimits: 7fffffff 7fffffff 7fffffff 7fffffff 1fefe000 1fefe000 800000 ff00000 7fffffff 7fffffff 40 400 7fffffff 7fffffff
Warning - using adb to patch the kernel dir ectly is a potentially danger ous operation. Mistyping a command could crash the system or r ender it unbootable. Save an unpatched kernel copy . Do not incr ease the hard limits.
Buffer Sizes And Tuning Variables 49
from:
http://www.cs.ualberta.ca/operations/Doc/Sun-Tuning/SunPerfOvDec93.ps.gz
in Solaris, it's the HEAP (datasize in ulimit). Using the mapping above you can change it - good luck!!!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 07:09 PM
02-06-2002 07:09 PM
Re: maxdsiz
I agree with Harry.
In Solaris, using ulimit with the -d option sets the maximum size of a process's data segment eg.
# ulimit -d 65536
This sets the process's maximum data segment size to 64 MB.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 03:30 AM
02-07-2002 03:30 AM
Re: maxdsiz
Allen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 04:01 AM
02-07-2002 04:01 AM
Re: maxdsiz
I spent at least three hours on that one. I have a sparky-ultra5 on my desk (that I use about twice a month), and I even asked my consultant and they had no clue. But it was time well spent, because I believe that Hp approached the issue correctly by making this a true kernel parameter. I don't want some rogue runaway program consuming memory like candy. If I have a need, and I have, I jack maxdsiz up, but only based upon need not greed :-))
live free or die
harry