|
|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:2 E- ~ @9 n, V7 \' m" k9 g0 x9 [: b
root@tl:~# ipcs -l
3 d* B& q% Y$ f
& \& L7 L( J v# c------ Shared Memory Limits --------
1 \4 G8 {' N z. A% xmax number of segments = 4096
4 p) f! m* l. `9 [5 Smax seg size (kbytes) = 32768
6 R" G8 N0 X* zmax total shared memory (kbytes) = 8388608
, |4 _ m8 @* Pmin seg size (bytes) = 1$ e* D4 m6 R4 E0 q* `
; x' R) `4 t/ x
------ Semaphore Limits --------
: {5 D, E8 R0 smax number of arrays = 128; R$ d4 u( y3 U
max semaphores per array = 250
0 @, D# ~; Y. S0 b) c2 xmax semaphores system wide = 320008 Z0 E& V0 R- Z9 }: T& I
max ops per semop call = 327 T4 U! J o. A! c1 L9 d+ t( t
semaphore max value = 32767
. D, t2 [0 A9 w0 T; e3 V2 r& D5 X( J8 N$ D8 P5 ~7 c5 H
------ Messages Limits --------5 t$ _7 W/ M1 ]4 G0 f; I- l
max queues system wide = 178
' C$ ~' F" f; e9 j( jmax size of message (bytes) = 81927 I' s: `* e% M+ @$ h I. M% ?: a. J
default max size of queue (bytes) = 16384
# M7 x8 s/ j. W( N* M. E4 l! b7 v( _# J$ L
+ t! i6 m: y8 {8 K5 ]% A
但是,用ipcs -a 5 k* l, M$ M, a/ d" T6 Q# l; f0 J
root@tl:~# ipcs -a: j1 K% N' v0 e: ?. E, A% ^2 V6 a3 U
1 |' L1 Q2 t9 [$ R5 g. Z7 B------ Shared Memory Segments --------# V' t% Y. d7 O
key shmid owner perms bytes nattch status
! f8 r, d' O* N. X* V: M5 X0x00000000 0 root 600 1024 1 dest
+ I* I; X& `4 A0x00000000 196609 root 600 1024 1 dest
- L# e6 s* w& x. r& S l% i3 }1 T6 Y2 K2 ^, M3 @6 _
------ Semaphore Arrays --------
. h+ h X5 {; Z: z% l+ J Fkey semid owner perms nsems
4 ^. @( e' p' r$ [" o+ L0x6411074d 0 root 600 1 `0 c# q3 @" S4 T4 ]6 v( L
0x64110957 163841 root 600 1 % f! i# P c( A# a: M
0x641109a1 196610 root 600 1
3 L& r9 n9 P! Z# R, {9 ?1 J7 ^' m# r. O5 C% _! ]
------ Message Queues --------; V7 B2 u7 p& i0 ?3 q& e n% t! L
key msqid owner perms used-bytes messages + W0 a# |- X& k
3 O+ J" C9 l, k& S% _" u! s+ l$ g) Q* a. Q! a. H1 N) t
请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?( h1 e+ v9 ]+ D
8 o% ?" H5 S9 U |
|