Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > HP-UX > general

MAXTSIZ PARAMETER

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: MAXTSIZ PARAMETER      Add to my favorites
Nilzelio Monteiro
May 23, 2001 17:35:21 GMT   

I have a process that is growing. The kernel maxtsiz parameter was configured to 128Mb (it was 64Mb). I think that 128Mb is not a memory segment large enough to this process, because it has stopped due to out of memory.
My questions are:
What is the maximum value that I can configure the maxtsiz ? And what are the implications to the system?
The system has 512Mb of ram memory.

Thankx
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Bill Hassell Expert in this area This member has accumulated 40000 or more points
May 24, 2001 01:45:52 GMT  10 pts

Processes never grow in the text space. maxtsiz refers to the unchanging instructions in the program which is fixed at the time the program is compiled. The text quadrant is separate from the data area (maxdsiz) which indeed can grow as the program requires. The parameter you need to adjust is maxdsiz (and if your program is compiled as 64-bit code, maxdsiz_64).

These kernel parmeters exist as fences to prevent badly designed programs from consuming RAM and swap space. I would bump maxdsize to 500 megs for now and investigate what the program will eventually need as a maximum value. For a 32-bit program, addressability will be limited to apx 940 megs in the data area or with EXEC_MAGIC, about 1750 megs.

Make sure you have adequate swap space in case the program grows far larger than available RAM.
Vincenzo Restuccia This member has accumulated 2500 or more points
May 23, 2001 17:40:37 GMT  3 pts

maxtsiz
maxtsiz specifies the maximum shared-text segment size in bytes.

Acceptable Values:
maxtsiz for 32-bit processors:

Minimum
0x40000 (4 Mbytes)
Maximum
0x7B033000 (approx 2 Gbytes)
Default
0x4000000 (64 Mbytes)
maxtsiz_64bit for 64-bit processors:

Minimum
0x40000 (4 Mbytes)
Maximum
4398046511103 (approx 4 Gbytes)
Default
0x4000000 (64 Mbytes)
Specify integer value. For more information, see Specifying Parameter Values.

Description
maxtsiz and maxtsiz_64bit define, for 32-bit and 64-bit processors respectively, the maximum size of the shared text segment (program storage space) of an executing process. Program executable object code is stored as read-only, and thus can be shared by multiple processes if two or more processes are executing the same program simultaneously, for example.

The normal default value accommodates the text segments of most processes. Unless you plan to execute a process with a text segment larger than 64 Mbytes, do not modify maxtsiz or maxtsiz_64bit.

Each time the system loads a process with shared text, the system checks the size of its shared text segment. The system issues an error message and aborts the process if the process' text segment exceeds maxtsiz or maxtsiz_64bit.

See http://docs.hp.com/hpux/onlinedocs/os/KCparam.MaxTsiz.html
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.