attach patch:
- remove mds global mutex out of RR tipc data receive buffer thread
- add TS thread to process received tipc data
- dynamic allocation


Attachments:

- 
[mds_dynamic_malloc.diff](https://sourceforge.net/p/opensaf/tickets/_discuss/thread/e203d417/3c16/attachment/mds_dynamic_malloc.diff)
 (18.3 kB; text/x-patch)


---

** [tickets:#2855] mds: Improve tipc receive logic**

**Status:** accepted
**Milestone:** 5.18.08
**Created:** Wed May 16, 2018 12:29 PM UTC by Hans Nordebäck
**Last Updated:** Thu Aug 09, 2018 06:14 AM UTC
**Owner:** Minh Hon Chau


The tipc receive buffer is 2MB, should not be extended as that will affect e.g. 
available kernel memory. The receive thread normally runs as a realtime thread, 
RR and with the gl_mds_library_mutex taken in contention with other MDS, time 
sharing threads. In several cases TIPC_OVERLOAD has happened as consuming 
messages are not fast enough and TIPC drops these message at receive buffer 
full.
This ticket will change the receive thread from a realtime thread to the 
standard round-robin time-sharing policy and a new realtime thread will be 
created to only receive messages and adding  these to a larger buffer using a 
lock-free algorithm. The old receive thread will run as the standard time 
sharing thread and will consume  messages from this shared buffer. The recvmsg 
in recvfrom_connectionless will be changed to read from the shared buffer.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to