1 Star 0 Fork 42

Caoruihong / utils_memory

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 3.63 KB
一键复制 编辑 原始数据 按行查看 历史
syz_huawei 提交于 2022-03-01 14:32 . fix README and Architecture Images

The Part of Memory Base Libraries

Introduction

The part of Memory base libraries belongs to the subsystem named Utils Subsystem. It provides the system library for upper-layer services to operate memory, ensuring the stability of upper-layer services.

Architecture

Figure 1 Memory Base Libraries architecture

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

/utils/memory
├── libdmabufheap           # DMA (Direct Memory Access) memory allocation system library
│   ├── include             # DMA memory allocation system library header directory
│   ├── src                 # DMA memory allocation system library source directory
│   └── test                # DMA memory allocation system library usecase directory
├── libmeminfo              # Memory footprint management library
├── libmemleak              # Memory leak detection library
├── libpurgeable            # Purgeable memory management library
└── libspeculative          # Speculative memory management library

Memory Base Libraries

Memory base libraries is a component of the system library that integrates memory operations and manages them in a unified manner.

libdmabufheap system library

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 used for memory footprint query, low memory killing and other scenarios.

libmemleak system library (planning)

It cooperates with malloc_debug to detect memory leaks of native heap.

libpurgeable system library (planning)

It provides management interfaces for discardable-type memory.

libspeculative system library (planning)

It provides management interfaces for speculative-type memory. It is mainly used by system services for data pre-loading.

Usage Guidelines

System developers can add or remove this part by configuring the product definition JSON file under /productdefine/common/products to enable or disable this part:

"utils:utils_memory":{}

Repositories Involved

utils

1
https://gitee.com/caoruihong/utils_memory.git
git@gitee.com:caoruihong/utils_memory.git
caoruihong
utils_memory
utils_memory
master

搜索帮助