|
|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:
h0 o& x& d6 A) [2 t/ Yroot@tl:~# ipcs -l9 j ?* x) F, o3 z% S9 r; E4 z& ^
! l% x' A3 \. ], ^/ f( R5 f( }
------ Shared Memory Limits --------
/ B6 }' F% s" f2 R% Fmax number of segments = 4096/ M4 J) n# G* V+ ]4 e
max seg size (kbytes) = 32768
& [! g) |; w. V7 m1 G$ Z. Vmax total shared memory (kbytes) = 8388608( y; H6 X( s) e& C
min seg size (bytes) = 1
, H' H A- J' Q' O. J6 s, X8 U3 k! P* Y$ h, f- M" ?7 y8 m
------ Semaphore Limits --------+ _" L4 \$ ~! `
max number of arrays = 128- I' v `8 C4 A; [: V3 Y
max semaphores per array = 250
5 Z: K$ k) {& w* _ S9 bmax semaphores system wide = 32000
9 R$ s; A9 K+ e3 B* ~! Hmax ops per semop call = 32
' z% f: p( Q8 i+ S% nsemaphore max value = 32767
6 i* W+ q% @7 b7 M8 O+ E8 c2 q8 }" R
------ Messages Limits --------
1 y5 x5 p' v$ }: S- {: Wmax queues system wide = 1780 \. `2 M, r( c5 F% h
max size of message (bytes) = 8192
( X/ w6 V% y7 H5 `default max size of queue (bytes) = 163847 t( {* o7 R7 }# v; B: k
% ?( X0 Q6 u. t5 F& X4 F" w% c
' @! G7 L) n; n* N& @( ~& _1 o) U但是,用ipcs -a % G7 x- x Z2 ` x
root@tl:~# ipcs -a. F) r5 n6 f0 K
- s* o4 l# _) o2 b1 o1 ?
------ Shared Memory Segments --------* U9 g. I" f# K) B+ v, [# K
key shmid owner perms bytes nattch status ) V# I2 V6 U* V/ o5 f1 c
0x00000000 0 root 600 1024 1 dest
" ]9 s4 t' m5 g, s: K0x00000000 196609 root 600 1024 1 dest
" V; a. b2 C4 N
2 |& |" }7 D6 t: S, @; B) X------ Semaphore Arrays --------% t# S9 e( ~5 v6 N( ~
key semid owner perms nsems 1 a+ d$ }2 {3 K+ o7 c. r- Z& L6 F
0x6411074d 0 root 600 1 , A4 r" p. u& h% M
0x64110957 163841 root 600 1 " {2 B4 D6 c$ N+ B8 Y' R& L: E
0x641109a1 196610 root 600 1
/ @7 k" I6 G# b5 u/ J
/ d' E& x# o0 l( ?/ G3 A$ ]/ e------ Message Queues --------& g9 ?/ J4 Q/ H' t6 o$ Z/ H% \
key msqid owner perms used-bytes messages ) T+ I6 d8 s# S. r0 w
6 M- y2 k$ ^. M, V" }& j3 h
* w T$ w9 Z5 @( H+ w
请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?
! z2 k% Q. ~6 N/ p3 X1 b
: k. t6 d- v1 J, [5 k7 j% d! P |
|