Skip to content

Commit 25f12a2

Browse files
author
Herbert Koelman
committed
refs #41
a bit of explanation on all this fiddling.
1 parent 5c9e546 commit 25f12a2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@ cd tests
4343

4444
### Usefull links
4545

46+
#### Memory management on AIX
47+
48+
Memory management on AIX is quite sophisticated making it possible to fine tuned very precisely the way your program uses memory. Consider using these compiler/linker options when using pthreads:
49+
* -bmaxdata:0xN0000000 this option activates the large memory model, N is a number in the range of [1-8].
50+
* -bmaxmem=-1 this option tell the compiler to use as much memory it needs (usefull when -O option is used).
51+
52+
Thread stack size:
53+
* 32bits programs allocate 96KB per thread on the program's heap.
54+
* 64bits programs allocate 192KB per thread on the program's heap.
55+
56+
On many Linux implementations and on Mac OS X the stack size is defaulted to 8MB. You may consider setting this as a default.
57+
58+
More detailed information can be found in this [RedBook](http://www.redbooks.ibm.com/redbooks/pdfs/sg245674.pdf) (chapter 8).
59+
4660
#### project links
4761

4862
* [project's home](https://github.com/HerbertKoelman/cpp-pthread)

0 commit comments

Comments
 (0)