|
|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:
& a3 T! w- C3 }root@tl:~# ipcs -l
1 S( q6 {2 S6 C* x1 q' d* A% x% G1 a, R4 A( w' h
------ Shared Memory Limits --------( W9 a2 R6 r7 T% |* }( z
max number of segments = 4096% c1 u7 U' p5 ?/ M
max seg size (kbytes) = 32768
+ c# H2 b* Y& D$ f" o* n2 ]/ Cmax total shared memory (kbytes) = 83886083 {7 b" T( r0 Y( F. T' o
min seg size (bytes) = 1
; Y- l6 w+ s4 @/ P$ f1 g6 ~
! F$ N: _7 x) w3 [7 c8 ?) G------ Semaphore Limits --------
: |% @5 c2 H; K) w. kmax number of arrays = 128
6 G& t% Z2 b: B) ~max semaphores per array = 250
) y+ J' V9 ?, T$ ~# f/ q. j1 ?max semaphores system wide = 320004 J2 L+ T0 {% E$ r' z+ l
max ops per semop call = 32/ M* w& Y2 J5 P. r
semaphore max value = 32767
; P( R% ~! u+ w: W( |
* F7 i( @$ d3 d1 \& h) d8 y( U------ Messages Limits --------( \; T3 j N1 x* Q+ |6 o
max queues system wide = 178. m: x/ `4 U7 j& k
max size of message (bytes) = 8192, {! a1 }; `/ b% Z$ Q
default max size of queue (bytes) = 163841 o3 V* Q S H- Q4 \
2 C. F# A: G6 M2 @' c" Y
) C2 ?6 G$ H0 t7 T1 r2 U7 f! l
但是,用ipcs -a
* a7 D+ H9 A6 u" \- Y, Qroot@tl:~# ipcs -a. E1 N0 k; C& { R' w' w
2 B9 e' ^( e3 n% k
------ Shared Memory Segments --------
% I% B% {2 J3 l& \# xkey shmid owner perms bytes nattch status
& R$ I) _% a3 X! ~2 P+ N l0x00000000 0 root 600 1024 1 dest
- E9 r* \) v% P9 l5 A* ~0x00000000 196609 root 600 1024 1 dest 8 A8 G+ |! m9 ?6 K! S5 }
: h. K8 | ]; \" M9 M! Z------ Semaphore Arrays --------% q* }0 v2 x6 ]
key semid owner perms nsems
. K2 n& s: }$ u" o9 V0x6411074d 0 root 600 1
" o1 S. J6 o4 v0x64110957 163841 root 600 1 # c9 q$ \' y' V
0x641109a1 196610 root 600 1
, Q5 a! O: m$ d. ^0 z
3 o8 U f. [+ I2 H5 `$ u------ Message Queues --------3 e/ `4 Q' U! P, | H( r
key msqid owner perms used-bytes messages ; `9 k$ `+ l" x9 Z4 A; N, C% C
6 K. V3 M F( ?
5 X6 T3 d% Z M2 Y
请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?) Y% v4 V# M& a" g: c8 A1 C
8 T8 P- S" g8 [8 a0 E- d
|
|