All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan-Simon Möller" <dl9pf@gmx.de>
To: bitbake-devel <bitbake-devel@lists.openembedded.org>,
	Joshua Watt <JPEWhacker@gmail.com>,
	Michael Halstead <mhalstead@linuxfoundation.org>
Cc: richard.purdie@linuxfoundation.org
Subject: Re: [bitbake-devel] hashserv performance issues
Date: Thu, 23 May 2024 12:11:25 +0200	[thread overview]
Message-ID: <3558580.dWV9SEqChM@arbeit> (raw)
In-Reply-To: <f13fdebcfa74757dbc51a79da995f47238873be7.camel@linuxfoundation.org>

Hi !

I share your concern ... and also with an eye on PRServ then.
If we solve this here, we should apply the same lesson there. 

Can we rethink this maybe:
- both are "microservices"
- both are serving data stored in a (maybe even distributed) db
- both need the concept of an upstream server (or even servers?) to 'federate'

Essentially these bits should be a common codebase and the APIs a frontend to 
that. Otherwise we will learn lessons twice the hard way and have to write 
more code.


For the performance issue ... 
would a local hashserv + upstream hashserv connection help ?
Or do we need to query things 'always' anyway up to the upstream ... 


I'm willing to help, but would start on the deployment side as thats my 
immediate need as we disabled hashserv with scarthgap and want it back. Once 
this is up I can work my way down to code.


My 0,02€ 

Best,
Jan-Simon

Am Mittwoch, 22. Mai 2024, 15:17:02 CEST schrieb Richard Purdie via 
lists.openembedded.org:
> Joshua reminded me of how to get the server stats (thanks).
> 
> For our public server:
> 
> $ bitbake-hashclient --address wss://hashserv.yoctoproject.org/ws stats
> {
>     "requests": {
>         "average": 0.06250257539454776,
>         "max_time": 16.712204183917493,
>         "num": 381569673,
>         "stdev": 0.18345958610620752,
>         "total_time": 23849087.254955433
>     }
> }
> 
> Compared to my local system:
> 
> $ bitbake-hashclient --address ws://localhost:8686 stats
> {
>     "requests": {
>         "average": 0.0004462178160857849,
>         "max_time": 0.04537125899992134,
>         "num": 3121,
>         "stdev": 0.00163338261679226,
>         "total_time": 1.3926458040037346
>     }
> }
> 
> For a world build with 38000 tasks, 38000 * 0.0625 = 2375 seconds or 39
> minutes, so I suspect the hash server performance is a real issue here
> 
> :(
> 
> Michael: Is there anything we can do?
> 
> Cheers,
> 
> Richard






  reply	other threads:[~2024-05-23 10:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <17D1D17091A0A935.11581@lists.openembedded.org>
2024-05-22 13:17 ` [bitbake-devel] hashserv performance issues Richard Purdie
2024-05-23 10:11   ` Jan-Simon Möller [this message]
2024-05-23 10:45     ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3558580.dWV9SEqChM@arbeit \
    --to=dl9pf@gmx.de \
    --cc=JPEWhacker@gmail.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=mhalstead@linuxfoundation.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.