|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:) E" a, [8 p& n" k* O
root@tl:~# ipcs -l
6 K* L( M* \0 X6 {! G/ h( q7 V3 o+ P$ m8 b2 a) U2 }; \4 J; h3 M
------ Shared Memory Limits --------
' p# ~. V, F. Y" T& h& P# ?" }max number of segments = 4096
" g8 u3 ~( B/ t+ rmax seg size (kbytes) = 32768 G; h4 R6 N4 N) \- f
max total shared memory (kbytes) = 8388608; T, m/ \) ~; {9 n
min seg size (bytes) = 1
% c4 ~0 Q+ u z5 t$ w, o. @5 e& [4 B1 u; t/ t3 D3 S
------ Semaphore Limits --------
- T0 D/ D# Y* Z6 [. P. imax number of arrays = 1285 I$ J; N8 k$ Z' ~; R0 L) x, p
max semaphores per array = 2504 ]; s: Z! ]8 T" m# j
max semaphores system wide = 32000; a0 F9 w( w5 `/ B& t; O1 f. y) }7 g% p
max ops per semop call = 32 T( J! w4 ^5 Z2 ]' q
semaphore max value = 327676 ^2 { u# v! l
! L; ?! M- ^& A4 y; g8 n9 p1 U
------ Messages Limits --------7 {3 Q$ y( ]/ S/ `$ M ~2 Z
max queues system wide = 178
7 [9 n1 t3 q6 a$ d; S5 B5 F9 Mmax size of message (bytes) = 81921 v# s) X* |- @( M2 I. f+ J
default max size of queue (bytes) = 16384
; a/ O# R+ Z3 P0 b( t3 [; K1 w" q5 m; Z8 d
+ O; e8 E- o' E0 ^! {4 U1 y/ d但是,用ipcs -a
! Q( o$ f) k8 _% y# Q! x* S% Droot@tl:~# ipcs -a: X1 L" A/ H* [9 W0 P9 ]
{ Q" q/ \/ s/ g------ Shared Memory Segments --------
' ?3 M& n$ J% V1 `9 ~( s; S8 ikey shmid owner perms bytes nattch status 6 |0 K2 Y0 p4 b3 h! H
0x00000000 0 root 600 1024 1 dest
7 V5 U, O) B3 L! ^; G' Q7 `) `0 q6 ]0x00000000 196609 root 600 1024 1 dest B8 E t& q% ?* r0 c; s
7 u. u; C6 e# h0 S; Z. D2 V: x0 S------ Semaphore Arrays --------
" K( q. H" `% }* N/ zkey semid owner perms nsems
; A2 v+ ~8 ]! r" T, G; U0x6411074d 0 root 600 1 ! _/ ]" O4 }0 {2 }/ q7 ]1 G
0x64110957 163841 root 600 1
3 {, h7 p! \4 T; [0x641109a1 196610 root 600 1
3 H- ~" ?9 I1 i1 B' y
' I/ e: R) Z6 ~, n" k------ Message Queues --------
0 |' s: i5 I5 Mkey msqid owner perms used-bytes messages
& H) B, t, ?5 }4 m# L# G) z
7 ?5 q+ C6 @) H
7 T6 H; s- H' ^( g请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?
4 C' ?1 I9 y: i5 Y) _( e: o
( e+ H9 S2 o% |: ~5 [ |
|