|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:
/ @+ k9 s/ C+ w8 J1 w* @root@tl:~# ipcs -l7 n" H3 o' s1 i$ L5 G2 @$ c& W# Z
. n: |( D; l ^4 R. W" R% F------ Shared Memory Limits --------
9 z; `0 `3 A! omax number of segments = 4096+ X0 {- i- ?8 U* ~
max seg size (kbytes) = 32768. ~" Q" t& ]* b6 W% A; M
max total shared memory (kbytes) = 8388608* ^, _ p& A: y0 n4 b" ~( a" ^) M
min seg size (bytes) = 1! s) `$ ]1 L% v4 `
3 z& L/ f; n5 r( C2 C7 X
------ Semaphore Limits --------
4 G1 j+ p" Y W; a$ |( `$ r) Dmax number of arrays = 128# r1 O" Z8 P4 x9 J. J0 ?- r
max semaphores per array = 250
% x3 G" M+ t( W$ @- e7 l8 P9 w' L' Omax semaphores system wide = 32000
4 }2 ]( ?( [/ I3 f+ Nmax ops per semop call = 32# Z0 n) y0 F5 m; z7 B
semaphore max value = 32767! l8 x+ `1 ]: ]8 h S
1 r2 [8 K8 h( |' E& N
------ Messages Limits --------' ^) y U2 z, S* s' h6 A3 F/ m
max queues system wide = 1780 X+ R6 c6 d, U( V, Y
max size of message (bytes) = 8192
. \5 f) M) @/ a& Sdefault max size of queue (bytes) = 16384# c/ a4 V U& F1 \
7 H: F1 U' S8 f7 U! z# p! H5 H
0 q# @" U9 k& z/ O$ v8 I
但是,用ipcs -a
! ~- G1 I. P1 }' w, }root@tl:~# ipcs -a$ y9 K7 j" v8 o: s
4 f8 d4 {$ t9 y4 ^0 W+ f6 F------ Shared Memory Segments --------# o6 s0 j3 A' D" v: @% L1 I9 f
key shmid owner perms bytes nattch status
! h2 n) N3 w/ G# t/ [' y( q+ B0x00000000 0 root 600 1024 1 dest
0 |$ @+ W; n8 F& k8 y! a0x00000000 196609 root 600 1024 1 dest
4 O! G/ [& ~" c4 G$ Y5 m. X# H! s, @8 u: Z2 x
------ Semaphore Arrays --------
8 {. c% T8 q! N: X8 ?key semid owner perms nsems
- I+ F" w9 L: d0x6411074d 0 root 600 1
1 ?% a7 e# {- _! F: |0x64110957 163841 root 600 1
9 t' y/ O# D4 ~) Z! ]+ d+ K0x641109a1 196610 root 600 1
1 e" L1 H2 Q- D/ u* R8 K X; o( |0 ^( g3 U v
------ Message Queues --------) e# F6 T5 b9 B* v4 ]6 S
key msqid owner perms used-bytes messages 6 F, d8 M" E5 c9 ?& J( }
6 u; x } o( s" y4 Q& M2 r0 u* h& |+ y8 F
请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?
+ Y! h2 V" P' C# \/ }1 q0 f g5 Y% I+ d3 L7 t `
|
|