|
|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:
) h7 f. c9 @5 l) h& oroot@tl:~# ipcs -l. Z) Z$ G q1 |3 S7 @4 Y
7 ^- _6 }: Q h
------ Shared Memory Limits --------, M- c2 `, j! j- W$ b3 p
max number of segments = 4096 s/ o" e( r/ v( P$ [+ G6 c* {
max seg size (kbytes) = 32768
9 g z* s) @3 z4 p; @max total shared memory (kbytes) = 8388608
^! D! a/ a! Z0 [min seg size (bytes) = 11 k' L! A: X6 n( h
: e" X9 x0 Q2 H# L8 \------ Semaphore Limits --------* ?: `, G5 W ~' |+ ]0 i
max number of arrays = 128
( V5 A4 D+ d u) V: Y" rmax semaphores per array = 250
" L* K6 K! N6 P3 ^! kmax semaphores system wide = 320002 x7 H6 H# n' f8 `4 ^
max ops per semop call = 32' `/ o- q9 ^( Y
semaphore max value = 32767! g Z$ W. ~6 @8 E% {7 g- @
8 g/ J% x& B7 L5 @3 v
------ Messages Limits --------
+ M# o3 W; y1 C3 Qmax queues system wide = 178
" V, M5 `2 g6 [! G0 Smax size of message (bytes) = 81923 q' c8 d0 [+ c% S0 O' e
default max size of queue (bytes) = 16384
3 A% t. t E6 I& |6 d! G% Y0 }6 Q2 p, f, K8 ?
' p% ~( x4 l, H但是,用ipcs -a 2 r" O' n+ h/ N0 L X. {
root@tl:~# ipcs -a; \- q- d3 k: ]6 v1 [2 h5 g
% `5 w$ m- o* |4 q! Q
------ Shared Memory Segments --------8 k/ e+ t' Q' _5 O1 Q# M! `
key shmid owner perms bytes nattch status ! R* w* I0 Q. d" G; o$ O) x
0x00000000 0 root 600 1024 1 dest 1 @% B2 |4 Y" \$ y! A( K
0x00000000 196609 root 600 1024 1 dest
8 z/ V- t( }) F) z6 `
% O0 I! g" k+ R3 d8 ~, y------ Semaphore Arrays --------
) T+ E; G- D% e+ n xkey semid owner perms nsems ) k0 A( L# m, S4 m
0x6411074d 0 root 600 1 % j, S- l0 X+ p* `
0x64110957 163841 root 600 1 % y# [7 X. ]* w, j/ M, p' U
0x641109a1 196610 root 600 1 ! b! H' F$ T6 ?/ Y) V/ m; K# J
h- i& B$ E- {7 i------ Message Queues --------
$ L. i, J0 c* i, ikey msqid owner perms used-bytes messages
. M1 O1 C2 Z5 U' \+ T8 Y9 u$ u/ h. X% r/ Z; m
5 d" E% @2 a; `+ D请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?
3 n, G# @: T" @4 d4 h# h* f- d4 Z3 b* b' ?, z9 v/ h8 j* `
|
|