PIM architectures aim to reduce data transfer costs between processors and memory by integrating processing units within memory layers. Prior PIM architectures have shown potential to improve energy efficiency and performance. However, such advantages rely on data proximity to the processing units performing computations. Data movement overheads can degrade PIM's performance and energy efficiency due to the need to move data between a processing unit and a distant memory location. %they face challenges due to the overhead of transferring data from remote memory locations to processing units inside memory for computation. In this paper, we demonstrate that a large fraction of PIM's latency per memory request is attributed to data transfers and queuing delays from remote memory accesses. To improve PIM's data locality, we propose DL-PIM, a novel architecture that dynamically detects the overhead of data movement, and proactively moves data to a reserved area in the local memory of the requesting processing unit. DL-PIM uses a distributed address-indirection hardware lookup table to redirect traffic to the current data location. We propose DL-PIM implementations on two 3D stacked memories: HMC and HBM. While some workloads benefit from DL-PIM, others are negatively impacted by the additional latency due to indirection accesses. Therefore, we propose an adaptive mechanism that assesses the cost and benefit of indirection and dynamically enables or disables it to prevent degrading workloads that suffer from indirection. Overall, DL-PIM reduces the average memory latency per request by 54% in HMC and 50% in HBM which resulted in performance improvement of 15% for workloads with substantial data reuse in HMC and 5% in HBM. For all representative workloads, DL-PIM achieved a 6% speedup in HMC and a 3% speedup in HBM, showing that DL-PIM enhances data locality and overall system performance.
PAM: Processing Across Memory Hierarchy for Efficient KV-centric LLM Serving System
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);State Key Lab of Processors(处理器重点实验室)
PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing System
Institute of Computing Technology, CAS(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);King’s College London(伦敦国王学院);ETH Zürich(苏黎世联邦理工学院);University of Toronto(多伦多大学);Vector Institute(向量研究所);NVIDIA(英伟达公司)
Improving Phase Change Memory Performance with Data Content Aware Access
相变存储器(PCM)中写操作的一个突出特点是其延迟和能量对要写入的数据以及被覆盖的内容敏感。我们观察到,与已知的全零或全一内容相比,未知的记忆内容可能会产生更高的延迟和能量。这是因为通过仅在一个方向上编程PCM单元来重写全零或全一内容,即,使用SET或SET操作,而不是两者都使用。在本文中,我们提出了数据内容感知PCM写(DATACON),一种新的机制,减少了PCM写的延迟和能量,通过重定向这些请求覆盖包含全零或全一的内存位置。DATACON分三步操作。首先,它估计PCM写访问将从已知内容(例如,全零或全一),以及PCM中SET和RESET操作的能量-等待时间权衡。其次,它将写地址转换为存储器内的物理地址,该存储器包含要覆盖的最佳类型的内容,并将该转换记录在表中以供将来访问。我们利用工作负载中的数据访问局部性来最大限度地减少地址转换开销。第三,它以不干扰常规读写访问的方式,用已知的全零或全一内容重新配置未使用的内存位置。DATACON仅在绝对必要时覆盖未知内容。我们使用来自最先进的机器学习应用程序、SPEC CPU 2017和NAS并行基准测试的工作负载来评估DATACON。结果表明,DATACON显着提高系统性能和内存系统的能耗相比,最好的性能为导向的国家的最先进的技术。