我们最近购买了一些新的服务器,并且正在经历糟糕的memcpy性能.与我们的笔记本电脑相比,服务器上的memcpy性能要慢3倍.
服务器规格
编辑:我也在另一台具有更高规格的服务器上进行测试,并看到与上述服务器相同的结果
服务器2规格
笔记本电脑规格
操作系统
$ cat /etc/redhat-release
Scientific Linux release 6.5 (Carbon)
$ uname -a
Linux r113 2.6.32-431.1.2.el6.x86_64 #1 SMP Thu Dec 12 13:59:19 CST 2013 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
编译器(在所有系统上)
$ gcc --version
gcc (GCC) 4.6.1 …Run Code Online (Sandbox Code Playgroud) 我最近从 Scientific Linux 6 迁移到 CentOS 7,并且在新操作系统中遇到了 bash 选项卡完成问题。
软件版本
$ cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
$ uname -r
3.10.0-229.14.1.el7.x86_64
$ bash --version
GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu)
Run Code Online (Sandbox Code Playgroud)
我有一个 bash 脚本(可执行文件)./run_prog.sh,它使用 -c 选项(或 long --config=)在命令行上获取配置文件。
完整命令示例:
./run_prog.sh -c=./config/test-new-feature.conf
## or
./run_prog.sh --config=./config/test-new-feature.conf
Run Code Online (Sandbox Code Playgroud)
在以前版本的 bash 中,我能够在 -c= 构造之后使用 tab 完成目录和文件名。
预期选项卡完成示例(它在 SL6 中的工作方式):
./run_prog.sh -c=./conf[TAB]
## completes to
./run_prog.sh -c=./config/
## then type
./run_prog.sh -c=./config/test-n[TAB]
## completes to
./run_prog.sh -c=./config/test-new-feature.conf
Run Code Online (Sandbox Code Playgroud)
CentOS 7 中的新版 bash 将不会在 -c= short …