1		I M P O R T A N T
2
3On HP-UX-11.x the maximal data size (allocated data) of a 32 bit program is
464 MB.
5
6One solution is to build a 64 bit binary, for those the default process memory
7limit is 1 GB.
8
964bit binaries can be created with
10
11	cc +DA2.0w
12	cc +DD64
13
14if you have the HP C-ANSI-C compiler.
15
16To compile in 64 bit mode, first call ./.clean then call
17
18	make COPTX=+DD64 LDOPTX=+DD64
19	make COPTX=+DD64 LDOPTX=+DD64  install
20
21
22If you have an older GNU gcc, you need a 64bit compiled gcc. Older GNU gcc versions
23are not capable of switching, so you need a separate compiler installation for either:
24
25l1:/u/usr/merijn 102 > file /usr/local/pa*/bin/gcc
26/usr/local/pa20_32/bin/gcc:     PA-RISC2.0 shared executable dynamically linked -not stripped
27/usr/local/pa20_64/bin/gcc:     ELF-64 executable object file - PA-RISC 2.0 (LP64)
28l1:/u/usr/merijn 103 >
29
30With a newer GCC, you may call ./.clean then call:
31
32	make COPTX=-mlp64 LDOPTX=-mlp64
33	make COPTX=-mlp64 LDOPTX=-mlp64  install
34
35
36The other way is to alter some kernel parameters which require a reboot.
37The default kernel parameter seem to look like:
38
39Kernel param.               Value
40maxdsiz                  67108864
41maxdsiz_64bit          1073741824
42maxfiles                      200
43maxfiles_lim                 2048
44maxssiz                   8388608
45maxssiz_64bit             8388608
46maxswapchunks                3250
47maxtsiz                  67108864
48maxtsiz_64bit          1073741824
49
50The important one is maxdsiz, 64 MB is the default and it is rather low.
51There is some information page at http://www.uwsg.iu.edu/hp/hpux-tune.html#maxdsiz
52and they recommend to increase it to 1.9 GB. Sounds extreme.
53
54At http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x08afe7613948d5118fef0090279cd0f9,00.html
55they recommend 500 MB.
56
57maxssiz shouldn't be a problem either since it has to do with swap and such as
58storing arrays and recursion etc.
59
60If you like to know how to create 64 bit binaries on Solaris, please
61read README.compile. I hope this helps. If you found the right way for HP-UX,
62please send me a mail.
63
64
65
66The Schily makefile system usually should be able to find the best C-compiler
67on HP-UX automatically. If it does not work, here is a way force to use a different
68compiler.
69
70
71You may compile with the HP ANSI C-Compiler using:
72
73	make CCOM=cc
74
75To compile with the free K&R C-compiler call:
76
77	gmake CCOM=cc 'COPTS= '
78or
79	smake CCOM=cc 'COPTS= '
80/*--------------------------------------------------------------------------*/
81
82HP-UX SCSI hints:
83
84Note that there are no device nodes for userland SCSI on HP-UX,
85you have to call the included shell script MKNOD.hpux first.
86
87If you own a HP-9000-800 series machine, you need to install
88the file MKNOD.hpux-800 in the /etc init shell script directory
89in order to call it after each boot.
90
91This script will create the files in /dev/scsi/... and /dev/rscsi/...
92The permissions will be set to read/write for root only.
93
94
95HP does not handle CD-ROMs as well as it should. On the HP have a look at
96the man pages for
97    pfs
98    pfsd
99    pfs_mount
100and anymore that they refer too.
101
102/*--------------------------------------------------------------------------*/
103
104From:
105H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
106
107As of Jun 2002, there are some patches available to HP-UX 11.00 and 11i that
108prevent the need for pfs, and these are highly recommended, since Rock-Ridge
109extensions are now supported from the kernel level.
110
111For 11.00:
112
113a5:/ 103 # swlist | grep -i rock
114  PHCO_26449   1.0  Add Rock Ridge extension to mount_cdfs(1M)
115  PHKL_26448   1.0  Y2k; Rock Ridge extension for ISO-9660
116  PHKL_26450   1.0  Rock Ridge extension for ISO-9660
117a5:/ 104 #
118
119PHKL_26448 is not recommended, but I never had any trouble with it. I still
120have to install PHKL_28060 over PHKL_26448
121
122  PHKL_28060   1.0  Y2k; Rock Ridge extension for ISO-9660
123
124For 11i:
125
126  PHKL_28025   1.0  Rock Ridge extension for ISO-9660
127  PHKL_26269   1.0  Rock Ridge extension for ISO-9660
128  PHCO_25841   1.0  Add Rock Ridge extension to mount_cdfs(1M)
129
130I don't have 11i (yet), so I got this from HP-UX' patch database.
131
132The problem is that they did /not/ enable RR by default, but made it a mount
133option. D'uh! But you can add it in /etc/fstab, and never worry again :)
134
135a5:/ 104 # grep cd /etc/fstab
136/dev/cd0        /cdrom          cdfs    ro,rr,noauto    0 0
137a5:/ 105 #
138
139
140