DRPY: Pinpointing Inefficient Memory Usage in Multi-Layer Python']Python Applications

被引:0
|
作者
Cui, Jinku [1 ]
Zhao, Qidong [1 ]
Hao, Yueming [1 ]
Liu, Xu [1 ]
机构
[1] North Carolina State Univ, Raleigh, NC 27695 USA
关键词
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Python has become an increasingly popular programming language, especially in the areas of data analytics and machine learning. Many modern Python packages employ a multi-layer design: the Python layer manages various packages and expresses high-level algorithms; the native layer is written in C/C++/Fortran/CUDA for efficient computation. Typically, each layer manages its own computation and memory and exposes APIs for cross-layer interactions. Without holistic optimization, performance inefficiencies can exist at the boundary between layers. In this paper, we develop DRPY, a novel profiler that pinpoints such memory inefficiencies across layers in Python applications. Unlike existing tools, DRPY takes a hybrid and fine-grained approach to track memory objects and their usage in both Python and native layers. DRPY correlates the behavior of memory objects across layers and builds an object flow graph to pinpoint memory inefficiencies. In addition, DRPY captures rich information associated with object flow graphs, such as call paths and source code attribution to guide intuitive code optimization. Guided by DRPY, we are able to optimize many Python applications with non-trivial performance improvement. Many optimization patches have been validated by application developers and committed to application repositories.
引用
收藏
页码:245 / 257
页数:13
相关论文
共 50 条
  • [41] Design of a Novel High Q Multi-layer Inductor for VCO Applications
    Murali, B.
    Rao, N. Bheema
    SILICON, 2022, 14 (15) : 10115 - 10121
  • [42] Multi-layer PDMS films having antifouling property for biomedical applications
    Mousavi, M.
    Ghaleh, H.
    Jalili, K.
    Abbasi, F.
    JOURNAL OF BIOMATERIALS SCIENCE-POLYMER EDITION, 2020, 32 (05) : 678 - 693
  • [43] Multi-layer Intrabody Terahertz Wave Propagation Model for Nanobiosensing Applications
    Elayan, Hadeel
    Shubair, Raed M.
    Jornet, Josep Miquel
    Mittra, Raj
    NANO COMMUNICATION NETWORKS, 2017, 14 : 9 - 15
  • [44] An integrated Butler matrix in multi-layer technology for multi-port amplifier applications
    Zak, T
    Sachse, K
    MIKON-2002: XIV INTERNATIONAL CONFERENCE ON MICROWAVES, RADAR AND WIRELESS COMMUNICATIONS, VOLS 1-3, PROCEEDINGS, 2002, : 59 - 62
  • [45] Multi-Layer Efficient Data Classification Methods for Enterprise Business Applications
    AlZahrani, Yazeed
    Shen, Jun
    Yan, Jun
    2022 TENTH INTERNATIONAL CONFERENCE ON ADVANCED CLOUD AND BIG DATA, CBD, 2022, : 30 - 35
  • [46] Crack Growth and Reliability Modeling of Multi-Layer Capacitors in Microelectronics Applications
    Sharon, Gilad
    Barker, Donald
    RELIABILITY, PACKAGING, TESTING, AND CHARACTERIZATION OF MEMS/MOEMS AND NANODEVICES X, 2011, 7928
  • [47] Design of a Novel High Q Multi-layer Inductor for VCO Applications
    B. Murali
    N. Bheema Rao
    Silicon, 2022, 14 : 10115 - 10121
  • [48] Hierarchical morphological graph signal multi-layer decomposition for editing applications
    Lezoray, Olivier
    IET IMAGE PROCESSING, 2020, 14 (08) : 1549 - 1560
  • [49] Review of Multi-Layer Graphene Nanoribbons for on-chip Interconnect Applications
    Kumar, Vachan
    Rakheja, Shaloo
    Naeemi, Azad
    2013 IEEE INTERNATIONAL SYMPOSIUM ON ELECTROMAGNETIC COMPATIBILITY (EMC), 2013, : 528 - 533
  • [50] On ordered self-assembled multi-layer membrane for biological applications
    Sun, Y
    Lu, ZH
    Peng, HC
    Gu, N
    PROCEEDINGS OF THE 20TH ANNUAL INTERNATIONAL CONFERENCE OF THE IEEE ENGINEERING IN MEDICINE AND BIOLOGY SOCIETY, VOL 20, PTS 1-6: BIOMEDICAL ENGINEERING TOWARDS THE YEAR 2000 AND BEYOND, 1998, 20 : 2820 - 2823