[bitbake-devel] [PATCH] prserv: don't wait until exit to sync

Burton, Ross ross.burton at intel.com
Sun Nov 2 21:00:41 UTC 2014


On 27 October 2014 17:27, Ben Shelton <ben.shelton at ni.com> wrote:

> In the commit 'prserv: Ensure data is committed', the PR server moved to
> only committing transactions to the database when the PR server is
> stopped.  This improves performance, but it means that if the machine
> running the PR server loses power unexpectedly or if the PR server
> process gets SIGKILL, the uncommitted package revision data is lost.
>
> To fix this issue, sync the database periodically, once per 30 seconds
> by default, if it has been marked as dirty.  To be safe, continue to
> sync the database at exit regardless of its status.
>

This appears to be causing random problems for me where bitbake will
timeout attempting to access the PR database, my hunch is that it's
blocking on disk I/O.  Are there any tricks we can do with sqlite to reduce
the overhead of committing? (assuming that sqlite isn't causing a full
filesystem sync).

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20141102/8a7fdfb0/attachment-0002.html>


More information about the bitbake-devel mailing list