* Bitbake in server mode
@ 2013-08-21 14:26 Richard Purdie
2013-08-21 15:56 ` [bitbake-devel] " Chris Larson
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2013-08-21 14:26 UTC (permalink / raw)
To: bitbake-devel; +Cc: poky, openembedded-core
I've just realised that we have some new functionality that has sneaked
in but most people are unaware of. You can now run bitbake as a server
in the background and then just connect the knotty UI to it with
commands. The usage is:
bitbake --server-only -t xmlrpc -B localhost:1234
which starts a server on localhost port 1234 and then you can run
commands with:
BBSERVER=localhost:1234 bitbake <somecommand>
and
BBSERVER=localhost:1234 bitbake -m
to shut it down.
Known issues:
a) Parsing is slower. Probably due to all the debug messages going over
the IPC/xmlrpc. UI event filtering should fix it.
b) Something is causing a cache reparse initially. Need to figure out
what. Maybe the BBSERVER variable itself?
This is still development so I'd not recommend everyone use this for
production just yet but it gives some nice insight into what the future
holds!
We should be able to make bitbake in this mode much more responsive to
commands since there is no cache overhead.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bitbake-devel] Bitbake in server mode
2013-08-21 14:26 Bitbake in server mode Richard Purdie
@ 2013-08-21 15:56 ` Chris Larson
2013-08-21 16:19 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Chris Larson @ 2013-08-21 15:56 UTC (permalink / raw)
To: Richard Purdie; +Cc: bitbake-devel, poky, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 940 bytes --]
On Wed, Aug 21, 2013 at 7:26 AM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> Known issues:
>
> a) Parsing is slower. Probably due to all the debug messages going over
> the IPC/xmlrpc. UI event filtering should fix it.
> b) Something is causing a cache reparse initially. Need to figure out
> what. Maybe the BBSERVER variable itself?
>
> This is still development so I'd not recommend everyone use this for
> production just yet but it gives some nice insight into what the future
> holds!
>
> We should be able to make bitbake in this mode much more responsive to
> commands since there is no cache overhead.
>
I expect the obvious question to be, what happens if a recipe is altered
between starting the server and running a command :)
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
[-- Attachment #2: Type: text/html, Size: 1332 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [bitbake-devel] Bitbake in server mode
2013-08-21 15:56 ` [bitbake-devel] " Chris Larson
@ 2013-08-21 16:19 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2013-08-21 16:19 UTC (permalink / raw)
To: Chris Larson; +Cc: bitbake-devel, poky, openembedded-core
On Wed, 2013-08-21 at 08:56 -0700, Chris Larson wrote:
>
> On Wed, Aug 21, 2013 at 7:26 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> Known issues:
>
> a) Parsing is slower. Probably due to all the debug messages
> going over
> the IPC/xmlrpc. UI event filtering should fix it.
> b) Something is causing a cache reparse initially. Need to
> figure out
> what. Maybe the BBSERVER variable itself?
>
> This is still development so I'd not recommend everyone use
> this for
> production just yet but it gives some nice insight into what
> the future
> holds!
>
> We should be able to make bitbake in this mode much more
> responsive to
> commands since there is no cache overhead.
>
> I expect the obvious question to be, what happens if a recipe is
> altered between starting the server and running a command :)
I should have been clearer, it will reparse, the normal cache checks
take effect, it just doesn't have to unpickle cache bits from disk which
is where the time is taken.
What happens if you edit recipes whilst bitbake is running a command? Do
not do that, just like today!
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-21 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 14:26 Bitbake in server mode Richard Purdie
2013-08-21 15:56 ` [bitbake-devel] " Chris Larson
2013-08-21 16:19 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox