Hi Timo,
It prints the following:
./concurrency writing, page size = 8192
./concurrency 1 reading, page size = 8192
This is a:
SunOS 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Fire-V240
psrinfo -v Status of virtual processor 0 as of: 06/20/2007 21:00:33 on-line since 04/05/2007 16:11:51. The sparcv9 processor operates at 1503 MHz, and has a sparcv9 floating point processor. Status of virtual processor 1 as of: 06/20/2007 21:00:33 on-line since 04/05/2007 16:11:35. The sparcv9 processor operates at 1503 MHz, and has a sparcv9 floating point processor.
Hope this helps.
Cheers.
On Wed, Jun 20, 2007 at 02:41:42AM +0300, Timo Sirainen wrote:
http://dovecot.org/tmp/concurrency.c
I'd want to know what results this program gives with different systems. Please test and reply (but don't bother if someone already replied with the same OS+result). I expect it to print:
- SMP kernels: "page size cut" once in a while
- UP (uniprocessor) kernels: Nothing
- The most important thing is that it never prints "broken data"
It might take a while for it to print anything. With my computer it takes anything from a few seconds to a minute or so. See the file itself for compiling/running instructions.