diff --git a/README.md b/README.md index f0b41818c67499e5e2c1d581769efa24dc681516..1f4c69f2b980c2af750a5c9a4b83960d84d280fa 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,14 @@ The part of *Memory base libraries* belongs to the subsystem named *Utils Subsys ![](figures/en-us_image_fwk.png) +| Memory Base Libraries | User | +| -------------- | -------------------------- | +| libdmabufheap | multimedia service | +| libmeminfo | memory manager service | +| libmemleak | memory manager service | +| libpurgeable | graphic service (planning) | +| libspeculative | system service (planning) | + ## Directory Structure ``` @@ -42,11 +50,11 @@ The part of *Memory base libraries* belongs to the subsystem named *Utils Subsys ### libdmabufheap system library -The memory system library provides interfaces for services to allocate and share shared memory. By allocating and sharing memory between hardware devices and user space, zero-copy memory between devices and processes is implemented to improve execution efficiency. +The memory system library provides interfaces for the multimedia service to allocate and share shared memory. By allocating and sharing memory between hardware devices and user space, zero-copy memory between devices and processes is implemented to improve execution efficiency. ### libmeminfo system library (planning) -It provides interfaces for memory usage queries. It is mainly used by memory footprint management service(hidumper) and low-memory killing service(lmks). +It provides interfaces for memory usage queries. It is used for memory footprint query, low memory killing and other scenarios. ### libmemleak system library (planning) @@ -54,7 +62,7 @@ It cooperates with malloc_debug to detect memory leaks of native heap. ### libpurgeable system library (planning) -It provides management interfaces for discardable-type memory. It is mainly used by graphics and image codec libraries. +It provides management interfaces for discardable-type memory. ### libspeculative system library (planning) diff --git a/README_ZH.md b/README_ZH.md index e9281b398d742d6eb0ddbebefd3f20829c85cc76..b69b35f0ca41f5fff97f84d7cb362110b6dcd0c5 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -1,7 +1,7 @@ # 内存基础库部件 - [简介](#section_introduction) -- [部件架构图](#section_architecture) +- [部件架构](#section_architecture) - [目录](#section_catalogue) - [内存基础库](#section_libraries) - [libdmabufheap系统库](#section_libdmabufheap) @@ -16,12 +16,20 @@ 内存基础库部件位于公共基础库子系统中,为上层业务提供对应的操作内存的系统库,保证上层业务的稳定性。 -## 部件架构图 +## 部件架构 **图1** 内存基础库部件架构图 ![](figures/zh-cn_image_fwk.png) +| 内存基础库 | 使用者 | +| -------------- | -------------------------- | +| libdmabufheap | 多媒体相关服务 | +| libmeminfo | 内存管理服务 | +| libmemleak | 内存管理服务 | +| libpurgeable | 图形图像相关服务(规划中) | +| libspeculative | 系统服务(规划中) | + ## 目录 ``` @@ -42,12 +50,12 @@ ### libdmabufheap系统库 -为业务提供分配共享内存的接口,通过在硬件设备和用户空间之间分配和共享内存,实现 +为多媒体相关服务提供分配共享内存的接口,通过在硬件设备和用户空间之间分配和共享内存,实现 设备、进程间零拷贝内存,提升执行效率。 ### libmeminfo系统库(规划中) -提供内存占用查询接口。主要提供给内存占用维测(hidumper)、低内存查杀服务(lmks)使用。 +提供内存占用查询接口,用于内存占用信息查询、低内存查杀等场景。 ### libmemleak系统库(规划中) @@ -55,11 +63,11 @@ ### libpurgeable系统库(规划中) -提供可丢弃类型内存的管理接口。主要提供给多媒体业务图形图像编解码库使用。 +提供可丢弃类型内存的管理接口。 ### libspeculative系统库(规划中) -提供投机类型内存管理接口。主要提供给系统服务使用,用于缓存预读。 +提供投机类型内存管理接口,用于缓存预读。 ## 使用说明 diff --git a/figures/en-us_image_fwk.png b/figures/en-us_image_fwk.png index 5a6ad78cba424efa6a965b2e095ab4cfea832e0d..4a3d509c2b55d64485a20aed469742336ea06a6d 100644 Binary files a/figures/en-us_image_fwk.png and b/figures/en-us_image_fwk.png differ diff --git a/figures/zh-cn_image_fwk.png b/figures/zh-cn_image_fwk.png index f1276fb4225c4e18a6accf9bdc3b9304676cab71..40eb35fdbebc9df601ea1059409f63de1938a66a 100644 Binary files a/figures/zh-cn_image_fwk.png and b/figures/zh-cn_image_fwk.png differ