第四章 實驗數據 析
第一節 速度測試與 析
國
立 政 治 大 學
‧
N a tio na
l C h engchi U ni ve rs it y 第四章 實驗數據 析
第一節 速度測試與 析
本章節將實際測試在即時交易環境中,交易室策略監控模組在一台機器與多台機 器的測試環境中運算速度的差異 本研究採用Amdahl’s law做為平行運算效能的衡量指 標
圖 19.Amdahl’s law 速度與處理器數量關係圖 (資料來源:H. Shen and F. Pétrot, 2011)
Amdahl’s law常用來預測在多處理器的平行運算中理論下的速度最大化,因其 表了處理器平行運算之後效率提升的能力,由於平行運算的速度受限於程式中的僅能 序列化處理的片段,因此系統僅有一部 可以經由平行運算改善效率,其餘則無法 其公式為:
T n = T 1 B + 1 − B
‧
‧
‧
如KBar Pattern因其計算特性在任何模式下,運算速度改善之情形極微;反之計算 時間越長之技術指標,如KD,在群集模式下運算時間縮短幅度越顯著;扣除KBar
‧
1408.048 1078.954 732.276 544.082
11種技術指標平均運算時間(毫秒)
‧ 國
立 政 治 大 學
‧
N a tio na
l C h engchi U ni ve rs it y
在圖14中觀察,要找到Amdahl’s law所述平行運算之理論加速最大值,群集
之處理器數量需1000台以上,才能觀察到趨近理論最大值之曲線;本研究在有限 資源情況下,24台處理器之叢集環境中計算台灣期貨市場八種商品之市場狀態,較單台處理器得到11倍以上之加速比,足見本研究所設計之平行運算架構極為有 效提升運算效能,尤其適合需要大量運算之期貨交易平台 及其他金融商品之交 易平台 根據圖17之曲線,此次測試結果亦能得出,如擴大本研究設計之平行運 算架構之群集規模,能更有效提升平行運算之效能
‧
量投資者使用需求,結合HBase雲端分散式資料庫 JMX應用程式管理架構 JMS訊息交 換中介軟體,並使用JBoss企業級伺服器管理平台建立平行運算的管理機制 同時運用‧
以加一層in-memory Database,作為資料暫存之用 同時配合在硬體層級進行平行運算 的程式語言,如Scala,以期能改善平行運算的效能 而在JBoss框架底下,server instance 需要逐一在管理介面啟動,耗時且成本高,未來希望可以找到能動態開啟server instance 的方法
‧
1. George, L(2011), HBase: The Definitive Guide. O’Reilly Media, Inc, pp. 5–13.
4. J. Steven Perry(2002), Java Management Extensions. O’Reilly Media, Inc, pp. 8–10.
5. Ben G. Sullins, Mark B. Whipple(2003), JMX in Action. Manning Publications Co, pp. 8–11.
6. Francesco Marchioni(2011), JBoss AS 7 Configuration, Deployment, and Administration. Packt
Publishing Ltd, pp. 117–131.
7. Thomas Rauber, Gudula R¨unger(2007), Parallel Programming:For Multicore and Cluster Systems,
Springer-Verlag Berlin Heidelberg, pp. 21–23.
8. Wikipedia(2013), “Flynn's_taxonomy”, Retrieved from
http://en.wikipedia.org/wiki/Flynn's_taxonomy.
9. JBoss(2012), ”JBoss 7.1 Admin Guide(2012).” Retrieved from
https://docs.jboss.org/author/display/AS71/Admin+Guide .
10. Mark Richards, Richard Monson-Haefel & David A. Chappell(2009), Java Message Service.
O’Reilly Media, Inc, pp. 9–10.
11. Lo. Alfred, Bloor Chris, Choi. Y K(2000). Internet Research10. 2: 160-169.
12. Amza, C. (1996), Shared memory computing on networks of workstations, IEEE Computer.
13. J. Gantz and D. Reinsel(2010). The Digital Universe Decade - Are You Ready? Technical report, EMC Corporation.
14. A. Greenberg, J. Hamilton, D. Maltz, and P. Patel(2009). TheCost of a Cloud: Research Problems in Data Center Networks. ACM SIGCOMM CCR.
15. Pardo, Robert(2008), The Evaluation and Optimization of Trading Strategies. John Wiley & Sons, Inc.
16. James Chin, Zikai Wang(2011), HBase: A Comprehensive Introduction. Retrieved from
http://cs.brown.edu/courses/cs227/archives/2011/slides/mar14-hbase.pdf
17. Aronson, David R(2006).,Evidence-based Technical Analysis.John Wiley & Sons Inc 18. Ian Thomas Varley,(2009), No Relation: The Mixed Blessings of Non-Relational
Databases, Master's Thesis, University of Texas
19. William H., Teukolsky, Saul A., Vetterling, William T., Flannery, B. P. (2007), . Numerical Recipes:
‧ 國
立 政 治 大 學
‧
N a tio na
l C h engchi U ni ve rs it y
20. Martin Law(2011), A Simple Introduction to Support Vector Machines, Department of Computer Science and Engineering Michigan State University
21. H. Shen and F. Pétrot,(2011), Using Amdahl's Law for Performance Analysis of Many-Core SoC Architectures Based on Functionally Asymmetric Processors, in Proc. ARCS, 2011, pp.38-49.
22. Robert D.Edwards, John Magee, W.H.C.Bassetti (2007), Technical Analysis of Stock Trends(9th Edition), Taylor & Francis Group, LLC
‧ 國
立 政 治 大 學
‧
N a tio na
l C h engchi U ni ve rs it y
中文部分
1. 黃柏翰(2012) ,基於Hadoop雲端運算架構建立策略交易與回測模擬平台,國立政治大學資 訊
管理學系碩士學位論文
2. 楊雅菱(2011),基於雲端環境與服務導向架構之交易策略評估平台框架,國立政治大學資 訊
管理學系碩士學位論文
3. 姜林杰祐(2009),程式交易:觀念,方法,技術與解決方案,新陸書局
4. 曾永政(2012),期貨程式交易SOP,聚財資訊:p13-p19
5. 胡翠峰(2004),模糊相關與支援向量學習應用在文件多重分類之研究,義守大學資訊管理碩士
論文