fix build error
[platform/upstream/openblas.git] / GotoBLAS_05LargePage.txt
1  To enhance perfomance, I'd recommend you to enable large page on
2  your OS (root account is required).
3
4   A) Linux
5
6     x86   32bit    ... (number of core) * 4 pages
7     x86   64bit    ... (number of core) * 8 pages
8     POWER 32/64bit ... (number of core) * 1 pages
9
10     If you want to allocate 64 large pages,
11
12     $shell> echo  0 > /proc/sys/vm/nr_hugepages         # need to be reset
13     $shell> echo 65 > /proc/sys/vm/nr_hugepages         # add 1 extra page
14     $shell> echo 3355443200 > /proc/sys/kernel/shmmax   # just large number
15     $shell> echo 3355443200 > /proc/sys/kernel/shmall
16
17     Also may add a few lines into /etc/security/limits.conf file.
18
19     *       hard    memlock          unlimited
20     *       soft    memlock          unlimited
21
22     Then restart sshd (/etc/init.d/sshd restart).
23
24   B) Solaris
25
26     You don't have to set up.
27
28   C) Windows (Windows Server 2003 or later, XP 64bit)
29
30     You have to assign memory lock operation to your account.
31
32      Control Panel -> Administrative Tools -> Local Security Policy ->
33      Local Policies -> User Rights Assignment -> Lock pages in memory
34
35   D) AIX
36
37     Ask your administrator
38
39   E) Tru64 UNIX
40
41     Assign shared memory at boot time.
42
43   F) Other aarchitecture which doesn't have Large TLB enhancement
44
45    If you have root permission, please install device driver which
46    located in drivers/mapper.
47
48    $shell> cd drivers/mapper
49    $shell> make
50    $shell> insmod mapper.ko
51    $shell> ./device_setup
52
53    Then enable DEVICEDRIVER_ALLOCATION = 1 in Makefile.rule.