作者jeunder ()
看板LinuxDev
标题Re: [问题] Linux SMP 是否需要 cache coherency ꨠ…
时间Mon Feb 22 20:57:35 2010
: → richliu:那只是你没有碰到 non-coherence platfrom 02/22 20:07
: → richliu:如果是 SMP 又是 non hw-coherence platform, 那很麻烦 02/22 20:08
Linux source code 里不知道有没有 SMP + non hw-coherence 的例子可参考 ?
目前正在弄一颗 MIPS SoC,
有三个 processor (CPU 复制贴上三份),
经由单一 bus 共享 memory,
processor 之间没有 hw cache coherence protocol,
而且为了 performance 考量, 使用 write-back cache, 想到就头大.
看了一下 linux mips architecture 的 source code,
发现应该几乎不可能做到 SMP (在我的 hw 条件下),
或者需要改非常大, 难度颇高.
我怀疑在这样的条件下, 根本没有人做到 Linux SMP.
不知道有没有人有相关经验或资讯可供参考 ?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.32.230.35
1F:→ mayasky:可以作到~但如你所说工程很大..如果从头做起 02/22 22:44
2F:→ mayasky:GOOGLEㄧ下似乎早已有MIPS SMP 02/22 22:47
3F:推 lungswu:你用的MIPS core,有无TSO的观念?有的话就好办了 02/22 22:48
4F:→ richliu:如果是这样的话, 你其他颗 CPU 有没有接受 external 02/23 01:13
5F:→ richliu:interrupt. 如果有才有机会. ARM 有 inter-processor 02/23 01:14
6F:→ richliu:interrupt. 可以用这个做 cache coherence 的动作. 02/23 01:14