|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:
: a) L( k* q9 P2 M. r. Y; I+ Troot@tl:~# ipcs -l
/ m! Z8 O' i( C9 _/ @
; A6 n8 {0 s/ f9 N% e1 j; n------ Shared Memory Limits --------
5 o' S' ^) ^, F% lmax number of segments = 4096
+ p- q7 R& w$ Qmax seg size (kbytes) = 32768( l( b, P; H2 {* F: B) o1 L9 e
max total shared memory (kbytes) = 8388608) a5 H1 [$ {, S5 {
min seg size (bytes) = 1
# {, Q& Y2 w( @. _% N9 ~9 L$ _# @, Z! l
. z5 A' v% _3 {4 J------ Semaphore Limits --------4 D* f, g. V* o* I t" `
max number of arrays = 128
# N' j$ j. ~6 K6 R5 B- P4 d2 g9 T% Gmax semaphores per array = 250. p7 h' A: m; |" `3 m! t
max semaphores system wide = 32000
) k" ?2 N# [6 Z( D* dmax ops per semop call = 32! f+ \1 Z0 o [! c( S
semaphore max value = 32767
, S& I: \$ N" S' A W: P5 y. L8 N
------ Messages Limits --------
/ |- C2 u X/ c' Cmax queues system wide = 178
% L( l# b" ~* J* V' J9 zmax size of message (bytes) = 8192
' k6 ~* w8 [6 a' t7 Gdefault max size of queue (bytes) = 163844 A2 J: [1 P1 K1 Y
& C; _* P/ V( ` S
4 B) i9 h" ~# v3 U0 A3 a' Q但是,用ipcs -a 0 K2 ^3 X4 g$ ?& \1 I
root@tl:~# ipcs -a$ e$ r, p5 f4 h8 u' [8 [- F
! x3 f' Q( h( |8 j- P6 d------ Shared Memory Segments --------- B. B) z( Z" y. B6 L7 J- w9 K5 f
key shmid owner perms bytes nattch status
8 v+ g7 O/ Y q+ i( H( K) O0x00000000 0 root 600 1024 1 dest
# D1 m, W) _+ Q# Z W9 b6 G9 z0x00000000 196609 root 600 1024 1 dest ' U& e+ [# c" R8 a2 ?: F
( _9 A2 z6 [3 h------ Semaphore Arrays --------1 o$ p7 q: e3 m C
key semid owner perms nsems
* Z5 w" R" u5 }: T0x6411074d 0 root 600 1 1 _7 E9 ~% y: z d7 J4 Z
0x64110957 163841 root 600 1
: ~4 ~1 ^1 U. \0x641109a1 196610 root 600 1
0 V7 [ ?1 e3 K7 Q+ Q6 q0 ^
9 P: S, S; p# [. f, ~6 g+ J------ Message Queues --------
4 m1 w* I# @+ k; k+ Mkey msqid owner perms used-bytes messages 1 E! {+ Z- h+ `4 ~6 i. @
( e" Y. b* |1 r _; y; i1 g8 A) m! n9 `0 D+ |
请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?1 X* k9 R# Y" h/ J4 v0 p1 G9 Y
! i+ e# j3 H$ E2 } |
|