|
您好, 在使用OMAPL138 evm过程中,我使用了MessageQ和ringIO来传输数据。利用ipcs -l ,情况如下:/ G" g3 J! @5 T9 }0 q% k4 h4 u
root@tl:~# ipcs -l
, L7 M: W8 F; G: a* m1 H7 z; q. J9 L
( b$ i2 a( l0 M------ Shared Memory Limits --------
( m* ?5 ^, t7 m8 Bmax number of segments = 4096% `9 Z) u6 s8 B+ q( u
max seg size (kbytes) = 32768
1 T i7 F% ^, Cmax total shared memory (kbytes) = 8388608
3 V: N$ k5 z# C4 o6 \; e8 Emin seg size (bytes) = 1" S7 B& x, E: O
" ~1 z* d: s$ e3 f9 J! M# H$ L------ Semaphore Limits --------1 S& P3 Q3 {% S) b4 [: O9 v
max number of arrays = 1280 k8 y0 @! L- C: W
max semaphores per array = 250
! S4 e' ` d5 d0 }max semaphores system wide = 32000
. ]: H1 J p" ~' _max ops per semop call = 32+ o* _% C& Y4 S4 x+ C
semaphore max value = 32767& @9 b; Q! R* \& b* h8 _
6 ~. [! W9 B" A% s------ Messages Limits --------& t5 k& U4 i. y
max queues system wide = 178# o$ F: _; e. j& @: M, B6 I; _
max size of message (bytes) = 8192
" y) B* O h7 N. @" J) \$ W) Pdefault max size of queue (bytes) = 16384; Y4 w% B, I$ e8 [( |, R8 F! Z$ G; p
# s a1 a" C$ u5 h8 Y
3 A- o' [. _: Q8 K+ I; m; p+ K但是,用ipcs -a $ g {2 l8 {; N& W; C: [+ J
root@tl:~# ipcs -a: ^, }8 I; z- V) K2 c }6 E
?+ d8 k5 j9 f2 L7 s------ Shared Memory Segments --------
7 A2 _. W# `' u0 C- v ?7 h# _ Skey shmid owner perms bytes nattch status 0 O! `; w5 z6 \: G& l Z' h
0x00000000 0 root 600 1024 1 dest
. o: Y& C: d7 X" k' X" o6 t0x00000000 196609 root 600 1024 1 dest 7 C# O5 R. h3 Y
8 F. F/ ^4 G5 p; r7 H------ Semaphore Arrays --------) P0 ~1 b; e. [+ c
key semid owner perms nsems
8 m) r1 O6 i% P) s4 O6 [7 A2 H0x6411074d 0 root 600 1 + o! t+ _1 j- y: n5 e9 }
0x64110957 163841 root 600 1 5 D2 U7 b1 I* n# m" J6 g
0x641109a1 196610 root 600 1 8 {2 [; s9 b+ s9 ]# q. X
/ W! S$ `1 x0 h) B& I- _% ? r4 e------ Message Queues --------
+ P$ I& f% B; ~key msqid owner perms used-bytes messages
3 M) W- T2 j$ R
- A8 ~) [9 h# o$ `5 ^, t: Q- N( m
+ z" `; T7 u5 c9 G, n请问,我的共享内存使用大小为 (float *)ring_buffer_acquired(ad->buffer, 2320 * sizeof(float)*18); 远大于1024BYTE ,请问为什么?
) P, s) u* v# O( R5 ^# V
9 S" N5 I: O; i P, _4 D |
|