embeded/raspberry pi2015. 9. 21. 13:22

기술적으로는 무언가 다른 내용이 있을것 같으나..

일단 라즈베리 에서는 GPU의 동적 메모리 할당으로 보면 된다.


CMA - DYNAMIC MEMORY SPLIT

The firmware and kernel as of 19th November 2012 supports CMA (Contiguous Memory Allocator), which means the memory split between CPU and GPU is managed dynamically at runtime. However this is not officially supported.


You can find an example config.txt here.


CMA_LWM

When the GPU has less than cma_lwm (low-water mark) megabytes of memory available, it will request some from the CPU.

cma_lwm 보다 적은 양을 GPU에서 가지고 있을 때, CPU로 부터 (메모리를) 요청한다.


CMA_HWM

When the GPU has more than cma_hwm (high-water mark) megabytes of memory available, it will release some to the CPU.

cma_hwm 보다 큰 것을 GPU에서 가지고 있을 때, CPU에게 (메모리를) 놓아준다.


The following options need to be in cmdline.txt for CMA to work:


coherent_pool=6M smsc95xx.turbo_mode=N


[링크 : https://www.raspberrypi.org/documentation/configuration/config-txt.md]

[링크 : http://elinux.org/RPiconfig#CMA_-_dynamic_memory_split]


영어라 읽다가 귀차니즘으로 포기

[링크 : https://en.wikipedia.org/wiki/High-water_mark_(computer_security)]

[링크 : https://en.wikipedia.org/wiki/Watermark_(data_synchronization)]



원래 찾던건.. 오디오 스트리밍을 낮은 지연시간으로 하는건데..

갑자기 네트워크를 USB 1.1로 돌리고 막 쑈를 하면서 찾은거.. ㄷㄷ

[링크 : http://wiki.linuxaudio.org/wiki/raspberrypi]

Posted by 구차니