Blame thirdparty/openblas/xianyi-OpenBLAS-e6e87a2/GotoBLAS_05LargePage.txt
|
kusano |
2b45e8 |
To enhance perfomance, I'd recommend you to enable large page on
|
|
kusano |
2b45e8 |
your OS (root account is required).
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
A) Linux
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
x86 32bit ... (number of core) * 4 pages
|
|
kusano |
2b45e8 |
x86 64bit ... (number of core) * 8 pages
|
|
kusano |
2b45e8 |
POWER 32/64bit ... (number of core) * 1 pages
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
If you want to allocate 64 large pages,
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$shell> echo 0 > /pros/sys/vm/nr_hugepages # need to be reset
|
|
kusano |
2b45e8 |
$shell> echo 65 > /pros/sys/vm/nr_hugepages # add 1 extra page
|
|
kusano |
2b45e8 |
$shell> echo 3355443200 > /pros/sys/kernel/shmmax # just large number
|
|
kusano |
2b45e8 |
$shell> echo 3355443200 > /pros/sys/kernel/shmall
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
Also may add a few lines into /etc/security/limits.conf file.
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
* hard memlock unlimited
|
|
kusano |
2b45e8 |
* soft memlock unlimited
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
Then restart sshd (/etc/init.d/sshd restart).
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
B) Solaris
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
You don't have to set up.
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
C) Windows (Windows Server 2003 or later, XP 64bit)
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
You have to assign memory lock operation to your account.
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
Control Panel -> Administrative Tools -> Local Security Policy ->
|
|
kusano |
2b45e8 |
Local Policies -> User Rights Assignment -> Lock pages in memory
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
D) AIX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
Ask your administrator
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
E) Tru64 UNIX
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
Assign shared memory at boot time.
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
F) Other aarchitecture which doesn't have Large TLB enhancement
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
If you have root permission, please install device driver which
|
|
kusano |
2b45e8 |
located in drivers/mapper.
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
$shell> cd drivers/mapper
|
|
kusano |
2b45e8 |
$shell> make
|
|
kusano |
2b45e8 |
$shell> insmod mapper.ko
|
|
kusano |
2b45e8 |
$shell> ./device_setup
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
Then enable DEVICEDRIVER_ALLOCATION = 1 in Makefile.rule.
|