|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:
0 s# ~4 ~& m) J1 L+ v! Eroot@tl:~# ipcs -l9 G! y9 g. s7 e* M
4 A# l* _2 q( i2 z
------ Shared Memory Limits --------
% S. |' K) j/ ]6 xmax number of segments = 4096- O" D t6 D- c; \- W
max seg size (kbytes) = 32768
( x8 s. W( u: Imax total shared memory (kbytes) = 8388608% a7 L0 W8 M$ {) e3 I2 Y
min seg size (bytes) = 1
; \* x$ b3 L' k* Y5 _" I9 C* A. R6 i, k/ ~8 G* P3 I5 Y& W
------ Semaphore Limits --------
4 f, Z- k j$ g1 d+ \* k6 r2 amax number of arrays = 128
! e+ ]: X6 [8 d9 i C4 Zmax semaphores per array = 2508 ?$ ~* w4 g' o3 g7 n6 `, d5 V' F
max semaphores system wide = 32000
9 n" ]' X/ g2 d L/ X" \ T: u3 gmax ops per semop call = 32/ U+ _' A% g) t, N" r% C
semaphore max value = 32767/ }) s0 I6 S7 i. E4 G( E5 G
9 H, Q% j- _' q------ Messages Limits --------
' z4 P& e3 y4 I3 ~1 @5 @& i* q cmax queues system wide = 1786 G# |; S4 e6 k+ T8 T O" @/ E
max size of message (bytes) = 8192 ~% {; U2 B" r6 Y
default max size of queue (bytes) = 163846 B8 f4 \, M6 `' S1 g) P9 F* L* B
% ]8 L* e' ^8 O; F- d' G4 J+ @
: ~( r2 h0 T1 [3 [8 |. M0 z但是,用ipcs -a
. x4 R' y8 H: n. H% D* X- jroot@tl:~# ipcs -a
) Z. s7 E$ [, W( q
* f7 s* l4 n9 f. @------ Shared Memory Segments --------" q& W3 X8 y3 k0 V
key shmid owner perms bytes nattch status
6 }& D" D* |' o2 `9 f' M7 @& e" B" `0x00000000 0 root 600 1024 1 dest
- n- M$ m6 i' x! M: `0x00000000 196609 root 600 1024 1 dest
& R: q. ^6 {3 ]
9 i8 Q4 e; x7 ]& A0 e) K+ [------ Semaphore Arrays --------5 y" }4 s! ~6 H0 W6 G
key semid owner perms nsems & E2 z5 f# J# A* c: |. `
0x6411074d 0 root 600 1
; E) [. L' f) s8 W* ^1 x& L* Y0x64110957 163841 root 600 1
8 K+ I2 T" C7 t0x641109a1 196610 root 600 1
- G0 N3 t+ i; ?1 T5 Z' r' i. M
$ s6 R7 V! I2 e: _3 [9 I% N------ Message Queues --------' n: S; ]! O& [% I5 H; [
key msqid owner perms used-bytes messages
& Z4 n4 e2 `, J7 d& i& s+ _ }. N/ `) _, n
8 c7 i, x4 p6 z, S$ C0 v
请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?9 x: ?& p; [! c3 Q
4 s& a0 H, x3 ? G# W: Z% g
|
|