Sponsored Content
Operating Systems HP-UX Need help to understand chatr command Post 302242877 by jim mcnamara on Friday 3rd of October 2008 06:36:15 AM
Old 10-03-2008
chatr is mostly used for changing the attributes of a compiled image file. See setrlimit or ulimit.

Since programs dynamically allocate memory, you cannot tell anything from the compiled image about memory usage.

There can be per process limits set with ulimit. The kernel parameter maxdsize determines the maximum allowable data size for a process - this is from the manual:

Quote:
NAME
maxdsiz, maxdsiz_64bit — maximum size (in bytes) of the data segment for any user process

VALUES

Default
32bit: 1 GB

64bit: 4 GB

Allowed values

32 bit minimum: 0x40000

32 bit maximum: 0xfffff000

64 bit minimum: 0x40000

64 bit maximum: 0x3ffbffff000

DESCRIPTION
User programs on HP-UX systems are composed of five discrete segments of virtual memory: text (or code), data, stack, shared, and I/O. Each segment occupies an architecturally defined range of the virtual address space that sets the upper limit to their size, but text, data and stack segments may have smaller maxima enforced by the maxtsiz, maxdsiz, and maxssiz tunables.

This tunable defines the maximum size of the static data storage segment for 32-bit and 64-bit processes. The data storage segment contains fixed data storage such as globals, arrays, static variables, local variables in main(), strings, and space allocated using sbrk() and malloc(). In addition, any files memory mapped as private and shared library per-invocation data also resides in the data segment.

HTH
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't understand sar command

HI Experts, Can anyone pls help me to understand this.. >sar 20:05:00 1 2 1 96 20:10:00 2 2 10 87 20:15:00 1 2 19 78 20:20:00 1 2 14 83 20:25:00 1 2 16 81 20:30:00 1 ... (1 Reply)
Discussion started by: shaan_dmp
1 Replies

2. UNIX for Dummies Questions & Answers

Just a quickie to help me understand this command:

Hi. Im working in AIX. Oracle 9.2. In one of the backup scripts, I see this: sysback -f'/dev/rmt0' '-T chrp' '-k mp' -w '/tmpback' 'oradata_vg oraindx_vg ora misc_vg' The line here, as I know, specifies the device name, the temp file, and the volume groups. My query regards theses two: '-T... (2 Replies)
Discussion started by: Incremental
2 Replies

3. Shell Programming and Scripting

Sed command - help me understand

Hello, can someone please explain me what the following commands do.. i know the output but i would like to understand the break down of what they do step by step. 1) sed -n "/ $(date +\%R -d "-1 min")/,$"p req.txt| wc -l 2) awk '/19:00/,/22:00/' app.log |grep "mytesturl"|grep... (2 Replies)
Discussion started by: niks
2 Replies

4. Shell Programming and Scripting

Need to understand the output of last command

root@desktop:~# last reboot | head -1 reboot system boot 2.6.31-17-generi Tue Jan 26 12:05 - 13:52 (01:46) What does the last two fields(12:05 - 13:52 (01:46)) of the output mean? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

5. UNIX for Dummies Questions & Answers

Not able to understand the output of w command

I have taken putty session of a server from two separate machines namely HOST1(3 sessions) and HOST2(1 Session) . However w command says there are 5 users Confused over the output any clue will be appreciated. # w 09:29:36 up 34 days, 15:48, 5 users, load average: 0.62, 4.33, 8.16 USER ... (3 Replies)
Discussion started by: pinga123
3 Replies

6. HP-UX

How to use chatr to change static library path in binary?

I have solved this but now cannot recall the syntax. I want to strip or change the hard wired library paths on binaries I download from a repository. I do not have root and just want a personal install, but would rather not build every tool. I even posted the solution here once for others, but... (2 Replies)
Discussion started by: DGPickett
2 Replies

7. Shell Programming and Scripting

Not able to understand use exec command

Hi i am in learning phase of unix. i was going through exec in a unix book. below is the command exec n>file exec n>>file however when i used the exec command like below , where ex is the file name exec 2>>exand then do ls -lrt then again when i do the ls -lrt to see the size of the file... (3 Replies)
Discussion started by: scriptor
3 Replies

8. Shell Programming and Scripting

Help to understand the command

Hi Gurus, I am new for Unix scripting. below command in one existing script. I am not able to fully understand. please help in below command, I am not able to understand what's {P=1} do thanks in advance awk 'NF==1{$3=$1;$1=L}P&&NF>=3{print $1,$3;L=$1}/^___/{P=1}' FILE (3 Replies)
Discussion started by: green_k
3 Replies

9. UNIX for Beginners Questions & Answers

I can not understand the command from the systemd?

journalctl --since "tomorrow" By idea to show magazines from tomorrow. As it is illogical. Tell me what is the essence of the team with the key tomorrow? Code tags please (1 Reply)
Discussion started by: alekseev
1 Replies

10. UNIX for Beginners Questions & Answers

Help understand awk command

Help understand awk command This command converts the column values to rows. Command: awk -s1=" " '{S=S?S OFS s1 $0 s1:s1 $0 s1} END{print S}' OFS=, Input_file Example: 1 2 3 is converted to: 1, 2, 3 Can anyone please help me understand this command? Please use code tags when... (1 Reply)
Discussion started by: mohan44
1 Replies
shlib_debug_enable(5)						File Formats Manual					     shlib_debug_enable(5)

NAME
shlib_debug_enable - dynamically enable or disable online shared library debugging support VALUES
Fail Safe Default semantics is disabled Allowed values DESCRIPTION
This tunable dynamically enables (1) or disables (0) the online shared library debugging feature. When this tunable is enabled, shared libraries of a running (active) application can be debugged. Who Is Expected to Change This Tunable? System administrators and developers who want to change the default behavior of Restrictions on Changing Changes to this tunable take effect immediately. There is no need to reboot the system. When Should the Tunable Be Turned On? When there is a need to debug a shared library of a running (active) application, this tunable can be turned on. When this feature/tunable is not enabled, debugging of shared libraries can be done at application start time through the command. See chatr(1). What Are the Side Effects of Turning the Tunable On? If an application which is being debugged for shared libraries is not MPAS (Mostly Private Address Space) executable, then the application will be converted to an MPAS executable type. After the conversion, all rules which apply to regular MPAS executable type does apply to the converted application until the process exits. The rules apply even after being detached from the debugger. When Should the Tunable Be Turned Off? Administrators and/or developers who will not need the online debugging feature of shared libraries. What Are the Side Effects of Turning the Tunable Off? When this tunable is disabled, then online debugging of shared libraries will not be possible beyond the existing hardware break point facility. With hardware break points, only a limited number of breakpoints can be set. What Other Tunables Should Be Changed at the Same Time? None. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
chatr(1). HP Integrity Systems Only Tunable Kernel Parameters shlib_debug_enable(5)
All times are GMT -4. The time now is 01:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy