1 Star 0 Fork 0

zhangdaolong/speccpu2006-config-flags

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
E4ComputerEngineering-amd-platform.xml 4.87 KB
一键复制 编辑 原始数据 按行查看 历史
zhangdaolong 提交于 2024-04-07 09:28 . add flag file
<?xml version="1.0"?>
<!DOCTYPE flagsdescription SYSTEM
"http://www.spec.org/dtd/cpuflags1.dtd">
<!-- This file defines platform settings -->
<flagsdescription>
<filename>E4ComputerEngineering-amd-platform</filename>
<title>Platform settings file</title>
<!-- Header -->
<header>
<![CDATA[
<div id='banner'>
<h2><b>AMD Platform Settings</b></h2>
</div>
]]>
</header>
<!-- Platform Settings -->
<platform_settings>
<![CDATA[
<p><b>Linux Huge Page settings</b></p>
<p>In order to take full advantage of using x86 Open64's huge page runtime library, your system must be configured to use huge pages.
It is safe to run binaries compiled with "-HP" on systems not configured to use huge pages, however, you will not
benefit from the performance improvements huge pages offer. To configure your system for huge pages perform the following steps:
</p>
<ul>
<li>Create a mount point for the huge pages: "mkdir /mnt/hugepages"</li>
<li>The huge page file system needs to be mounted when the systems reboots. Add the following to a system boot configuration file before any services are started: "mount -t hugetlbfs nodev /mnt/hugepages"</li>
<li>Set vm/nr_hugepages=N in your /etc/sysctl.conf file where N is the maximum number of pages the system may allocate.</li>
<li>Reboot to have the changes take effect.</li>
</ul>
<p>Note that further information about huge pages may be found in your Linux documentation file: /usr/src/linux/Documentation/vm/hugetlbpage.txt</p>
<p><b>HUGETLB_LIMIT</b></p>
<p>For the x86 Open64 compiler, the maximum number of huge pages an application is allowed to use can be set at run time via the environment variable HUGETLB_LIMIT. If not set, then the process may use all available huge pages when compiled with "-HP (or -HUGEPAGE)" or a maximum of <b>n</b> pages where the value of <b>n</b> is set via the compile time flag "-HP:limit=<b>n</b>".</p>
<p><b>Using numactl to bind processes and memory to cores</b></p>
<p>For multi-copy runs or single copy runs on systems with multiple sockets, it is advantageous to bind a process to a particular core. Otherwise, the OS may arbitrarily move your process from one core to another. This can effect performance. To help, SPEC allows the use of a "submit" command where users can specify a utility to use to bind processes. We have found the utility 'numactl' to be the best choice.</p>
<p>numactl runs processes with a specific NUMA scheduling or memory placement policy. The policy is set for a command and inherited by all of its children. The numactl flag "--physcpubind" specifies which core(s) to bind the process. "-l" instructs numactl to keep a process memory on the local node while "-m" specifies which node(s) to place a process memory. For full details on using numactl, please refer to your Linux documentation, 'man numactl'</p>
<p>Note that some versions of numactl, particularly the version found on SLES 10, we have found that the utility incorrectly interprets application arguments as it's own. For example, with the command "numactl --physcpubind=0 -l a.out -m a", numactl will interpret a.out's "-m" option as it's own "-m" option. To work around this problem, a user can put the command to be run in a shell script and then run the shell script using numactl. For example: "echo 'a.out -m a' > run.sh ; numactl --physcpubind=0 bash run.sh"</p>
<p><b> ulimit -s &lt;n&gt;</b></p>
<p>
Sets the stack size to <b>n</b> kbytes, or <b>unlimited</b> to allow the stack size
to grow without limit.
</p>
<p><b> ulimit -l &lt;n&gt;</b></p>
<p>
Sets the maximum size of memory that may be locked into physical memory.
</p>
<p><b>OMP_NUM_THREADS</b></p>
<p>
Sets the maximum number of OpenMP parallel threads auto-parallelized (-apo) applications may use.
</p>
<p><b>O64_OMP_AFFINITY_MAP</b></p>
<p>
Specifies the thread-CPU relationship when the operating system's affinity mechanism is used to assign OpenMP threads to CPUs.
</p>
<p><b>O64_OMP_SPIN_USER_LOCK</b></p>
<p>
Specifies whether or not to use the user-level spin mechanism for OpenMP locks. If the variable is set to TRUE then user-level spin mechanisms are used. If the variable is set to FALSE then pthread mutexes are used. The default if the variable is not set is the same as FALSE.
</p>
<p><b>powersave -f (on SuSE)</b></p>
<p>
Makes the powersave daemon set the CPUs to the highest supported frequency.
</p>
<p><b>/etc/init.d/cpuspeed stop (on Red Hat)</b></p>
<p>
Disables the cpu frequency scaling program in order to set the CPUs to the highest supported frequency.
</p>
<p><b>LD_LIBRARY_PATH</b></p>
<p>
An environment variable set to include the x86 Open64 and SmartHeap libraries used during compilation of the binaries. This environment variable setting is not needed when building the binaries on the system under test.
</p>
]]>
</platform_settings>
</flagsdescription>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangdaolong/speccpu2006-config-flags.git
[email protected]:zhangdaolong/speccpu2006-config-flags.git
zhangdaolong
speccpu2006-config-flags
speccpu2006-config-flags
master

搜索帮助