提交 40c96d6a 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

a big reason for why mapbench is slow on xv6: mfence!

the kernel spends about 35% of its time in mfence. commented-out #define to get rid of __sync_synchronize for testing. maybe having many atomics is going to be expensive.
上级 be61fd64
#pragma once #pragma once
#if 0
#define __sync_synchronize() do { __asm__ __volatile__("" ::: "memory"); } while (0)
#endif
#define _GLIBCXX_VISIBILITY(x) #define _GLIBCXX_VISIBILITY(x)
#define _GLIBCXX_BEGIN_NAMESPACE_VERSION #define _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define _GLIBCXX_END_NAMESPACE_VERSION #define _GLIBCXX_END_NAMESPACE_VERSION
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论