|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:
3 P! l1 k- |) G$ ~root@tl:~# ipcs -l. C( p; m; W4 N! \! a" J, E6 O
! X# D) s% D( g) X) j------ Shared Memory Limits --------
& s& w( s5 g r& V0 Gmax number of segments = 40965 u r/ ] j9 K9 D* h! R
max seg size (kbytes) = 32768
0 e8 \! s) |) r5 umax total shared memory (kbytes) = 8388608% m7 M+ s: `8 s" `1 [/ ]
min seg size (bytes) = 18 n+ H6 {; [" _; D! k& f
, O1 M( c. p* O5 ?% C/ I) V2 M3 I------ Semaphore Limits --------
! ~+ Q5 ?" }. G! x6 Smax number of arrays = 128
& h+ d& [6 \/ ~+ f8 p* a* cmax semaphores per array = 250
( N. N! C K/ `9 d0 Cmax semaphores system wide = 320006 i- @* ]9 v% l0 c2 K9 p
max ops per semop call = 32
- i7 _1 X) Y% osemaphore max value = 32767* ]1 H: i1 ~' F
8 |! D5 k, w$ U' I
------ Messages Limits --------( V6 ~ W7 ]7 Y" p2 K3 B1 Z I3 X2 l
max queues system wide = 178+ ^# ]2 `" w/ x, d9 E
max size of message (bytes) = 81922 f! Q: l, b* H. {* d$ }" Y
default max size of queue (bytes) = 16384& Z- C. s( P: R6 h$ t/ R
: N" ]& \% r3 x4 z- x, l- s, z1 _ X/ ~$ Z$ R8 @3 v/ S
但是,用ipcs -a
' ]( D' U7 D: J3 Aroot@tl:~# ipcs -a
# J- r4 Y# [) f$ b% N3 o4 J5 f, c5 F2 w3 Y: T2 L* ~3 E; e1 ^
------ Shared Memory Segments --------; h- D4 f. F$ K7 l
key shmid owner perms bytes nattch status ! j0 Z0 V6 [. y {( N
0x00000000 0 root 600 1024 1 dest
% O4 n1 T# x# L5 k9 S N Y0x00000000 196609 root 600 1024 1 dest
4 v+ T2 C, x) L( S' V* e' P4 ~
------ Semaphore Arrays --------
6 [+ L7 [. k1 J( bkey semid owner perms nsems
' D$ V$ f. P2 d2 C7 B0x6411074d 0 root 600 1 ! r5 q" c8 `+ P o
0x64110957 163841 root 600 1
. X* d/ E/ D. f2 J: U) g n1 K0x641109a1 196610 root 600 1 . S# }$ w6 j8 X! m1 {! Y6 o- h
/ n& I. [& M5 A5 p, }4 r9 X------ Message Queues --------
5 d b. ? H: Z! k7 ^+ ekey msqid owner perms used-bytes messages
* o. ^; L. w6 ?/ T; N! @. q- i7 H
' C( S: h# p/ E( F
8 r0 q% E/ |5 e# N请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?
( U8 u+ E5 k3 V8 W
& E) t z( |# g7 Y& y' W: W |
|