Marcelo Coelho wrote:
> Hi!
>
>
> I'm developing an application that uses rtai-3.4 (closure version) and
> rtnet 0.9.8 (I've also tested rtnet 0.9.8), that uses two sockets of
> different type: first, when the application is started, an UDP socket is
> opened. Then, when a request of a certain type is received, an RAW
> socket is opened just to send a reply.
>
> When my application tries to open the RAW socket, I get an error:
> "RTnet: rtskb allocation from real-time cache failed."
>
> The error number that my application gets when opening the RAW socket is
> -12 ("Out of memory").
>
>
> Can't I open two sockets of different type in the same application?You can. > Where can I change the memory allocation size? > That memory for socket creation comes from the real-time skb cache (see README.pools) - which is empty by default. RTnet tries to use this pool instead of plain Linux allocations likely because you create the socket in hard-RT context. Possible solutions: leave that context before socket(), set rtskb_cache_size on rtnet.ko loading, or already open the raw socket during application startup in non-RT context. Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ RTnet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-users

