linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RT File Logging
@ 2016-10-01  0:20 Sabar Siddhartha Dasgupta
  2016-10-03 18:02 ` Austin Schuh
  2016-10-03 18:44 ` Brian Silverman
  0 siblings, 2 replies; 4+ messages in thread
From: Sabar Siddhartha Dasgupta @ 2016-10-01  0:20 UTC (permalink / raw)
  To: linux-rt-users

Hi all,

I am working with the 4.4.12-rt19 kernel patch.

I have a realtime application that has separate processes running on
separate cores taking in data from the network, computing on that
data, and then logging results. I am attempting to log on the order of
10KB per ms tick of data to file.

The logging process has access to all of the incoming data in shared
memory. Right now, I am using sqlite3 and sqlite3async to buffer the
database to memory in one thread of the logging process and then
commit the in-memory instance to file every second with a call to
sqlite3async_run().

The problem is that during part of the sqlite3async_run() execution,
the sqlite3_step() command to write to the in-memory database buffer
hangs and violates my 1ms timing guarantee.

This question may not be relevant here, but I am still not sure if the
error is happening because of how threaded processes work in a
realtime environment or because of how sqlite3async works. As far as I
can tell, sqlite3async is supposed to be able to buffer the database
in memory using the sqlite3 virtual file system and then handle the
actual file write with a background thread (as detailed here:
https://www.sqlite.org/asyncvfs.html). I have tried changing the
scheduling priorities and nicenesses of each thread to no avail.

Any help or suggestions would be greatly appreciated! (or direction to
the right forum if this is not the right place).

Best,
Sabar


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-07  7:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-01  0:20 RT File Logging Sabar Siddhartha Dasgupta
2016-10-03 18:02 ` Austin Schuh
2016-10-03 18:44 ` Brian Silverman
2016-10-07  7:08   ` Sabar Siddhartha Dasgupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).