Hi,

last week I inherited a dual 8 core E5-2650 box, so 16 physical cores. For
fun I wanted to redo the STM numbers from the blog posting on more cores.

I killed the printout coming from rpython, as besides giving unnecessary
syncing, it also causes crashes beyond 12 threads or so.

Here are my numbers:

Reference CPython,  1 thread:    271.17
Reference PyPy-2.1, 1 thread:      9.63

(Note above for whatever reason my CPython run is slower that in the blog
post, even as the pypy run is a lot faster?)

Freshly-translated (1385fb758727+ (stmgc-c4)): richards.py, 100 iterations
each, printout from rpython removed:

  Threads         avg. time      speedup
     1             358.48          1.0
     2             244.86          1.5
     4             162.87          2.2
     8             141.48          2.5
    16             127.43          2.8
    32             146.57          2.4

Note that the speedup numbers above are less than what was posted on the
blog, and scaling with hyperthreads isn't working well. Has any attempt
been made to pin threads?

Going beyond 32 crashes in:

#1  0x0000000000d29026 in pypy_g_start_new_thread ()
#2  0x0000000000498347 in 
pypy_g_BuiltinActivation_UwS_ObjSpace_W_Root_W_Root_W_R ()
#3  0x000000000085a8c1 in pypy_g_BuiltinCode_funcrun_obj ()
#4  0x0000000000858255 in pypy_g_funccall_valuestack__AccessDirect_None ()
#5  0x0000000000d73d86 in pypy_g_CALL_METHOD__AccessDirect_star_1 ()
#6  0x000000000089d3a3 in pypy_g_dispatch_bytecode__AccessDirect_None ()
#7  0x00000000008a34b5 in pypy_g_handle_bytecode__AccessDirect_None ()
#8  0x0000000000cfe311 in pypy_g_dispatch__AccessDirect_None_stm ()
#9  0x000000000136f974 in pypy_g__stm_callback_4 ()
#10 0x00000000014ea1cf in stm_perform_transaction ()
#11 0x000000000050e62e in 
pypy_g_ll_invoke_stm__pypy_objspace_std_frame_StdObjSpa ()
#12 0x00000000011ec935 in 
pypy_g_ll_portal_runner__Unsigned_Bool_pypy_interpreter ()
#13 0x0000000000874bda in pypy_g_PyFrame_run ()


Still trying to see whether I can get PyPy to run on the MIC. :)

Best regards,
           Wim
--
wlavrij...@lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to